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/init)<a href="https://agentmods.dev/commands/shandar/trace/init"><img src="https://agentmods.dev/badge/commands/shandar/trace/init/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/init"><img src="https://agentmods.dev/badge/commands/shandar/trace/init.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.00017 | $0.00259 |
| Opus 5.5 | $0.00007 | $0.00104 |
| Sonnet 5.5 | $0.00003 | $0.00052 |
| Haiku 4.5 | $0.00002 | $0.00026 |
Grade A, and why
init 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.
What it actually says
Set up TRACE for this project.
-
Run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/trace.mjs" init -
If it exits with code 3 (TRACE.md already exists), tell the user and ask whether to overwrite it. Only if they clearly say yes, run the same command with
--force. Never overwrite without a yes. -
Once TRACE.md exists, help the user fill in the Intent section: ask what they are building and why, in one or two sentences, and write their answer into that section. If they want to skip this, leave the placeholder.
-
Finish with a short note:
- From now on, TRACE logs tool activity in this project to
.trace/sessions/(gitignored, secrets redacted). - Run
/trace-prd-auto:reviewat any point to turn recent work into Decision Log, Assumption Ledger and Open Questions entries. - Optional: setting an Anthropic API key in the plugin options turns on background proposals after each turn.
- From now on, TRACE logs tool activity in this project to
$ARGUMENTS
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 · 24 lines · 17 tokens per session scan A 002375082a23
init is a command published in the GitHub repository shandar/trace (7 stars, last pushed 18d ago), licensed MIT. It adds 17 tokens to every session and 259 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.
init compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| initshandar/trace | Command | 7 | 18d ago | MIT | A | 17 | 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 |