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
Features
Everything in Builders & lanes
Lanes
swairm conduct on --lanes 4, or the board's lane control; three by default. The daemon fills them in one start order: urgent work, a red base's fix, a ticket someone waits on, the focus, then the rest.
Its own worktree
Each builder works in .worktrees/<id> on the branch swarm/<id>. It is kept when a builder stops, so the next one resumes from it.
Fresh contexts
The daemon reads every agent's stream as it grows. At 150k tokens it sends WRAP UP: save a precise next step and end. At 1.4 times that it stops the agent. The next builder resumes from the ticket's log.
A lean start
Headless claude -p with Bash, Read, Edit and Write, no MCP servers, its role in the system prompt, auto memory and the git status snapshot off: about 8k tokens before its first step.
No early exits
A builder that tries to stop before its ticket lands is sent back to finish it.
Taken over when quiet
A builder not heard from for 20 minutes is replaced. A ticket four agents could not finish goes on hold, to split or rewrite.
Reviewers and coordinators on demand
A reviewer starts only when tickets wait for review, a coordinator shift only when messages or questions need judgement. Short, then gone.
Survives restarts
Every agent writes its stream to a log file, so it outlives a daemon restart and the next daemon adopts it. A start cut off by a restart is resumed at once.
Usage limits
An agent that dies within a minute pauses launching, doubling up to an hour: that is usually a usage limit.
Cost per ticket
Tokens and cost are recorded per agent and added up on its ticket. The board flags a ticket that runs past token_warn.
Commands
swairm start <id> · start --next | claim a ticket, create or resume its worktree, print a short card |
swairm save "note" | commit, take file locks, log the note, rebase onto the base |
swairm done ["summary"] | run every accept check, then land |
swairm review <id> accept|bounce "why" | a reviewer's packet and verdict |
swairm conduct on --lanes N · conduct off | start or pause the agents for this repository |
swairm status | one screen: what's building, open questions, the base's health |
Settings
lanes | builders at once (default 3) |
max_context | an agent is told to wrap up at this context size (default 150000) |
stop_context | an agent told to wrap up is stopped here (default 1.4 x max_context) |
max_tries | agents that end without landing before a ticket goes on hold (default 4) |
stop_blocks | how often a builder that stops early is sent back (default 2) |
stale_minutes | a builder not heard from this long can be taken over (default 20) |
pause_minutes | launching pauses this long after an agent fails at once (default 5) |
agent_models | a model per role; a ticket's own model wins |
agent_tools | the tools an agent loads (default Bash, Read, Edit, Write) |
agent_mcp | true: agents keep their MCP servers |
Set one with swairm config key=value, in swairm.json, or in the board's Settings. All about settings.
Why it works this way
The decisions behind it
Each one is a short record on GitHub: the context, the decision, and the options that were turned down.
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
