init

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

A setup command that creates a TRACE.md file, a living product requirements document, and enables TRACE logging for the project.

In plain words
What is it for?
Use it to initialise TRACE in a project, fill in its intent section, and begin recording tool activity in the project's TRACE session directory.
Why use it?
It provides a starting place for recording what the project is building and why. It also explains how later work can be turned into decision, assumption, and question entries.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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 initialise TRACE in a project, fill in its intent section, and begin recording tool activity in the project's TRACE session directory.

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 init

README.md
[![agentmods](https://agentmods.dev/badge/commands/shandar/trace/init/github.svg)](https://agentmods.dev/commands/shandar/trace/init)
Your own site
<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.

agentmods 80×15 button for init

Your own site · 80×15
<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>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 259 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.00017 $0.00259
Opus 5.5 $0.00007 $0.00104
Sonnet 5.5 $0.00003 $0.00052
Haiku 4.5 $0.00002 $0.00026

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

Security

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.

plugins/trace-prd-auto/commands/init.md · 24 lines

What it actually says

Set up TRACE for this project.

  1. Run:

    node "${CLAUDE_PLUGIN_ROOT}/scripts/trace.mjs" init
    
  2. 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.

  3. 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.

  4. 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:review at 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.

$ARGUMENTS

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 · 24 lines · 17 tokens per session scan A 002375082a23

Subscribe to this mod's changes

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.

Related

init compared with commands from other repositories

init next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
initshandar/traceCommand718d agoMITA17Claude 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