Borrowing it
Nothing to install: this file belongs to Abinesh-L/claude-crusts. 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/Abinesh-L/claude-crusts/main/.claude/commands/crusts.mdgit clone --depth 1 https://github.com/Abinesh-L/claude-crustsWrote 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/abinesh-l/claude-crusts/crusts)<a href="https://agentmods.dev/commands/abinesh-l/claude-crusts/crusts"><img src="https://agentmods.dev/badge/commands/abinesh-l/claude-crusts/crusts/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/abinesh-l/claude-crusts/crusts"><img src="https://agentmods.dev/badge/commands/abinesh-l/claude-crusts/crusts.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.00442 |
| Opus 5 | $0.00000 | $0.00221 |
| Sonnet 5 | $0.00000 | $0.00088 |
| Haiku 4.5 | $0.00000 | $0.00044 |
Grade A, and why
crusts 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 5d 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
Run the CRUSTS context window analyzer and give me actionable advice.
Steps:
-
Run this command in the terminal and capture the full JSON output:
npx claude-crusts analyze --json -
Parse the JSON result. Focus on:
breakdown.usage_percentageandbreakdown.context_limitbreakdown.buckets(the 6 CRUSTS categories with token counts; each bucket'stokensis reconciled so the buckets sum to the API window total, whilecontentTokenskeeps the raw classifier estimate)wastearray (each item hasdescription,estimated_tokens,severity,recommendation)recommendations.context_health(healthy/warming/hot/critical)recommendations.estimated_messages_until_compactionrecommendations.recommendations(prioritized action items)
-
If context health is "healthy" (usage <50%), say so briefly: "Context is healthy at X%. No action needed." Then stop.
-
If context is warming, hot, or critical, give specific advice:
Files to stop re-reading: Look at waste items with type "duplicate_read". List the exact filenames and say: "These files are already in your context. Reference them by name instead of reading them again."
Compact or wait:
- If
estimated_messages_until_compactionis >30, say "No urgency — you have ~N messages before auto-compaction." - If it's 10-30, say "Consider running /compact soon."
- If it's <10, say "Compact now" and provide the exact command.
Specific /compact focus: If the recommendations include a compact focus suggestion, give the exact
/compact focus on ...command to paste.Fresh session: If there have been 3+ compaction events OR usage is critical, suggest
/clearand starting fresh instead. - If
-
Keep the response short and direct. No tables, no category breakdowns — just tell me what to do right now.
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.
- 5d ago Changed e6b3a4b4e581
- 11d ago First seen · 36 lines · 0 tokens per session scan A e8ebb7b8dedd
crusts is a command published in the GitHub repository Abinesh-L/claude-crusts (83 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 442 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-08-30.
Other commands, from other repositories
compress
Automatically compress CLAUDE.md or other memory files with protected-span safety. One-command token savings.
dream
Memory dream pass — judge undreamed days, promote durable signal to long-term, then sweep.
list
List memory rows (optionally filtered by type or tier).
tree-ring-capture
Capture a concise validated lesson decision warning or preference in Tree Ring Memory.
tree-ring-recall
Recall durable Tree Ring Memory context before starting or resuming work.
tree-ring-certify
Generate Tree Ring harness or recall-quality evidence without confusing it with the full framework release suite.