mrq + Claude Code
Automatic snapshots for Claude Code's agentic coding. Recover instantly when autonomous changes go wrong.
Why Claude Code Needs Backup Protection
Claude Code is Anthropic's terminal-based agentic coding tool. It works autonomously, reading your codebase, making decisions, and implementing changes across multiple files.
This autonomy is powerful but risky:
- Claude Code makes architectural decisions on its own
- It can delete, move, or refactor files without confirmation
- Changes happen across many files simultaneously
- The AI's interpretation of your task may differ from your intent
When Claude Code misunderstands a task or takes an unexpected approach, recovery without automatic backups is painful.
How mrq Works with Claude Code
mrq monitors your file system independently of Claude Code. It captures snapshots whenever meaningful changes occur, regardless of which tool makes them.
npm install -g mrq-cli@latest
mrq login
mrq watch --daemon Start the daemon before your Claude Code session. All changes are captured automatically.
Recovery Flow
$ mrq history
Recent Snapshots
────────────────────────────────────────────────────
14:23:45 abc123 Restructured database layer
+312 lines, -245 lines across 15 files
14:18:22 def456 Added connection pooling
+89 lines, -12 lines across 3 files
14:12:08 ghi789 Initial database module
+156 lines across 5 files
────────────────────────────────────────────────────
$ mrq restore def456
✓ Restored to snapshot def456
✓ Current state backed up as jkl012 If Claude Code's database restructuring wasn't what you wanted, you're back to the previous state in one command.
Agentic Workflow Best Practices
Let Claude Code Be Ambitious
With mrq running, you don't need to constrain Claude Code's scope. Ask it to try the aggressive refactor. If it doesn't work out, you're one command from reverting.
Review Before Committing
After Claude Code completes a task, use mrq history to see what changed. Browse snapshots in the dashboard to understand the scope of modifications before committing to git.
Iterate Quickly
Try approach A. If it doesn't work, restore and try approach B. mrq makes iteration cheap.
Terminal Workflow
Both mrq and Claude Code are terminal-native. A typical workflow:
# Terminal 1: Start mrq
mrq watch
# Terminal 2: Run Claude Code
claude
# If something goes wrong
mrq restore abc123 Or use daemon mode to run mrq in the background:
mrq watch --daemon
claude
# Later...
mrq history
mrq restore abc123 Related Resources
- Recover from Claude Code mistakes - Quick recovery guide
- mrq vs Git - When to use each
- Documentation - Full reference
- All integrations - Other AI tools
Get Started
npm install -g mrq-cli@latest
mrq login
mrq watch Unlock Claude Code's full potential
Automatic snapshots let you try ambitious prompts without risk.
Get Started Free →