SnapBack watches every AI-assisted change, learns what breaks in YOUR codebase, and catches disasters before they ship. Works with Cursor, Copilot, Claude, Windsurf, Cline, and more.
Quick Start · Platform · MCP Integration · Documentation · Discord
AI coding assistants are powerful but unpredictable. They can:
- Overwrite hours of work in a single paste
- Break configurations that "always worked"
- Introduce subtle bugs across multiple files
SnapBack is your safety net. It runs silently in the background, creating restore points and learning patterns. When AI breaks something—and it will—you're one click away from recovery.
"Day 1: 94% accurate. Day 30: It knows YOUR codebase. Month 3: It catches patterns you didn't know existed."
This extension is the visual interface to the SnapBack intelligence platform. The full platform includes:
| Component | Purpose |
|---|---|
| VS Code Extension | Real-time protection, instant recovery, status bar dashboard |
CLI (@snapback/cli) |
Terminal workflows, CI/CD integration, automation scripts |
| MCP Server | AI assistant coordination, intelligent checkpointing |
| Web Dashboard | Cross-project analytics, team insights, pattern library |
Install the extension to get started—the intelligence layer works immediately. Add the CLI or MCP server when you're ready for advanced workflows.
Restore any file to any point in seconds. No Git archaeology, no lost work.
Automatically detects changes from 11 AI assistants: GitHub Copilot, Cursor, Claude, Windsurf, Cline, Tabnine, Codeium, Amazon Q, JetBrains AI, Sourcegraph Cody, and more.
SnapBack learns what breaks in your specific codebase and warns you before the same mistakes happen again.
Click the SnapBack icon in your status bar to instantly access:
- Protection status at a glance
- Quick actions (snapshot, restore, protect)
- Jump to your web dashboard
- Session statistics
100% local by default. Your code never leaves your machine. Cloud sync is optional.
VS Code Marketplace (Recommended)
ext install MarcelleLabs.snapback-vscode
Or install from the marketplace
- Open any critical file (
.env,auth.ts,database.ts) - Right-click → SnapBack: Protect This File
- Choose a protection level:
| Level | Icon | Behavior |
|---|---|---|
| Watch | 👁️ | Monitor silently, auto-snapshot on changes |
| Warn | Show banner before risky edits | |
| Block | 🔒 | Require confirmation for any edit |
When AI breaks something:
Cmd+Shift+P→ SnapBack: Restore Snapshot- Select the snapshot (timestamped, with AI tool attribution)
- Preview the diff → Confirm
- Done. File restored.
Shortcut: Cmd+Shift+S creates a snapshot, Cmd+Shift+R restores.
The SnapBack status bar item gives you one-click access to everything:
┌─────────────────────────────────────┐
│ SnapBack Quick Actions │
├─────────────────────────────────────┤
│ 📸 Create Snapshot │
│ ↩️ Quick Restore │
│ 🛡️ Protect Current File │
│ 📊 Open Dashboard │
│ ⚙️ Settings │
└─────────────────────────────────────┘
Click the status bar → select an action → done. No command palette required.
SnapBack includes a Model Context Protocol (MCP) server that enables AI assistants to coordinate with your protection system.
When configured, AI assistants can:
snap({mode: "start", task: "refactor auth module"})
→ SnapBack creates checkpoint, returns context
snap({mode: "check", files: ["auth.ts"]})
→ Validates changes against learned patterns
snap_end({ok: 1, learnings: ["Always backup before auth changes"]})
→ Records session outcome for future learning
| Tool | Purpose |
|---|---|
snap |
Start task, get context, quick check |
check |
Validate code against patterns |
advise |
Get risk analysis before changes |
pulse |
Health check and session status |
snap_learn |
Record a new pattern |
snap_violation |
Report a mistake for learning |
snap_end |
Complete task with learnings |
snap_fix |
List/restore snapshots |
snap_help |
Get workflow guidance |
Add to your AI assistant's MCP configuration:
{
"mcpServers": {
"snapback": {
"command": "npx",
"args": ["@snapback/mcp-server"]
}
}
}For terminal workflows and automation, install the SnapBack CLI:
npm install -g @snapback/cli# Create a snapshot before risky operations
snapback snap "before refactor"
# List recent snapshots
snapback list
# Restore a specific snapshot
snapback restore <snapshot-id>
# Check file against learned patterns
snapback check src/auth.ts
# View protection status
snapback statusThe CLI shares the same .snapback/ database as the extension—your snapshots and learnings sync automatically.
| Command | Shortcut | Description |
|---|---|---|
| Create Snapshot | Cmd+Shift+S |
Snapshot current file state |
| Quick Restore | Cmd+Shift+R |
Restore most recent snapshot |
| Undo AI Change | — | Revert the last AI-detected change |
| View All Snapshots | — | Browse snapshot history with diffs |
| Command | Description |
|---|---|
| Protect File | Add file to protection with level selection |
| Protect Entire Repo | Auto-protect based on patterns |
| Change Protection Level | Adjust Watch/Warn/Block |
| View Protected Files | See all protected files |
| Command | Description |
|---|---|
| Restore Session | Restore multiple files from a session |
| Compare with Snapshot | Diff current vs snapshot |
| Delete Older Snapshots | Clean up old snapshots |
Access all commands: Cmd+Shift+P → type "SnapBack"
SnapBack works 100% offline with full functionality. Sign in to unlock cloud features.
Cmd+Shift+P→ SnapBack: Sign In- Browser opens → Sign in with GitHub or Google
- Extension auto-connects
| Feature | Local | Cloud |
|---|---|---|
| Snapshots | ✅ Unlimited | ✅ + Sync |
| AI Detection | ✅ 11 tools | ✅ Same |
| Pattern Learning | ✅ Local patterns | ✅ + Community patterns |
| Cross-device | ❌ | ✅ Yes |
| Team sharing | ❌ | ✅ Yes |
Cmd+Shift+P → SnapBack: Sign Out — all local data preserved.
Create .snapbackrc in your workspace root:
{
"protection": {
"patterns": {
"*.env*": "block",
"src/auth/**": "warn",
"**/database/**": "watch"
}
},
"snapshots": {
"autoCreate": true,
"maxAge": "30d"
}
}{
"snapback.autoProtect": true,
"snapback.protectionPatterns": ["*.env*", "**/*.key"],
"snapback.telemetry": false
}Full configuration reference →
- Local-first: All data in
.snapback/in your workspace - No telemetry without explicit consent
- No code upload: We never see your code
- Open source: Audit at github.com/snapback-dev
- Cloud optional: Full functionality offline
- Requires VS Code 1.80+
Cmd+Shift+P→ "Developer: Reload Window"- Check Output panel → "SnapBack" for errors
- Check
.snapback/directory exists in workspace - Verify file is protected: look for badge in explorer
- Confirm disk space available
- Verify MCP config syntax
- Check AI assistant supports MCP
- See MCP troubleshooting →
We're building SnapBack in public and your feedback shapes the product.
- Discord: Join our community →
- GitHub Issues: Report bugs →
- Feature Requests: Discussions →
- Twitter: @snapbackdev
| Resource | Link |
|---|---|
| Documentation | docs.snapback.dev |
| Website | snapback.dev |
| GitHub | github.com/snapback-dev |
| MCP Server | @snapback/mcp-server |
| CLI | @snapback/cli |
| Changelog | View releases |
Built with 💚 by Marcelle Labs
