# Mindswap

Mindswap keeps tasks, decisions and blockers in local files so a fresh session or another AI client can resume work without a full re-brief.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 7 repo stars
- Author: ShipOrBleed
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ShipOrBleed/mindswap
- Updated: 2026-05-03
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/mindswap

## What it does

Mindswap writes project context to a `.mindswap/` directory next to your code: `HANDOFF.md`, `state.json`, `decisions.log`, `memory.json`, `config.json`, plus `branches/` and `history/`. Running `npx mindswap save` records the active task, git state and decisions. `resume` prints a short briefing for the next session, and `ask` searches what was stored and returns citations.

Memory comes in two scopes. Repo memory sits in `.mindswap/`, personal memory in `~/.mindswap/`; `--global` and `--scope all` extend writes and lookups across both, so a preference can follow you between projects. Search runs on a local SQLite index that `reindex` rebuilds, and `sync` moves continuity state between machines.

Clients connect through `npx -y mindswap`, and `npx mindswap mcp-install` writes the entry into supported editors. Install the package itself as a dev dependency with npm. The repo has to be initialised first: without `npx mindswap init` there is no place for `save` to write, so setup and import of existing AI context come before anything else.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mindswap -- npx -y mindswap
```

### Codex

**Platform CLI**
```bash
codex mcp add mindswap -- npx -y mindswap
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mindswap": {
            "command": "npx",
            "args": [
                "-y",
                "mindswap"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mindswap": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "mindswap"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mindswap npx -y mindswap
```

## When to use it
- rebuild the thread of a task after a session reset
- log a decision and the reason behind it
- search stored memory for why JWT was picked
- hand off work from one AI client to another
- carry personal preferences across projects

## Example prompts
- Run `npx mindswap init` and import the existing context from this repo.
- Record the current task and git state with `npx mindswap save`.
- Ask project memory: `npx mindswap ask "Why did we choose JWT?"`

## Similar
- [memoir](https://affpapa.org/en/nevibecode/mcp/memoir.md) — MCP server · ★ 15 repo stars
- [vibe-handoff](https://affpapa.org/en/nevibecode/skills/vibe-handoff.md) — skill · ★ 3272 repo stars
- [origin](https://affpapa.org/en/nevibecode/plugins/qi-xuan-lu-origin.md) — plugin · ★ 3795 repo stars
- [how-it-works](https://affpapa.org/en/nevibecode/skills/how-it-works.md) — skill · 5700 installs
- [context-sync](https://affpapa.org/en/nevibecode/mcp/context-sync.md) — MCP server · ★ 190 repo stars
- [Cairn.ink Memory](https://affpapa.org/en/nevibecode/mcp/cairnink-memory.md) — MCP server · ★ 56 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
