review-plan-auto

A command that repeatedly reviews and revises a project plan, using separate reviewer and reviser roles for up to four rounds.

In plain words
What is it for?
It accepts plan text or a file, saves review versions, checks the plan against the code when needed, and runs review-and-revision rounds until approval or the limit.
Why use it?
It helps expose flaws in a plan and improve it before implementation begins.

Command for Claude Code

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.

agentmods
npx agentmods add commands/flashus/detrix/review-plan-auto
Clone the repo
git clone --depth 1 https://github.com/flashus/detrix

Made for: Claude Code.

Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,726 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00014 $0.01726
Opus 5 $0.00007 $0.00863
Sonnet 5 $0.00003 $0.00345
Haiku 4.5 $0.00001 $0.00173

Measured 2d ago against content hash 73acab94529c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

review-plan-auto 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 2d 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.

.claude/commands/review-plan-auto.md · 225 lines

How it starts

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

You are orchestrating an automated plan review-feedback-revision cycle. You act as a project manager coordinating two personas via subagents:

  • Reviewer: senior architect + staff developer who finds flaws
  • Reviser: the plan author who incorporates feedback

Input

The argument provided is: "$ARGUMENTS"

If the argument is empty or blank, use AskUserQuestion:

Question: "What plan should I review?"
Options:
- "Paste text" — "I'll paste the plan text directly in the chat"
- "Read a file" — "I'll provide a file path to read"

Wait for the user's response before proceeding.

If the argument IS provided:

  • If it looks like a file path (contains / or .md), read the file
  • Otherwise, treat it as the plan text itself

Setup

Extract a short plan name from the plan's title/first heading (e.g., "auth_fix", "cloud_deploy"). Sanitize to lowercase, underscores, no spaces.

mkdir -p .claude/reviews/<plan_name>

Save the original plan as .claude/reviews/<plan_name>/rev_0.md.

Tell the user: "Starting automated review cycle for plan: <plan_name>. Up to 4 review rounds, stopping early if approved."

Phase 0: Code Verification (before first review)

Launch a subagent to verify the plan's assumptions against the actual codebase:

Prompt: "You are verifying assumptions in a plan against the actual codebase.

Read the plan below, then check every file path, line number, struct name, function name,
and behavioral assumption against the real code. Report:
1. Confirmed assumptions (file exists, line matches, behavior is as described)
2. Wrong assumptions (file moved, line numbers off, struct has different fields, etc.)
3. Missing context (things the plan doesn't mention that are relevant)

Be specific — include actual file:line references from the codebase.

Plan:
<plan text>

Write findings to: .claude/reviews/<plan_name>/verification.md"

Read the verification output. If there are wrong assumptions, they'll be included in the first review.

Read the full file on GitHub · 225 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. 2d ago First seen · 225 lines · 14 tokens per session scan A 73acab94529c

Subscribe to this mod's changes

review-plan-auto is a command published in the GitHub repository flashus/detrix (23 stars, last pushed 9d ago), licensed MIT. It adds 14 tokens to every session and 1,726 once invoked, about $0.0001 per session on Opus 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-08-30.