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 adhenawer/claude-snapshot/plugin install snapshotWrote 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/adhenawer/claude-snapshot/apply)<a href="https://agentmods.dev/commands/adhenawer/claude-snapshot/apply"><img src="https://agentmods.dev/badge/commands/adhenawer/claude-snapshot/apply.svg" alt="Measured on agentmods" 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.00012 | $0.00516 |
| Opus 5 | $0.00006 | $0.00258 |
| Sonnet 5 | $0.00002 | $0.00103 |
| Haiku 4.5 | $0.00001 | $0.00052 |
Grade A, and why
apply 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
/snapshot:apply
Apply a Claude Code snapshot to this machine, restoring the complete setup.
Usage
/snapshot:apply <path-to-snapshot.tar.gz>
Steps
-
Validate the path argument exists
-
First run diff to show the user what will change:
node "${CLAUDE_PLUGIN_ROOT}/src/snapshot.mjs" diff "$SNAPSHOT_PATH"
-
Present the diff summary and ask for confirmation:
"The following changes will be applied: [summary]. Existing files with conflicts will be backed up as
.bak. Apply all? (y/n)" -
If confirmed, run apply:
node "${CLAUDE_PLUGIN_ROOT}/src/snapshot.mjs" apply "$SNAPSHOT_PATH"
-
Report results:
- Files written/overwritten
- Backups created (.bak files)
- Plugins installed (or failed to install)
- Any warnings (e.g., runtime path differences between machines)
-
MCP servers — post-apply guidance:
If
result.mcpReport.missingis non-empty, surface it as a dedicated section. For each missing server, show install guidance based on itsmethod:- npm: "Install with the MCP's official install command (e.g.
claude mcp add {name} npx -y <package>)." - pip: "Install with
uvx <package>or the project's documented uv/pipx command." - binary: "This MCP points to a local binary ({command}). Confirm the binary exists on this machine or install it."
- manual: "This MCP uses a custom command ({command}). Refer to its source documentation."
Do NOT modify
~/.claude.jsonyourself. v0.2 explicitly reports without writing because.claude.jsonalso holds OAuth tokens. The user installs MCPs through their normal tooling; the snapshot tells them what to install, not how to edit the file.If
result.mcpReport.matchedis non-empty, you can mention briefly that those MCPs were already present and no action is needed. - npm: "Install with the MCP's official install command (e.g.
-
Important: Warn the user to restart Claude Code for changes to take full effect.
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 First seen · 54 lines · 12 tokens per session scan A 121e307792f9
apply is a command published in the GitHub repository adhenawer/claude-snapshot (2 stars, last pushed 4mo ago), licensed MIT. It adds 12 tokens to every session and 516 once invoked, about $0.0001 per session on Opus 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-08-31.
Other commands, from other repositories
example-command
Placeholder slash command bundled in the example profile.
create-issue
Create GitHub issue with validated labels.
retro
Run retrospective to capture learnings.
close-issue
../../knowledge/procedures/close-issue-procedure.md.
extract-best-frame
../../knowledge/procedures/extract-best-frame-procedure.md.
learn
Force claude-smart to extract learnings from this session now.