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.
/plugin marketplace add shandar/trace/plugin install trace-prd-autoWrote 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.
[](https://agentmods.dev/commands/shandar/trace/review)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 anid.unprocessed: tool events not yet synthesized, plusmarks(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.
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.
- 17d ago First seen · 63 lines · 20 tokens per session scan A a802ff7a8c99
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.
review compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| reviewshandar/trace | Command | 7 | 18d ago | MIT | A | 20 | Claude Code |
| specifygithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |
| speckit.bug.testgithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |
| constitutiongithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |
| plangithub/spec-kit | Command | 153k | 3d ago | MIT | A | 14 | Claude Code |
| speckit.github.taskstoissuesgithub/spec-kit | Command | 153k | 3d ago | MIT | A | 21 | Claude Code |
| speckit.git.featuregithub/spec-kit | Command | 153k | 3d ago | MIT | A | 9 | Claude Code |