A swarm of Claude Code agents builds your codebase.
Run many agents on one repository at once, without collisions. Coordination costs no tokens, every agent is kept to its ticket and a context budget, and you can talk to any of them while it works. One Go binary, one local board.
curl -LO https://github.com/CodingNinja/swairm/releases/latest/download/swairm-macos.pkg && sudo installer -pkg swairm-macos.pkg -target /
go install github.com/CodingNinja/swairm/cmd/swairm@latest && swairm install
The installer puts swairm in /usr/local/bin, writes the Claude Code skill and starts a background daemon. The package isn't signed yet; downloading it with curl avoids the Gatekeeper prompt. Linux and Windows archives are on every release.
- Manybuilders in parallel, each in its own git worktree
- 0tokens spent on coordination, waiting or watching
- 150kcontext cap per agent; a fresh one carries on
- Livemessages reach an agent after its next tool call
Features
Everything a swarm needs, nothing it doesn't.
Eleven parts, each a page of its own. Pick one, or use the arrows.
Say what you want. Get small tickets that prove themselves.
Ask your Claude Code session to plan the work. It writes small tickets: what to build, the files each one owns, and the checks that prove it is done. Building starts the moment they are imported.
- Plan in plain words: “plan this into swairm tickets”
- Every ticket names its scope, its deps and its accept checks
- Search every ticket, in any state, before writing a new one
- Group by feature, label, type, area and milestone
Every lane full, and no manager agent.
Pick the number of lanes. A plain loop in the daemon, with no model, starts a fresh builder for every ready ticket, each in its own git worktree and branch, and keeps every lane busy until the work is done.
- Builders in parallel, each in its own worktree and branch
- A zero-token loop fills the lanes: no lead-dev or PM agents
- Told to wrap up at 150k context; a fresh agent carries on
- Four tools and no MCP servers: about 8k tokens to start
Nothing lands until its checks pass.
Two builders never edit the same file, every check runs against the exact commit it tested, and landing is the only step that moves your base branch, one ticket at a time.
- One building ticket per file: scopes and locks
- Accept checks run in a clean environment, on the exact commit
- Rebased first, then squashed, rebased or merged: your choice
- A conflict names the tickets that changed your files
$ swairm save "parser reads the header row" BUSY src/tide/units.go is owned by m1-02 (it has been told). # undo that change, or ask m1-02 for it $ swairm done RUNNING checks for m1-03 (job:check-m1-03). Wait: swairm wait job:check-m1-03, then swairm done again. $ swairm wait job:check-m1-03 DONE job:check-m1-03 exit 0 in 41.2s $ swairm done LANDED m1-03 a41c9e2
Long commands in the background. Heavy ones take turns.
Builds and test suites run as detached jobs with their output in a log, so they outlive the agent's tool call. A few machine-wide heavy slots, shared fairly across every repository, keep ten builds from running at once.
- Detached jobs with logs, CPU and memory
- Three heavy slots per machine, shared fairly
- A queued run returns at once: QUEUED job:N
- Run now, Restart, Stop and Log from the board
Waiting costs nothing, and the holdup gets help.
Agents never sleep in a loop. swairm wait blocks inside the binary until something happens, and when a builder waits on another ticket, swairm moves that ticket to the front.
- One blocking call, up to 9 minutes: no sleep loops
- Deadlocks found and reported, once per ring
- A waiting builder lends its lane to the ticket it waits on
- The holdup is told to land what it has, and file the rest
$ swairm wait landed:m1-02 # every lane is busy: m1-03 lends its lane, and m1-02 starts beside the full lanes # two minutes on, m1-02's builder gets one HURRY: land what you have $ swairm ticket new --follow-up --title "Cache parsed tables" --brief "..." FOCUS + id:m1-09 (follow-up of m1-02, which m1-03 waits on) LANDED m1-02 7d0b3f1
Steer any agent while it works. Answer from anywhere.
Message a running agent and it reads it after its next tool call. Agents ask you only what only you can decide, and you answer from the notification, the board or the terminal.
- Messages reach an agent after its next tool call
- Questions go to the conductor first; only yours reach you
- Answer from the notification: reply, Yes, No or the default
- Pick what you hear: Quiet, Standard or Verbose
Keep the base green without slowing anyone down.
Per-ticket checks stay narrow and fast. The gate runs your full test suite on the base in the background, when you choose, and files a fix ticket the moment it turns red.
- Four modes: schedule, idle, every N landings, manual
- Runs only when tickets have landed since its last run
- A red base files a priority-1 fix ticket, naming the suspects
- Reruns only the failed tests, with gate_rerun
$ swairm gate STARTED gate RED base 9c2e41a fails the gate since m2-04. Fix ticket fix-3 is filed: keep building. # fix-3 starts first; with gate_rerun it reruns only the tests that failed LANDED fix-3 4be0d17 GREEN 4be0d17 gate passed in 312s
Stuck work is noticed without a model.
A builder blocked in a job or a wait looks alive. Every 30 seconds the daemon checks three plain rules, and only for a ticket that trips one does a short investigator agent take a look.
- Three plain rules, checked every 30 seconds
- A short investigator: one tool, a small model
- It may stop a hung or duplicate job, or message the builder
- You hear only what it could not fix
$ swairm status SUSPECT m2-07 a job has run 34m: job:e2e # an investigator looks: one tool, a small model # it stops a hung or duplicate job, or tells the builder # and ends with fixed: or not fixed: (you hear about the latter)
Decide what gets built first.
Point the swarm at a feature, a label or any filter and its tickets start first, while other work fills free lanes. Or mark one ticket urgent and push it through.
- Focus on a feature, label, area, type or milestone
- What the focus waits on starts first too
- Urgent tickets fill every lane until they land
- One start order ranks it all, shown on the board
One live board for every repository on your machine.
A local web page that updates live and costs no tokens to look at. Follow any agent's transcript, open any ticket, see every job, and answer the agents' questions.
- Build: every live agent, its step, context, tokens, CPU and memory
- Board, Features, Map, Timeline, Insights and Jobs
- Follow any agent's transcript live, and message it
- Every ticket's history: what happened, when, and who did it
Every limit is a setting.
Defaults that work, and every number the daemon acts on is yours to change: from the terminal, in swairm.json, or in one window on the board.
- swairm config lists every value and where it comes from
- The board's cog edits them all in one window
- swairm.json is committed with your repository
- Machine settings are shared by every repository
Why swairm
Agent swarms spend their tokens managing themselves. This one doesn't.
Coordination lives in the binary, where it costs nothing. Agents spend their tokens on your code.
Long role prompts, read again and again
Four cards of about 2 KB, already in each agent's prompt
sleep loops, and a polling turn every few minutes
One swairm wait that blocks in the binary: one turn per wait
Manager agents checking every worker's tickets
Accept commands prove a ticket; a reviewer only where none can
Every agent loading tens of thousands of tokens of tools before its first step
About 8k: four tools, no MCP servers, role in the system prompt
How it works
You talk to one Claude session. The daemon runs the swarm.
You never drive the agents yourself. The daemon keeps the work moving and asks you only what only you can answer.
- 1
Ask for a plan
Tell Claude “plan this”. It follows the planner card, writes small tickets and imports them.
- 2
Tickets own files
Each ticket names its scope, its deps, and accept checks: commands that prove it's done.
- 3
Builders in parallel
A fresh builder for every ready ticket, each in its own worktree, holding file locks, wrapping up at 150k tokens.
- 4
Land only when green
swairm doneruns the checks, then rebases and fast-forwards the base. The gate keeps the base green.
The board
Watch every agent. It costs nothing to look.
A local page at 127.0.0.1:8770 for every repository on the machine, live, in light and dark. Every agent's transcript, every ticket's history, every job. Click any screenshot to enlarge it.












