open source · CLI + MCP server

Your AI's
black box recorder

One command captures your entire project state. Switch between Claude Code, Cursor, Copilot, Codex — the next AI picks up instantly. Now with native MCP integration.

MCP Server ↓
15AI tools
supported
3MCP
tools
30+frameworks
detected
~/my-saas-app
$ npx mindswap

⚡ Saving project state...

  Task: user auth (auto-detected)
  Branch: feat/user-auth
  Tests: ✓ 12 passed, 0 failed
  Quality: A (92/100)

✓ State saved

$ npx mindswap mcp-install

⚡ Installing MCP server
   Claude Code — configured
   Cursor — configured
   VS Code — configured

✓ 3 MCP tools active
$
Works with every AI coding tool

One file bridges every AI tool

mindswap maintains a universal handoff document. Any AI reads it instantly and knows exactly where you left off.

Session 1
Cursor
tokens exhausted
HANDOFF.md
mindswap
auto-captures everything
Session 2
Claude Code
picks up instantly

Every AI switch costs you 20 minutes

✕  Without mindswap
Re-explain your entire architecture
Describe what you were building
List which files you changed
Repeat decisions you already made
New AI suggests things you rejected
20+ minutes lost per switch
vs
✓  With mindswap
Just run mindswap — everything auto-captured
Task auto-detected from branch name
Dependency changes auto-logged as decisions
Conflicts detected if you contradict yourself
Branch-aware — each branch has its own state
0 minutes lost. Instant pickup.

Everything the next AI needs

mindswap captures eight types of context — mostly automatically.

Git state

Branch, diff summary, staged files, recent commits. Auto-captured on every save.

Tech stack

30+ frameworks, 15+ databases, monorepo tools, CI/CD, Docker, Kubernetes. Auto-detected on init.

Task progress

Auto-detected from branch name and commits. Or set manually with blockers and next steps.

Decisions & conflicts

WHY you chose something. Auto-warns if a new decision contradicts an old one.

Dependencies

New packages auto-logged as decisions. Removed deps tracked too. Compares against your decision log.

Build & test status

Run tests during checkpoint. Next AI knows "47 tests passing" or exactly what's broken.

What lives in .mindswap/

A single directory at your project root. HANDOFF.md and state.json are committed so your team benefits. History and branch states stay local.

.mindswap/
  ├── HANDOFF.md ← any AI reads this
  ├── state.json ← machine-readable state
  ├── decisions.log ← the WHY behind choices
  ├── config.json ← your preferences
  ├── branches/ ← per-branch state (auto)
  └── history/ ← checkpoint timeline

Three commands. Zero friction.

The entire flow. Everything else is automatic.

01

Init once

Auto-detects your stack, imports existing AI context files (CLAUDE.md, .cursorrules), installs git hooks for auto-tracking.

npx mindswap init
02

Save when switching

One command. Auto-detects task from branch name, captures git state, logs dependency changes, generates all context files.

npx mindswap
03

Done when complete

Archive the task, reset to idle. Your decisions and history stay. Start the next feature with a clean slate.

npx mindswap done

Not just a checkpoint tool

Smart features that make every AI handoff seamless.

auto

Branch-aware state

State auto-saves per git branch. Switch to feat/payments and it loads that branch's task, decisions, and checkpoint. Switch back, your main state is restored.

auto

Decision conflict detection

Log "NOT using Redis" then later "using Redis"? mindswap warns you. Also catches reversed choices ("chose X over Y" then "using Y") and package.json contradictions.

auto

Dependency tracking

Added Stripe to package.json? mindswap auto-logs "added Stripe (stripe@^14)". Removed Redis? Logged too. No manual decisions needed for dep changes.

auto

Safe merge — never overwrites

Already have a hand-written CLAUDE.md? mindswap appends its section inside markers. Your content is always preserved. Works for AGENTS.md and copilot-instructions too.

