self-review

self-review is a command for Claude Code from hamr0/liteagents. It costs 17 tokens per session (2,200 once invoked), scanned A, original, Apache-2.0.

A command for reviewing work completed since the previous review by running real checks and asking another worker to look for problems. It reports findings rather than changing the files.

In plain words
What is it for?
Use it to inspect recent committed or uncommitted work and produce a list of findings for a later fix.
Why use it?
It helps reveal missed issues and unverified behavior before changes are accepted, while leaving repair decisions to the user.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to inspect recent committed or uncommitted work and produce a list of findings for a later fix.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hamr0/liteagents/self-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/hamr0/liteagents

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for self-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/hamr0/liteagents/self-review/github.svg)](https://agentmods.dev/commands/hamr0/liteagents/self-review)
Your own site
<a href="https://agentmods.dev/commands/hamr0/liteagents/self-review"><img src="https://agentmods.dev/badge/commands/hamr0/liteagents/self-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for self-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/hamr0/liteagents/self-review"><img src="https://agentmods.dev/badge/commands/hamr0/liteagents/self-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,200 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.02200
Opus 5.5 $0.00007 $0.00880
Sonnet 5.5 $0.00003 $0.00440
Haiku 4.5 $0.00002 $0.00220

Measured 14d ago against content hash 573afd1c023f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

self-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

packages/droid/commands/self-review.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Answer "verify what you delivered, what did you gloss over, what did I miss?" about committed work since the last self-review, before /branch-review. The orchestrator resolves the range and hands off; a spawned worker tries to break it.

Guardrails

  • Spawn a worker, mid tier stated explicitly (omitted inherits the parent's, not the balanced one; not cheapest/fastest either — judgment degrades there; never a vendor model name — this spec names the tier, you translate it to whatever your spawn tool calls its mid tier), and hand it this file's path — a worker has no skill text of its own. No delegation, no sub-spawning — every command the worker cites is one it ran itself.
  • Ask and surface only. Never fixes anything. The user picks.

1. Orchestrator — resolve the range, then hand off

Dirty tree first: git status --porcelain prints any line → stop: the tree is dirty (list the paths), /self-review reviews commits not the working tree, commit then re-run. No worker spawned.

Hashes or a range given ($ARGUMENTS: one or more hashes, or <a>..<b>) → review exactly those commits, nothing else, on any branch: each hash via git show <sha>, a range via git log <a>..<b> and git diff <a>..<b>. Validate each hash, and both ends of a range, with git rev-parse --verify <x>^{commit}; reject anything starting with -. Hash/range mode never rewrites self-review-sha:.

Neither → on main/master, stop and ask for hashes or a range. Otherwise the bookmark is one line, self-review-sha:, in /branch-review's record (/self-review is its only writer):

grep '^self-review-sha:' .factory/remember/last-review.md || grep '^debrief-sha:' .factory/remember/last-review.md

No self-review-sha: line → the old debrief-sha: name, once (that is what the || does; the new name wins if both exist). Fails either check, starts with -, or the third exits 0 (an ancestor of main's merge-base is from an already-merged branch) → no bookmark:

git rev-parse --verify <sha>
git merge-base --is-ancestor <sha> HEAD
git merge-base --is-ancestor <sha> $(git merge-base main HEAD)

Valid (third command exits non-zero) → range <sha>..HEAD. No bookmark → whole branch, git merge-base main HEAD..HEAD. Range empty → "nothing new since the last self-review," stop, no worker spawned. Otherwise hand off — what was done, claims made (works / tested / done), files changed, the baseline suite totals if known, loose ends only you can know (a peer session not told, a silent open question, unshipped state) — and spawn one mid-tier worker.

Read the full file on GitHub · 146 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +35 lines 573afd1c023f
  2. 15d ago First seen · 111 lines · 17 tokens per session scan A 6563da72d4af

Subscribe to this mod's changes

self-review is a command published in the GitHub repository hamr0/liteagents (25 stars, last pushed 2d ago), licensed Apache-2.0. It adds 17 tokens to every session and 2,200 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-01.