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/merge)<a href="https://agentmods.dev/commands/cwakim/claude-plugins/merge"><img src="https://agentmods.dev/badge/commands/cwakim/claude-plugins/merge/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/merge"><img src="https://agentmods.dev/badge/commands/cwakim/claude-plugins/merge.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.00064 | $0.02765 |
| Opus 5.5 | $0.00026 | $0.01106 |
| Sonnet 5.5 | $0.00013 | $0.00553 |
| Haiku 4.5 | $0.00006 | $0.00277 |
Grade A, and why
merge 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.
How it starts
The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Merge (merge [--dry-run] [path])
Converges this machine's live state with the other machines'
mirrors. Merge reads one, several, or all of the other
machines/<host>/ subtrees from a backup source and applies their content
into the live stores here, with restore's temperament throughout: plan
first, conflicts asked, nothing local ever deleted, nothing applied before
the plan is confirmed. It never writes into any machines/ subtree; the
every-machine-writes-only-its-own invariant from docs/layout.md stands.
It works for any number of machines. Full convergence is one cycle: each
machine in turn merges from all the others and backs up, in any order;
after the last machine's turn every subtree agrees, and resolutions made
early in the cycle propagate through the mirror, so later machines mostly
just confirm them.
Merge covers memories, handoffs, and plans. Config is excluded by
design: settings.json, keybindings, commands, and agents legitimately
differ per machine, and merging them invites subtle breakage. Config moves
between machines only through an explicit restore, where the user has
deliberately chosen a source machine to copy from.
The mirror tree and name-to-target derivation rules live in
${CLAUDE_PLUGIN_ROOT}/docs/layout.md; read it before building the plan.
If the source machine picked below turns out to be this machine's own
subtree, refuse and point at restore: merging a mirror into the machine
it came from is what restore is for.
Resolve the source
Identical to restore's source resolution (see commands/restore.md), except
merge wants every machine's subtree, not just this host's:
<path>given: a zip made byzip <path>, or its already-extracted folder. A.zipfile is extracted into a fresh temp directory (mktemp -d); a directory is used directly. Verify the source root contains at least onemachines/<hostname>/subtree; if not, say so and stop. No GitHub, nogh, no network.<path>is a gist URL (https://gist.github.com/...): a share bundle fromshare(${CLAUDE_PLUGIN_ROOT}/commands/share.md), the common way a colleague receives a thread. Resolve it exactly asrestoredoes (gh gist viewthebundle.zip.base64file, base64-decode, extract into a fresh temp directory), then treat that directory as the source root like any extracted zip. Requiresghauthenticated. A share bundle holds one machine's curated subtree, so the single-source path below applies; point the user at itsONBOARDING.mdin the report.- No
<path>: a configured backup target; both kinds may exist.- GitHub mirror (
~/.claude/memory-backup/clone):git pull --ff-onlyfirst so it is current. The source root is the clone. - Object storage (
~/.claude/memory-backup-obstore.json): materialize it into a fresh temp directory with${CLAUDE_PLUGIN_ROOT}/scripts/obstore-pull.sh --dest <tmp> --bucket ...reading bucket/prefix/endpoint/region/profile from the config. Pass no--host, so the wholemachines/tree (every machine) comes down, which is what merge reads across. The temp dir is then the source root, handled exactly like an extracted zip. - Both configured: ask via
AskUserQuestionwhich to merge from. Only one: use it without asking. If nothing is configured, say so and stop: merge presumes an established mirror (for disaster recovery onto a fresh machine, userestore).
- 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.
- 2mo ago Changed · +9 lines cbaf6187a74b
- 3mo ago First seen · 182 lines · 64 tokens per session scan A 46018af7ff4d
merge is a command published in the GitHub repository cwakim/claude-plugins (2 stars, last pushed 2mo ago), licensed MIT. It adds 64 tokens to every session and 2,765 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.
merge compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mergecwakim/claude-plugins | Command | 2 | 2mo ago | MIT | A | 64 | Claude Code |
| patternsmycelium-hq/ai-brain-starter | Command | 61 | 2d ago | MIT | A | 20 | Claude Code |
| context-primejoaquimscosta/arkhe-claude-plugins | Command | 24 | 1mo ago | MIT | A | 65 | Claude Code |
| diaryjoaquimscosta/arkhe-claude-plugins | Command | 24 | 1mo ago | MIT | A | 16 | Claude Code |
| tourLH8PPL/core-memory-kit | Command | 8 | 2mo ago | MIT | A | 21 | Claude Code |
| claude-flow-memoryjazz-max/ruflo-hub | Command | 4 | 3mo ago | none | A | 12 | Claude Code |
| post-taskjazz-max/ruflo-hub | Command | 4 | 3mo ago | none | A | 0 | Claude Code |