Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/dberuben/claude-code-backupWrote 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/dberuben/claude-code-backup/restore)<a href="https://agentmods.dev/commands/dberuben/claude-code-backup/restore"><img src="https://agentmods.dev/badge/commands/dberuben/claude-code-backup/restore/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/dberuben/claude-code-backup/restore"><img src="https://agentmods.dev/badge/commands/dberuben/claude-code-backup/restore.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.00013 | $0.00354 |
| Opus 5.5 | $0.00005 | $0.00142 |
| Sonnet 5.5 | $0.00003 | $0.00071 |
| Haiku 4.5 | $0.00001 | $0.00035 |
Grade A, and why
restore 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 2mo 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
You are running the claude-restore CLI. Restore is destructive, so behave
conservatively. Never pass --force on your own.
The user's arguments are: $ARGUMENTS
Map each space-separated keyword to a flag (ignore unknown words):
| keyword | flag |
|---|---|
dry-run |
--dry-run |
home-only |
--home-only |
project-only |
--project-only |
Procedure:
- First run
claude-restore --dry-run(plus any home-only/project-only flag) to show the restore plan. - Show the plan to the user and ask them to confirm in chat.
- Only after the user explicitly confirms, re-run with
--forceadded so the restore can proceed non-interactively, keeping the pre-restore backup enabled (the default).
Examples:
/restore→ show the dry-run plan, then on confirmation runclaude-restore --force/restore dry-run→ justclaude-restore --dry-run(never escalate)/restore project-only→claude-restore --dry-run --project-only, then on confirmationclaude-restore --project-only --force
Remind the user that some credentials (Keychain, OAuth, env vars) may require re-authentication after restore.
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.
- 2mo ago First seen · 39 lines · 13 tokens per session scan A 3112e06b3b88
restore is a command published in the GitHub repository dberuben/claude-code-backup (2 stars, last pushed 4mo ago), licensed MIT. It adds 13 tokens to every session and 354 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-08-31.
Other commands, from other repositories
create-topic
Research and generate a complete topic plan with keyword mapping, audience, angle, and competitive positioning.
negative-keyword-sweep
Find wasted spend in Google Ads search terms and add negatives at the right scope (account list, campaign, or ad group). Use when the user says "find junk keywords", "stop wasting on bad searches", or wants a search-terms cleanup.
launch-meta-campaign
Launch a complete Meta Ads campaign — campaign, ad set, and ad(s) — built paused and ready to review. Use when the user wants a new Facebook/Instagram campaign.
change-plan
Create a comprehensive change management plan for a transformation initiative.
financial-model
Build a financial model or business case with projections.
init-scaffolding
Bootstrap a new project with the scaffolding CLAUDE.md, settings.json, and .scaffolding/ directory structure.