Claude Code
Claude Code is Anthropic’s official CLI for Claude. AVC integrates with it via the Model Context Protocol — Claude can call avc_snapshot, avc_diff, avc_restore, etc. as native tools.
avc init --skills claude-codeThat single command writes everything needed.
What gets written
Section titled “What gets written”.claude/├── settings.json ← MCP server registration└── skills/ ├── avc-snapshot/SKILL.md ← "When and how to snapshot" ├── avc-branch/SKILL.md ← "When to use branches" ├── avc-restore/SKILL.md ← "When to roll back" └── avc-merge/SKILL.md ← "How to merge an agent branch"The settings.json registers the AVC MCP server:
{ "mcpServers": { "avc": { "command": "avc", "args": ["mcp", "serve", "--compact"] } }}The skill files are prompt instructions Claude reads when it loads the project. They explain the four primitives and when to use each tool.
Workflow
Section titled “Workflow”Open the project in Claude Code:
claudeClaude detects the .claude/ directory and loads the skills. Ask it to do something non-trivial:
“Refactor the auth module to use bcrypt”
What Claude does (with AVC integration):
- Calls
avc_branch_createto make arefactor-authworkspace - Edits files inside
.avc/workspaces/refactor-auth/ - Calls
avc_snapshotafter each meaningful change - When done, summarizes what it did and asks if you want to merge
You can run avc list (or open the Web UI) at any time to see every snapshot Claude took.
Updating skills
Section titled “Updating skills”If you update AVC and want the latest skill files:
avc init --skills claude-codeThis is idempotent — it overwrites .claude/settings.json and the AVC skill files but leaves your other skills alone.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Fix |
|---|---|
| Claude says “tool avc_snapshot not found” | Restart Claude Code so it re-reads .claude/settings.json |
avc: command not found in the MCP error | Set the full path in settings.json: "command": "/usr/local/bin/avc" |
| Skills not being followed | Confirm .claude/skills/avc-*/SKILL.md files exist; rerun avc init --skills claude-code |