mindswapAI context
cli surface · repo workflow

Set up a repo.
Save the state.
Resume later.

This page shows the day-to-day flow: initialize a repo, save the current work when you stop, and use the rest of the commands only when you need them.

Review MCP server
1
default command that saves the current state
1
command for setup before the first save
1
command for a quick health check before handoff
what a repo session looks like
$ npx mindswap init
stack detected, hooks installed

$ npx mindswap
task, dependencies, and context captured

$ npx mindswap resume
next best move prepared

$ npx mindswap doctor
continuity gaps checked

$
Workflow

The three steps most people actually need.

Keep the path obvious: set it up once, save when switching, and finish with a clean handoff.

01

Initialize once

Detect the stack, import existing context files, and install the hooks that keep everything in sync.

02

Save when switching

Capture task, branch, git state, dependency drift, and the latest decisions before you move to another AI tool.

03

Resume with confidence

Use the handoff and resume flow to pick up the same task with the next tool or the next session.

Why it helps

What a beginner should understand first.

The point is not more commands. The point is that the next AI does not need the user to re-explain the repo.

plain english

Save the current state

`mindswap` captures task, branch, changes, and context when you switch away.

plain english

Resume without repeating yourself

`resume` gives the next best action, so you can continue from the same point later.

plain english

Check if the repo is healthy

`doctor` shows whether the project is initialized, current, and ready for the next session.

Commands

Core commands and the newest surfaces.

These are the commands the UI should keep surfaced as the CLI evolves.

mindswap

The default save flow. Auto-detects the task, dependencies, and current state, then generates all handoff files.

default

mindswap init

Initialize a project. Detect the stack, import any existing AI context, and set up hooks.

setup

mindswap checkpoint

Power-user checkpoint with task, blocker, and next-step flags for explicit state capture.

power tool

mindswap log

Log decisions and memory items. Conflicts are surfaced when the new note contradicts prior history.

memory

mindswap memory

Manage structured items directly: list, add, update, resolve, archive, or delete blockers and questions.

structured memory

mindswap status

Read the current task, branch, build/test state, and conflict status at a glance.

state

mindswap doctor

Diagnose setup, stale context, hook health, and continuity gaps with actionable output.

diagnostics

mindswap generate

Generate context files for one or more AI tools without overwriting the user's own content.

gen

mindswap done

Mark the work complete, archive the task, and reset the repo to idle.

handoff close

mindswap reset

Clear the current task and checkpoint. Decisions are preserved unless you use full reset.

cleanup

mindswap watch

Keep HANDOFF.md fresh as the repo changes, or run a full save loop with `--save` and `--all`.

auto-sync

mindswap switch

Save, generate, and open another AI tool in one step.

tool switch

mindswap summary

Produce the session narrative with commits, decisions, conflicts, and useful stats.

session narrative

mindswap ask

Ask a question and get cited answers from the repo's memory and history.

semantic query

mindswap contracts

Emit machine-readable workstream contracts so another agent can continue without re-reading everything.

handoff contracts

mindswap sync

Push or pull shared hub state, inspect sync health, and resolve conflicts across machines.

shared continuity

mindswap registry

Validate and regenerate MCP Registry metadata so the package and manifest stay aligned.

registry metadata

mindswap mcp-http

Run a remote Streamable HTTP MCP endpoint for hosted and browser-based clients.

remote transport
Features

What the CLI should keep explaining clearly.

These are the product-level details people usually miss when the UI is too dense.

state

Branch-aware memory

Every branch can keep its own task, decisions, and checkpoint so context switches are reversible and intentional.

memory

Structured notes

Blockers, questions, assumptions, and resolutions stay separate from plain decisions so the handoff stays readable.

quality

Doctor mode

Surface stale files, missing hooks, and weak continuity before a user discovers the problem during the next session.

search

Semantic ask

Use cited matches from project memory and history instead of forcing the user to remember exact words.

sync

Shared continuity

Move state between machines with explicit conflict handling so the team can share a single source of truth.

registry

Registry awareness

Keep the MCP Registry manifest and the package metadata in sync.