review-plan

A command for checking a completed implementation against its original plan. It finds the relevant plan and examines the associated changes, files, tests, and review findings.

In plain words
What is it for?
Use it to review a current implementation, a named loop, supplied plan text, or a recent project plan against the resulting code and tests.
Why use it?
It helps identify work that does not match the agreed plan or lacks supporting verification. It can also locate recent plans when the original is not obvious.

Command

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/chriswritescode-dev/opencode-forge/review-plan
Clone the repo
git clone --depth 1 https://github.com/chriswritescode-dev/opencode-forge
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 541 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.00000 $0.00541
Opus 5 $0.00000 $0.00270
Sonnet 5 $0.00000 $0.00108
Haiku 4.5 $0.00000 $0.00054

Measured yesterday against content hash 514a8d6ece6b, 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 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 yesterday.

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.

src/prompts/commands/review-plan.md · 57 lines

How it starts

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

You are reviewing a completed implementation against its original plan.

Input: $ARGUMENTS

Step 1: Find the Plan and Implementation

Use the input to determine what to review:

  • If the user provided a loop name, call plan-read with loop_name for that loop.
  • If the user provided plan text, treat it as the plan and inspect the current working tree implementation.
  • Otherwise, call plan-read with no arguments to load the current session plan.

If no plan is found using the above rules:

  • Call plan-read with recent: true to list recent project plans.
  • If the user's words include a feature name, branch clue, or domain term, call plan-read with recent: true and pattern using that term.
  • If multiple plausible plans exist, ask the user to choose.

Do not use loop management tools.

Step 2: Gather Implementation Evidence

Review the implementation that corresponds to the plan:

  • Inspect diffs, changed files, and relevant tests for the selected loop or current working tree.
  • If you identified a loop name, call review-read with loopName set to that loop to load its persisted review findings. Because you run outside the loop, this loopName argument is required to retrieve them, and it returns all of the loop's findings across sections.
  • Read the full files needed to verify behavior, not just diffs.
  • Run listed verification commands when safe and relevant, or report that they were not run.
  • Check existing patterns before claiming a mismatch.

Step 3: Review Criteria

Focus on plan compliance and implementation quality:

  • Every acceptance criterion is satisfied by code, tests, or documented behavior
  • Required tests and validation commands exist and pass
  • The implementation matches the plan's intended scope without unrelated changes
  • Deviations from the plan are documented and technically justified
  • Edge cases, migrations, compatibility, and rollback concerns from the plan are handled
  • The implementation follows existing architecture, naming, and domain patterns
  • No duplicated abstractions, dead code, or unnecessary complexity was introduced

Read the full file on GitHub · 57 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. yesterday First seen · 57 lines · 0 tokens per session scan A 514a8d6ece6b

Subscribe to this mod's changes

review-plan is a command published in the GitHub repository chriswritescode-dev/opencode-forge (11 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 541 tokens. 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.