Integration

mrq + Cursor

Automatic snapshots for Cursor's AI coding. Never lose work when the agent makes unexpected changes.

Why Cursor Needs Backup Protection

Cursor's Composer and Agent modes can modify your entire codebase in seconds. This speed is what makes Cursor powerful, but it also means mistakes happen fast.

Common scenarios:

  • Agent deletes files it thinks are unused
  • Composer refactors code in unexpected ways
  • Multi-file changes that break interdependencies
  • Confident edits that introduce subtle bugs

Cursor's built-in undo works for simple cases, but fails when changes span multiple files or when you've closed tabs.

How mrq Works with Cursor

mrq runs alongside Cursor and captures snapshots automatically. It monitors your file system directly, so it catches every change regardless of which Cursor feature made it.

npm install -g mrq-cli@latest
mrq login
mrq watch --daemon

The daemon runs in the background. Use Cursor normally. Every meaningful change is captured.

Recovery Flow

When something goes wrong:

$ mrq history

Recent Snapshots
────────────────────────────────────────────────────
  10:45:23  abc123  Composer: Refactored auth module
                    +189 lines, -234 lines across 12 files

  10:42:15  def456  Added form validation
                    +45 lines, -8 lines across 2 files

  10:38:02  ghi789  Initial component setup
                    +123 lines across 4 files
────────────────────────────────────────────────────

$ mrq restore def456
✓ Restored to snapshot def456
✓ Current state backed up as jkl012

Your files are restored instantly. The current state is automatically backed up before restore, so you can always recover it if needed.

Best Practices

Start mrq Before Your Session

Run mrq watch before you start working with Cursor. This ensures your initial state is captured.

Use Daemon Mode

mrq watch --daemon runs in the background so you don't need a dedicated terminal window.

Check History Before Large Prompts

Before asking Cursor to make sweeping changes, run mrq history to confirm you have a recent snapshot to fall back on.

Works with All Cursor Features

  • Composer: Multi-file edits captured automatically
  • Agent Mode: Autonomous changes tracked
  • Inline Edits: Tab completions and quick fixes included
  • Chat: Code suggestions applied via chat are captured

Related Resources

Get Started

npm install -g mrq-cli@latest
mrq login
mrq watch

Code fearlessly with Cursor

Automatic snapshots. Instant recovery. Try ambitious prompts without risk.

Get Started Free →