Configuration
SnapBack works out of the box. Snapshots are created automatically based on risk detection and AI activity. Configure only when you need customization.
Quick Reference
Protection Levels
Watch, Warn, Block β control how files are protected
AI Detection
Automatic AI tool detection β no configuration needed
Storage
Customize where snapshots are stored
MCP Integration
Connect AI assistants to SnapBack
Protection Levels
| Level | Behavior | Best For |
|---|---|---|
| π’ Watch | Silent auto-snapshots | Source code, docs |
| π‘ Warn | Proceed with risk boost | Config files, dependencies |
| π΄ Block | Hard stop, no write | Secrets, .env*, credentials |
Automatic by default. SnapBack assigns protection levels based on file type. Most files get watch, config files get warn, and sensitive files get block. You rarely need to change this.
Pattern-Based Rules
Create .snapbackrc in your project root to customize:
{
"protection": [
{ "pattern": "src/auth/**/*", "level": "block" },
{ "pattern": "package.json", "level": "warn" },
{ "pattern": "**/*.md", "level": "watch" }
],
"ignore": ["*.test.ts", "**/*.spec.ts"]
}
AI Detection
Works automatically. SnapBack detects Cursor, GitHub Copilot, Claude Code, and Windsurf with 94% accuracy. No configuration required.
Settings
| Setting | Default | Description |
|---|---|---|
snapshot.sensitivity | "medium" | Detection sensitivity: "low" / "medium" / "high" |
aiDetection.confidenceThreshold | 6 | Minimum confidence to trigger (0-10 scale) |
snapshot.aiDetectionEnabled | true | Enable AI-triggered snapshots |
Higher sensitivity = more snapshots during AI activity.
Lower sensitivity = fewer snapshots, only on confident detection.
Storage
| Setting | Default | Description |
|---|---|---|
settings.snapshotLocation | .snapback/ | Where snapshots are stored |
settings.maxStorageSize | 500 | Maximum storage in MB |
settings.maxSnapshots | 100 | Maximum snapshots to retain |
Custom Storage Location
{
"settings": {
"snapshotLocation": "~/snapback-storage",
"maxStorageSize": 1000,
"maxSnapshots": 200
}
}
MCP Integration
VS Code handles this automatically. The SnapBack extension configures MCP for Cursor, Windsurf, and VS Code-based editors. This section is for standalone setup (Claude Desktop, etc.).
Settings
| Setting | Default | Description |
|---|---|---|
mcp.enabled | true | Enable MCP integration |
mcp.serverUrl | https://mcp.snapback.dev | MCP server endpoint |
mcp.timeout | 5000 | Request timeout in milliseconds |
Configure AI Assistants
# Claude Desktop
snap tools configure --claude
# Windsurf
snap tools configure --windsurf
# All detected assistants
snap tools configure --all
VS Code Settings
Access via β+, β Search βsnapbackβ:
| Setting | Default | Description |
|---|---|---|
snapback.protectionLevels.defaultLevel | "watch" | Default protection for new files |
snapback.snapshot.aiDetectionEnabled | true | AI-triggered snapshots |
snapback.mcp.enabled | true | MCP integration |
snapback.mcp.serverUrl | https://mcp.snapback.dev | MCP server URL |
.snapbackignore
Exclude files from protection (similar to .gitignore):
# Dependencies
node_modules/
.pnpm-store/
# Build outputs
dist/
.next/
build/
# Logs
*.log
logs/
# Large files
*.mp4
*.zip
Environment Variables
| Variable | Description |
|---|---|
SNAPBACK_STORAGE_PATH | Override snapshot storage location |
SNAPBACK_DEBUG | Enable debug logging (true/false) |
SNAPBACK_DISABLE_TELEMETRY | Disable anonymous telemetry |