Borrowing it
Nothing to install: this file belongs to bredmond1019/claude-sdk-rs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bredmond1019/claude-sdk-rs/main/.claude/commands/prime.mdgit clone --depth 1 https://github.com/bredmond1019/claude-sdk-rsWrote 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/bredmond1019/claude-sdk-rs/prime)<a href="https://agentmods.dev/commands/bredmond1019/claude-sdk-rs/prime"><img src="https://agentmods.dev/badge/commands/bredmond1019/claude-sdk-rs/prime/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/bredmond1019/claude-sdk-rs/prime"><img src="https://agentmods.dev/badge/commands/bredmond1019/claude-sdk-rs/prime.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.00000 | $0.01232 |
| Opus 5.5 | $0.00000 | $0.00493 |
| Sonnet 5.5 | $0.00000 | $0.00246 |
| Haiku 4.5 | $0.00000 | $0.00123 |
Grade A, and why
prime 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 11d 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 — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prime — Deep orient to the current project at the start of a session.
For routine session starts, use
/session-recapinstead — lighter, and covers the common case. Reach for/primefor genuine deep re-orientation: first session in a repo, returning after a long gap, or when/session-recap's summary isn't enough to get moving.
Instructions
- Read each file listed in Context / Files to Read in order.
- Run
git ls-filesto see the full tracked file tree. - Check for an active handoff: run
ls planning/handoff.md 2>/dev/null.- If the file exists, read it. Lead your summary with an Active Handoff section (see format below) before everything else. This is the most important thing a new session agent needs to see.
- If absent, skip this section silently.
3.5. Freshness gate —
mev validate-brain --sync. Check whether this repo participates in a brain (walk up from the current directory looking forbrain.toml, same resolution/log-workuses). Degrade gracefully rather than failing: - If
mevis not found onPATH, say so in the Freshness line and continue — do not treat this as an error. - If no
brain.tomlis found (standalone repo), say so in the Freshness line and continue. - Otherwise run
mev validate-brain --sync(read-only) from the brain root. If it reports every watermark in sync, note that. If it reports a drift (a project's sourcetimestampdoes not match its cache'ssynced_from, e.g.E_SYNC_DRIFT/E_SYNC_WATERMARK_MISSING), name the stale project(s) and offer to runmev emit-state --writeto reconcile them — never run it without the user's explicit confirmation (D26: validation stays read-only by default). If the user declines or doesn't respond, proceed with the rest of/primeunchanged; the drift is informational, not a blocker. 3.6. Warm memory — by budget, never by reflex (brain decision D67). Runwc -w planning/knowledge.md planning/memory.mdand branch on the combined count: - ≤ 2,500 words → read both files in full.
- over 2,500 → read only the topic list
(
grep '^### ' planning/knowledge.md planning/memory.md), then open a named section on request and only then.
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.
- 11d ago First seen · 78 lines · 0 tokens per session scan A 6635e8c48638
prime is a command published in the GitHub repository bredmond1019/claude-sdk-rs (23 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,232 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-10-26.
prime compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| primebredmond1019/claude-sdk-rs | Command | 23 | 1mo ago | Apache-2.0 | A | 0 | Claude Code |
| merge-conflict-analysisrjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | GitHub Copilot |
| release-notesOpenHands/extensions | Command | 176 | yesterday | MIT | A | 44 | Claude Code |
| commitechoVic/blade-code | Command | 181 | 24d ago | MIT | A | 8 | Claude Code |
| repo-audittractorjuice/arc-kit | Command | 2.3k | 2d ago | none | A | 29 | Claude Code |
| propsmill/infrahub-mcp | Command | 10 | yesterday | Apache-2.0 | A | 18 | Claude Code |
| codex-reviewoalders/kitchen-sink | Command | 5 | 3d ago | MIT | A | 41 | Claude Code |