switchman-dev
v0.1.29
Published
Coordinate parallel AI coding agents — file locking, task queues, and merge confidence reviews for Claude Code, Cursor, Codex, Windsurf, and Aider. Run multiple agents on the same repo without conflicts.
Maintainers
Readme
Switchman
You ran the agents. Did they build the right thing?
Is this for you?
✓ You run Claude Code, Cursor, or Codex in parallel worktrees
✓ You want to know agents built compatible code before merging
✓ You've had a "compiled fine, broke in prod" moment from parallel agents
If that's you, read on. If you're running a single agent on a single branch, you don't need this yet.
What it does
switchman start "your goal"
# agents run in parallel
switchman reviewswitchman review reads every worktree, turns a parallel session into a plain-English summary, flags semantic overlap and interface mismatches, and gives an honest merge confidence outcome: green, amber, red, or uncertain. When it cannot make a trustworthy call, it says uncertain instead of pretending everything is fine.
Built for developers using Claude Code, Cursor, Windsurf, Aider, and other CLI-first coding agents on real repos.
Questions or feedback? Discord · [email protected]
Install
Requirements: Node.js 22.5+ · Git 2.5+
npm install -g switchman-devHomebrew:
brew install switchman-dev/tap/switchman-devSwitchman uses the built-in
node:sqliteruntime — no extra database to install or manage.
Try it in 2 minutes
switchman demoCreates a throwaway repo and shows:
- agent1 claiming
src/auth.js - agent2 getting blocked from the same file and rerouting safely
- both branches landing cleanly through the queue
- a final
switchman reviewsession summary
Then inspect it:
cd /tmp/switchman-demo-...
switchman status
switchman reviewQuickstart
cd my-project
switchman quickcheck # readiness check — prints one exact next command
switchman start "your goal" # plans the work, creates workspaces, wires MCP
switchman status --watch # live view while agents run
switchman review # what was built, what doesn't fit, safe to ship?When the review looks good:
switchman gate ci
switchman queue runWhat switchman start sets up:
- repo context-aware task planning
- linked agent workspaces, one per agent
- shared Switchman database in
.switchman/ - repo-aware
CLAUDE.mdwhen one does not exist - automatic MCP coordination wiring where supported
If you want full manual control instead:
switchman setup --agents 3
switchman task add "Implement auth helper" --priority 9Editor setup guides:
The problem in detail
Three agents finish. You have three worktrees full of diffs and no coherent picture of what was built.
Git tells you what changed. It does not tell you whether parallel agent work is coherent.
The three things developers consistently hit:
- Review tax — 20 minutes manually reading diffs after every parallel session to piece together what actually happened
- Agentic drift — two agents independently solve the same problem in incompatible ways. No conflict. No CI failure. Just divergence that compiles, passes, and breaks later.
- No trustworthy answer — "is this safe to merge?" has been yours to answer alone until
switchman review
Git branches and worktrees solve isolation. They do not solve coordination, ownership, visibility, or the question of whether a session produced something coherent. That is what Switchman adds.
How it works
1. Start with one goal
switchman start "Add user authentication" reads the repo, creates agent workspaces, and keeps work aligned as agents run. File claims, task ownership, and stale recovery happen automatically through MCP — you do not need to prompt agents to coordinate manually.
2. Review what was built
switchman review produces three things:
- A plain-English narrative of what each agent built — not a file list, a description
- Semantic flags — places where agents produced contradictory interfaces, duplicate implementations, or overlapping solutions
- A merge confidence outcome:
green,amber,red, oruncertain
3. Ship through gates
When the review looks good, switchman gate ci and switchman queue run land finished work cleanly onto main.
Open source
Switchman is now one open source product. No login is required for the local workflow, and the core operator commands stay available out of the box.
switchman start "goal" → agents run → switchman reviewWhat you get:
switchman start— reads the repo, creates workspaces, writes MCP config, generatesCLAUDE.mdswitchman review— full session summary, semantic overlap detection, interface mismatch flagging, merge confidence outcomeswitchman status --watch— live dashboard during a sessionswitchman scan— lightweight pre-merge conflict checkswitchman demo— proves the flow in a throwaway repo- 90-day searchable session history —
switchman review --history,switchman review --history --search auth - Cross-session pattern detection —
switchman insights - Shared review publishing —
switchman review --shareto publish,switchman review --teamto read teammate reviews before the PR - AI task planning —
switchman plan "Add authentication" --apply,switchman plan --issue 47 - Cost and token tracking —
switchman usage,switchman usage --days 30
Troubleshooting
switchman status # main dashboard
switchman status --watch # live view
switchman scan # conflict scan across worktrees
switchman gate ci # repo gate check
switchman verify-setup # check MCP wiringExplain commands for when something is blocked:
switchman explain claim src/auth/login.js
switchman explain queue <item-id>More help:
PR gate
Block risky changes in GitHub the same way your local terminal does:
switchman gate install-ciInstalls .github/workflows/switchman-gate.yml — runs the repo gate on every push and PR.
What's next
- Zero-argument
switchman plan— reads full repo context automatically - Broader install and release distribution
Feedback
Building this in public. If you hit something broken or missing, I'd love to hear about it.
License
MIT
