detrix: Command for Claude Code

.claude/commands/review-plan-auto.md

review-plan-auto is a command for Claude Code from flashus/detrix. It costs 14 tokens per session (1,726 once invoked), scanned A, original, MIT.

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

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents; names the AskUserQuestion tool.

This is flashus/detrix's own configuration. It tells Claude Code how to work on detrix itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything detrix configures →

Reuse

Borrowing it

Nothing to install: this file belongs to flashus/detrix. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/flashus/detrix/main/.claude/commands/review-plan-auto.md
Clone the repo
git clone --depth 1 https://github.com/flashus/detrix

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 review-plan-auto

README.md
[![agentmods](https://agentmods.dev/badge/commands/flashus/detrix/review-plan-auto/github.svg)](https://agentmods.dev/commands/flashus/detrix/review-plan-auto)
Your own site
<a href="https://agentmods.dev/commands/flashus/detrix/review-plan-auto"><img src="https://agentmods.dev/badge/commands/flashus/detrix/review-plan-auto/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 review-plan-auto

Your own site · 80×15
<a href="https://agentmods.dev/commands/flashus/detrix/review-plan-auto"><img src="https://agentmods.dev/badge/commands/flashus/detrix/review-plan-auto.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00014 $0.01726
Opus 5.5 $0.00006 $0.00690
Sonnet 5.5 $0.00003 $0.00345
Haiku 4.5 $0.00001 $0.00173

Measured 2mo ago against content hash 73acab94529c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (28 stars, last pushed 2mo ago), licensed MIT. It adds 14 tokens to every session and 1,726 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-08-30.