review

review is a command for Claude Code from shandar/trace. It costs 20 tokens per session (662 once invoked), scanned A, original, MIT.

A command that reviews proposed updates for TRACE.md, a living product requirements document. It can turn recent tool activity into suggested decisions, assumption changes, and open questions, then lets the user accept, rewrite, or skip each one.

In plain words
What is it for?
Use it to inspect pending proposals and create reviewed entries from recent development work. It requires TRACE to be initialised first and uses a helper script to perform file changes.
Why use it?
It keeps people in control of what enters the project record while reducing the work of finding meaningful changes in recent activity. It also avoids inventing entries when the activity has no useful meaning.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the trace-prd-auto plugin — 2 commands, 2 hooks shipped together

Good fit Use it to inspect pending proposals and create reviewed entries from recent development work. It requires TRACE to be initialised first and uses a helper script to perform file changes.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add shandar/trace
Claude Code
/plugin install trace-prd-auto

Made for: Claude Code.

Or install trace-prd-auto, the plugin that ships this one along with the rest of its 2 commands, 2 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/shandar/trace/review"><img src="https://agentmods.dev/badge/commands/shandar/trace/review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 662 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.00020 $0.00662
Opus 5.5 $0.00008 $0.00265
Sonnet 5.5 $0.00004 $0.00132
Haiku 4.5 $0.00002 $0.00066

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

Security

Grade A, and why

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 17d 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.

plugins/trace-prd-auto/commands/review.md · 63 lines

How it starts

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

Review TRACE proposals for this project. The helper script owns every file write; never edit TRACE.md or anything in .trace/ directly.

Helper: node "${CLAUDE_PLUGIN_ROOT}/scripts/trace.mjs" <command>

1. Load state

Run status. If it exits with code 2, tell the user to run /trace-prd-auto:init and stop.

The JSON has:

  • pending: proposals already queued (from background runs or earlier reviews), each with an id.
  • unprocessed: tool events not yet synthesized, plus marks (session to line count).

2. Synthesize unprocessed events (only if unprocessed.has_meaningful_changes is true)

Read TRACE.md, then read the events through three lenses, one proposal at most per lens:

  • Decision Log: what engineering or product decision was made?
  • Assumption Ledger: what prior assumption was validated, contradicted, or newly surfaced?
  • Open Questions: what unknown emerged that could affect the build?

Rules:

  • Write each entry as one plain sentence that stands alone in the PRD and says why, not just what.
  • Ground every entry in the events. Do not invent decisions. Skip a lens when nothing fits.
  • Give each a confidence from 0 to 1; anything under 0.5 is dropped.
  • Do not repeat something TRACE.md already says.

Queue them by piping a JSON array on stdin with a quoted heredoc, so no text is interpreted by the shell:

node "${CLAUDE_PLUGIN_ROOT}/scripts/trace.mjs" queue <<'TRACE_EOF'
[{"section": "Decision Log", "edit": "...", "confidence": 0.8}]
TRACE_EOF

Then, whether or not you queued anything, run mark with every entry from unprocessed.marks, for example mark 2b46...=42 8a9a...=17, so the same events are not reviewed again.

3. Walk the queue

Run status again to get the full queue with ids. If it is empty, say there is nothing to review and stop.

Go through the proposals one at a time. For each, show the section, the entry text and its confidence, then ask with AskUserQuestion: Accept, Reword, Skip, or Stop reviewing.

Read the full file on GitHub · 63 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. 17d ago First seen · 63 lines · 20 tokens per session scan A a802ff7a8c99

Subscribe to this mod's changes

review is a command published in the GitHub repository shandar/trace (7 stars, last pushed 18d ago), licensed MIT. It adds 20 tokens to every session and 662 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-11-13.

Related

review compared with commands from other repositories

review next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reviewshandar/traceCommand718d agoMITA20Claude Code
specifygithub/spec-kitCommand153k3d agoMITA13Claude Code
speckit.bug.testgithub/spec-kitCommand153k3d agoMITA13Claude Code
constitutiongithub/spec-kitCommand153k3d agoMITA13Claude Code
plangithub/spec-kitCommand153k3d agoMITA14Claude Code
speckit.github.taskstoissuesgithub/spec-kitCommand153k3d agoMITA21Claude Code
speckit.git.featuregithub/spec-kitCommand153k3d agoMITA9Claude Code