wh:backup

wh:backup is a command for Claude Code from maxwellsdm1867/wheeler. It costs 34 tokens per session (972 once invoked), scanned A, original, MIT.

A command that saves a Wheeler project and its Neo4j knowledge graph as one compressed tar.gz archive. It can include the complete project or only graph metadata.

In plain words
What is it for?
Use it to create backups before risky changes, move a Wheeler project, or preserve its graph and project files for later restoration.
Why use it?
It puts the files and graph data needed for recovery into one archive, with a manifest and hashes for checking what was saved.

Command for Claude Code

Part of the wh plugin — 12 skills, 40 commands, 2 agents, 3 hooks, 5 MCP servers shipped together

Install

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.

agentmods
npx agentmods add commands/maxwellsdm1867/wheeler/backup
Clone the repo
git clone --depth 1 https://github.com/maxwellsdm1867/wheeler

Made for: Claude Code.

Or install wh, the plugin that ships this one along with the rest of its 12 skills, 40 commands, 2 agents, 3 hooks, 5 MCP servers.

Wrote 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.

agentmods badge for wh:backup

README.md
[![agentmods](https://agentmods.dev/badge/commands/maxwellsdm1867/wheeler/backup.svg)](https://agentmods.dev/commands/maxwellsdm1867/wheeler/backup)
Your own site
<a href="https://agentmods.dev/commands/maxwellsdm1867/wheeler/backup"><img src="https://agentmods.dev/badge/commands/maxwellsdm1867/wheeler/backup.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 972 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00034 $0.00972
Opus 5 $0.00017 $0.00486
Sonnet 5 $0.00007 $0.00194
Haiku 4.5 $0.00003 $0.00097

Measured 3d ago against content hash c539516d7c4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wh:backup 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 3d 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.

.claude/commands/wh/backup.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Snapshot the Wheeler knowledge graph plus all canonical files into a single tar.gz archive. This shells out to the wheeler backup CLI subcommand on purpose: the MCP transport caps tool results at ~235k chars and a real graph dump saturates that immediately. The CLI runs in-process and is not affected.

What gets included

By default (--scope project) the full project_root tree is packed:

  • knowledge/ (all per-node JSON metadata)
  • synthesis/ (Obsidian-compatible markdown)
  • .plans/, .notes/, .logs/, docs/, scripts/, and all other project directories
  • .wheeler/ (embeddings, request log, repair queue; excludes .wheeler/backups/ to prevent recursion)
  • wheeler.yaml (config; the Neo4j password is stripped to ${NEO4J_PASSWORD})
  • graph_nodes.jsonl (one JSON object per node, full properties; paths rewritten to ${PROJECT}/...)
  • graph_relationships.jsonl (one per relationship, source + type + target + props)
  • manifest.json (timestamp, version, counts, SHA-256 hashes, embedder info, manifest_version, archive_uuid, external_references, excluded_paths, manifest_signature)

Use --scope graph-only for the smaller v1-style metadata-only archive (knowledge/, synthesis/, .wheeler/, wheeler.yaml plus graph JSONL, no full project tree).

Artifact safety

A secret scan runs over all packed files by default. If any file contains patterns that look like Anthropic API keys, the backup is aborted and the offending files and patterns are listed. The scanned pattern set lives in wheeler/portability.py. Pass --allow-secrets to override (not recommended). The wheeler.yaml password field is always stripped to ${NEO4J_PASSWORD} regardless.

Path portability

Paths stored in graph nodes (Finding.path, Dataset.path, Script.path, etc.) are rewritten from absolute to ${PROJECT}/... inside the archive. Live files on disk are never modified. On restore, ${PROJECT}/... is expanded back to the absolute path of the recipient's project root.

Read the full file on GitHub · 107 lines

Changes

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.

  1. 3d ago First seen · 107 lines · 34 tokens per session scan A c539516d7c4d

Subscribe to this mod's changes

wh:backup is a command published in the GitHub repository maxwellsdm1867/wheeler (10 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 972 once invoked, about $0.0002 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.