SnapBack

Automatic Protection

🧢 SnapBack now uses the AutoDecisionEngine for automatic, intelligent protection.
No manual configuration required—SnapBack figures out what to protect and when.

Zero-Config Protection

SnapBack’s AutoDecisionEngine automatically detects when to create snapshots based on:

  • AI Activity Detection — Recognizes changes from Cursor, Copilot, Claude Code, and Windsurf
  • Risk Scoring — Evaluates file criticality and change scope
  • Burst Detection — Identifies rapid multi-file changes typical of AI refactoring
  • Pattern Learning — Gets smarter over time by learning from your workflow
🟢

Protected

AutoDecisionEngine is actively monitoring your code and creating snapshots when needed.

Works automatically for all your important files
🔵

Monitoring

SnapBack is watching for AI activity and risky changes, ready to snapshot instantly.

Background protection with zero workflow interruption

How AutoDecisionEngine Works

The AutoDecisionEngine evaluates every file save and makes intelligent decisions:

  1. Should we snapshot? Based on aggregated risk signals
  2. How urgent is it? Confidence scoring from AI detection accuracy
  3. What triggered it? Attribution for learning and improvement

Automatic Snapshot Triggers

  • AI tool detected making substantial changes
  • Critical files modified (auth, config, database)
  • Multiple files changed rapidly (AI refactoring pattern)
  • High-risk change patterns detected
  • Significant time since last save point

What Gets Protected

✅ Protected by Default

  • • All source code (.js, .ts, .py, etc.)
  • • Configuration files (.json, .yaml, .toml)
  • • Environment files (.env*)
  • • Documentation (.md, .mdx)
  • • Build configs (package.json, tsconfig.json)

❌ Not Protected

  • .git/ directory
  • node_modules/ and dependency folders
  • • Build outputs (dist/, .next/)
  • • Binary files and logs

Customizing Protection (Optional)

While AutoDecisionEngine handles most cases automatically, you can customize with .snapbackrc:

// .snapbackrc
{
  "include": ["src/**/*", "config/**/*"],
  "exclude": ["*.test.ts", "*.spec.ts"],
  "alwaysProtect": ["src/auth/**/*", ".env*"],
  "neverProtect": ["*.generated.ts"]
}

💡 Recommended: Let AutoDecisionEngine learn your patterns for 30 days before adding custom rules. It’s usually smarter than manual configuration.

The Learning Loop

SnapBack gets smarter the longer you use it:

🌱 Day 1: Common Patterns

Catches hardcoded secrets, phantom dependencies, test code in production, risky refactoring patterns.

🌳 Day 30: Your Patterns

Learns YOUR codebase: which auth modules Cursor breaks, which refactor patterns cause issues, which folders have phantom dependency problems.

🌲 Month 3: Proactive Protection

Catches issues before you notice: folder-specific risks, pattern-specific risks, tool-specific risks.

Status Indicators

IconStateMeaning
🟢ProtectedAutoDecisionEngine active
🟡MonitoringWatching for AI activity
🔴PausedProtection temporarily disabled

✅ Zero Configuration Required: SnapBack protects your code automatically from day one. Just install and start coding—we’ve got your back.

Privacy First: SnapBack works 100% offline on the Free plan. MCP is optional and requires explicit consent on paid plans. Learn more →