smart

One-command tool switch

mindswap switch cursor — saves state, generates Cursor-specific context, opens Cursor. Works for Claude, Copilot, Codex, Windsurf.

smart

Session summary & stats

Full session narrative: task, commits, decisions, conflicts, tool usage chart. Machine-readable JSON output for CI/CD integration.

10 commands. Most are optional.

The core flow is 3 commands. The rest are power-user tools.

mindswap init
Initialize. Auto-detects stack, imports existing AI context, installs git hooks.
mindswap switch <tool>
One-command tool switch. Save + generate + open. Tools: cursor, claude, copilot, codex, windsurf.
mindswap done
Mark task complete, archive to history, reset to idle. Ready for the next feature.
mindswap log <msg>
Log a decision. Warns if it conflicts with existing decisions. Tag with --tag for filtering.
mindswap status
Current state at a glance — task, branch, build/test, conflicts, --stats for charts.
mindswap summary
Full session narrative — task, commits, decisions, conflicts, tool usage. --json for scripts.
mindswap gen --all
Generate context for every AI tool. Safe merge — never overwrites your existing files.
mindswap watch
Background watcher (chokidar). Auto-updates HANDOFF.md as your project changes.
mindswap reset
Clear task and checkpoint. Decisions preserved by default. --full to clear everything.

One scan. Every format.

Native context files for every major AI coding tool. Safe merge — your content is never overwritten.

Universal
HANDOFF.md
full overwrite
Claude Code
CLAUDE.md
safe merge
Cursor
.cursor/rules
own file
Copilot
copilot-instructions
safe merge
Codex & others
AGENTS.md
safe merge

Up and running in 30 seconds

1
Install in your project
npm install mindswap --save-dev
2
Initialize (auto-detects everything)
npx mindswap init
3
Enable MCP for your AI tools
npx mindswap mcp-install
4
Code normally — save when switching
npx mindswap
5
Mark complete when feature is done
npx mindswap done "shipped"

AI tools query mindswap natively

Not just static files. AI tools call mindswap directly via Model Context Protocol. One call = full project briefing.

🔍

mindswap_get_context

"What do I need to know?" — Called at session start. Returns synthesized project state: task, decisions, conflicts, test status, recent work. One call replaces reading 5 files.

focus: all | task | decisions | recent
💾

mindswap_save_context

"Here's what I did." — Called at session end. AI saves its summary, decisions, next steps, blockers. The next session (in any tool) picks up seamlessly.

summary + decisions + next_steps
🔎

mindswap_search

"What did we decide about auth?" — Called mid-session. Natural language search across all decisions, history, and project state.

query: "database choice"

Two commands to set up everything — no global install needed:

npm install mindswap --save-dev npx mindswap mcp-install

Only 3 tools. Research shows AI accuracy drops from 82% to 73% past 20 tools.
We chose quality over quantity.

Secret scanning built in

Every context file is scanned for API keys, passwords, tokens, and connection strings before writing. Secrets are auto-redacted.

auto

25+ secret patterns

AWS keys, GitHub tokens, Stripe keys, OpenAI keys, database URLs, JWT secrets, private keys, bearer tokens — all detected and redacted before any file is written.

auto

PR integration

mindswap pr adds context summary to GitHub PRs. Task, decisions, test status — auto-injected with safe markers so reviewers get instant context.

auto

Monorepo support

Detects Turborepo, Nx, Lerna, npm/yarn/pnpm workspaces. Tracks state per package. Shows which packages have changes in HANDOFF.md.

smart

Context quality score

Grades your handoff context A–F (0–100). Tells you exactly what's missing: "no decisions logged", "checkpoint stale", "no test status". Improve as you go.

Stop re-explaining.
Start shipping.

Install mindswap in 10 seconds. Native MCP for Claude Code, Cursor, and VS Code.

View on GitHub →
MIT License · 2026Built with obsession