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 cwakim/claude-plugins/plugin install memory-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/cwakim/claude-plugins/restore)<a href="https://agentmods.dev/commands/cwakim/claude-plugins/restore"><img src="https://agentmods.dev/badge/commands/cwakim/claude-plugins/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/cwakim/claude-plugins/restore"><img src="https://agentmods.dev/badge/commands/cwakim/claude-plugins/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.00068 | $0.01945 |
| Opus 5.5 | $0.00027 | $0.00778 |
| Sonnet 5.5 | $0.00014 | $0.00389 |
| Haiku 4.5 | $0.00007 | $0.00194 |
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 1mo 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 — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Restore (restore [--dry-run] [path])
Copies from a backup source back onto this machine. Interactive and
conservative: it adds and (only with consent) overwrites, and it never
deletes anything that exists only locally. Whichever source resolves
below, restore only ever reads from it: it never writes back to the
source, and never pushes anywhere. With --dry-run it goes exactly as far
as the plan (step 3) and stops: nothing is applied, no question is asked,
and any temp extraction directory is cleaned up. Useful for checking what a
restore would do, especially against the GitHub mirror, which may be weeks
ahead of or behind this machine.
The mirror tree and the name-to-target derivation rules live in
${CLAUDE_PLUGIN_ROOT}/docs/layout.md; read it before building the plan.
To converge this machine with a different machine's mirror, use merge
(${CLAUDE_PLUGIN_ROOT}/commands/merge.md) instead: restore maps a mirror
back onto the machine it came from (or a replacement for it), merge
reconciles two machines' divergent state.
Resolve the source
<path>given: a zip made byzip <path>, or its already-extracted folder. If<path>is a file (a.zip), extract it into a fresh temp directory (mktemp -d) and use that as the source root; if it is already a directory, use it directly. Verify the source root contains at least onemachines/<hostname>/subtree; if not, say so and stop. No GitHub involved at all: no clone, nogh, no network, and no need for/backup setupto have ever run.<path>is a gist URL (https://gist.github.com/...): a share bundle made byshare(${CLAUDE_PLUGIN_ROOT}/commands/share.md). Fetch it withgh gist view <id> --raw(or--files), read thebundle.zip.base64file, base64-decode it to a temp.zip, extract that into a fresh temp directory (mktemp -d), and use it as the source root exactly like a local zip. Requiresghauthenticated; no/backup setupneeded. The gist'sONBOARDING.mdis context for a human, not part of the restore; mention it in the report so the user reads it. A share bundle carries noconfig/and only the thread's curated stores, so the plan will naturally be narrow; that is expected.- No
<path>: a configured backup target. Two kinds can be configured, and both may be at once (seedocs/object-storage.md):- GitHub mirror (
~/.claude/memory-backup/is a clone with an origin). If it is not configured, this is probably the disaster-recovery path: ask for the backup repo (owner/name), verify it exists, and clone it into place first. Otherwisegit pull --ff-onlyso the mirror is current. The source root is the clone. - Object storage (
~/.claude/memory-backup-obstore.jsonexists). Read bucket/prefix/endpoint/region/profile from it and materialize the mirror into a fresh temp directory (mktemp -d) with${CLAUDE_PLUGIN_ROOT}/scripts/obstore-pull.sh --dest <tmp> --bucket .... That temp directory is then the source root, handled exactly like an extracted zip: read-only, and cleaned up at the end (step 4) or on any early stop, since this run created it. - Both configured: ask via
AskUserQuestionwhich to restore from (they can differ: the bucket may be ahead of or behind the git mirror). Only one configured: use it without asking.
- GitHub mirror (
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.
- 1mo ago Changed · +13 lines · +4 tokens per session 4db1b5a65ff9
- 1mo ago First seen · 118 lines · 64 tokens per session scan A f59cea8b7e6f
restore is a command published in the GitHub repository cwakim/claude-plugins (2 stars, last pushed 23d ago), licensed MIT. It adds 68 tokens to every session and 1,945 once invoked, about $0.0003 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
context-prime
Generate a highly structured, copy-paste-ready context block from the current conversation for cold-starting a new session. Produces a YAML-fronted Markdown block optimized for an LLM/AI to quickly gain situational awareness, including skills/agents used and a resume hint for checkpoint continuation. Optionally focus…
diary
Create a session diary entry to document development progress, decisions, and handoff context.
patterns
Scan recent sessions for recurring patterns and turn them into captures (rules, concept notes, writing seeds).
tour
Tour this project's memory — what's captured, where it lives, how to recall it (core-memory-kit).
claude-flow-memory
Interact with Claude-Flow memory system.
post-task
Execute post-task cleanup, performance analysis, and memory storage.