SnapBack

Configuration

Zero config required.

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

LevelBehaviorBest For
🟒 WatchSilent auto-snapshotsSource code, docs
🟑 WarnProceed with risk boostConfig files, dependencies
πŸ”΄ BlockHard stop, no writeSecrets, .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

SettingDefaultDescription
snapshot.sensitivity"medium"Detection sensitivity: "low" / "medium" / "high"
aiDetection.confidenceThreshold6Minimum confidence to trigger (0-10 scale)
snapshot.aiDetectionEnabledtrueEnable AI-triggered snapshots

Higher sensitivity = more snapshots during AI activity.

Lower sensitivity = fewer snapshots, only on confident detection.

Storage

SettingDefaultDescription
settings.snapshotLocation.snapback/Where snapshots are stored
settings.maxStorageSize500Maximum storage in MB
settings.maxSnapshots100Maximum 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

SettingDefaultDescription
mcp.enabledtrueEnable MCP integration
mcp.serverUrlhttps://mcp.snapback.devMCP server endpoint
mcp.timeout5000Request 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”:

SettingDefaultDescription
snapback.protectionLevels.defaultLevel"watch"Default protection for new files
snapback.snapshot.aiDetectionEnabledtrueAI-triggered snapshots
snapback.mcp.enabledtrueMCP integration
snapback.mcp.serverUrlhttps://mcp.snapback.devMCP 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

VariableDescription
SNAPBACK_STORAGE_PATHOverride snapshot storage location
SNAPBACK_DEBUGEnable debug logging (true/false)
SNAPBACK_DISABLE_TELEMETRYDisable anonymous telemetry

Advanced Configuration

Next Steps