Getting started
Install Switchman, run the demo, then use the newer guided flow with switchman quickcheck and switchman start to get coordinated AI work running quickly.
node:sqlite module — no external database needed.1. Install
Install Switchman globally via npm:
terminalnpm install -g switchman-dev
Confirm it's installed:
switchman --version
2. Run the demo
Before setting up a real repo, run the demo to see conflict prevention in action:
switchman demo
This creates a throwaway repo and shows:
- agent1 claiming
src/auth.js - agent2 being blocked from the same file
- agent2 rerouting safely to
docs/auth-flow.md - both branches landing cleanly through the queue
3. Check your repo and get the next command
From inside any git repo, start with:
cd my-project
switchman quickcheck
quickcheck gives you one readiness summary and one exact next command. On a healthy repo that is usually:
switchman start "Add authentication middleware"
4. Start the guided flow
Use start when you want the shortest path:
switchman start "Add authentication middleware"
This creates or refreshes:
- A shared coordination database at
.switchman/ - Linked agent workspaces for the run
- Repo-local MCP config for Claude Code and Cursor
- A repo-aware
CLAUDE.mdwhen one does not already exist
switchman verify-setup. If you want to regenerate the repo guide, run switchman claude refresh.5. Open your agents
Open one Claude Code, Cursor, or Windsurf window per generated workspace.
Each agent window uses Switchman through MCP to pick work, claim files, and stay out of each other’s way.
6. Watch it run
Keep the status dashboard open while agents work:
switchman status --watch
After the first session, run:
switchman session-summary
This gives you a compact summary of what Switchman coordinated.
7. Land the work
When tasks are done, run the CI gate and then the merge queue:
switchman gate ci
switchman queue run
gate ci checks for conflicts, unclaimed changes, stale work, and policy issues. If it passes, queue run lands finished work safely.
Manual path
If you want full control instead of the guided flow, use the older explicit setup:
switchman setup --agents 5
switchman task add "Add authentication middleware" --priority 9
switchman verify-setup
What's next
- Claude Code setup guide — editor-specific wiring and CLAUDE.md
- Cursor setup guide — MCP configuration for Cursor
- Windsurf setup guide — one-time MCP installation for Windsurf
- How file locking works — understand claims, leases, and conflict prevention
- Command reference — full list of all commands