Screenshots of the real board with invented projects.
In the box
Every feature, by area.
Open an area for all its features, its commands, its settings and the decisions behind it.
Plan & tickets
Say what you want. Get small tickets that prove themselves.
- Plan from a sentence
- Scope: the files a ticket owns
- Accept checks that run
- Deps
- Features, labels and types
Builders & lanes
Every lane full, and no manager agent.
- Lanes
- Its own worktree
- Fresh contexts
- A lean start
- No early exits
Files & landing
Nothing lands until its checks pass.
- File ownership
- Locks follow the branch
- Files give way
- Checks you can trust
- Narrow checks
Jobs & heavy slots
Long commands in the background. Heavy ones take turns.
- Detached jobs
- Heavy slots
- Shared fairly
- Queued, not blocked
- Run now
Waiting & hurry
Waiting costs nothing, and the holdup gets help.
- Wait in the binary
- Long enough, never too long
- Deadlocks
- Awaited work first
- Lane lending
Questions & notifications
Steer any agent while it works. Answer from anywhere.
- Messages
- Questions that don't block
- Whoever can answer
- Answer from the notification
- One thread per ticket
The gate
Keep the base green without slowing anyone down.
- schedule (default)
- idle
- every
- manual
- Its own worktree
Stuck work
Stuck work is noticed without a model.
- Jobs that run too long
- Waits that never end
- Silence
- The investigator
- You hear what's left
Focus & urgent
Decide what gets built first.
- Focus
- From the board
- Urgent
- One start order
- Hold and reprioritise
The board
One live board for every repository on your machine.
- Build
- Board
- Agent transcripts
- Ticket dates
- A card's timeline
Settings
Every limit is a setting.
- swairm config
- help config
- One window
- Per repository
- Per machine
A ticket
Plain JSON. It says what proves it's done.
Tickets live in .git/swarm/, shared by every worktree and never committed. Accept lines with :: run a command, and the ticket lands with no reviewer. Lines without one go to a reviewer.
{
"id": "m1-03", "title": "Parse the tide table",
"milestone": "M1", "priority": 2,
"epic": "tide-app", "type": "feature", "labels": ["backend"],
"deps": ["m1-01"],
"scope": ["src/tide/**", "tests/tide/**"],
"read": ["docs/tides.md#format"],
"brief": "Input: ... Output: ... Example: ...",
"accept": [
"parses the sample table :: go test ./src/tide/...",
"the README documents the format"
],
"model": "sonnet"
}
Commands
Short commands, one-line answers.
The agents run these. Your own session mostly needs status and board. Every answer starts with a keyword and names the next command, and swairm help fits on one screen.
The builder loop
start <id>·start --next- Claim a ticket, create or resume its worktree, print a short card.
save "note"- Commit, take file locks, log the note, rebase onto the base.
done- Run every accept check, then land.
review <id> accept|bounce- The reviewer's packet and verdict.
Talking
msg <to> "text"- A message to a ticket, a role, all or human.
ask <to> "q" --default "x"- A question; with a default it never blocks.
answer <n> "text"·inbox- Answer a question, or read your messages.
Waiting and long commands
wait landed:ID|job:N|free:PATH|…- Block, using no tokens, until something happens.
run --heavy -- make test- A detached job; heavy ones share a few slots and queue at once.
jobs·run --now N- What runs and who holds the slots; start a waiting job now.
Steering
status·board --open- One screen in the terminal, or the web board.
conduct on --lanes N·off- Start or pause the agents for this repository.
focus epic:<e>·ticket set <id> urgent=true- Build some work first, or push one ticket through.
gate·config- Run the full suite now; every setting and its value.
Requirements
A Mac, git and Claude Code.
- macOS first. On Linux the daemon runs as a detached process. Windows compiles but is untested.
- The Claude Code CLI,
claude, on your PATH, and git. - Optional: Herald, so the swarm's events and your questions arrive as notifications you answer from.
- Optional: Xcode command line tools, for one-line task summaries from Apple's on-device model.
- Building from source needs Go and nothing else: swairm uses only the standard library.
Write the tickets. Let the swarm build them.
Install once. Every repository on your machine gets a swarm and a board.
curl -LO https://github.com/CodingNinja/swairm/releases/latest/download/swairm-macos.pkg && sudo installer -pkg swairm-macos.pkg -target /
go install github.com/CodingNinja/swairm/cmd/swairm@latest && swairm install
