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
Features
Everything in Jobs & heavy slots
Detached jobs
swairm run -- <cmd> starts the command with its output in a log. swairm wait job:<name> blocks until it ends, with no tokens spent.
Heavy slots
--heavy takes one of the machine's heavy slots, three by default, whatever the load. Slots are file locks, so a dead job frees its slot.
Shared fairly
A free slot goes to the waiting repository that holds the fewest, and a red base's fix goes first.
Queued, not blocked
A heavy run that must wait returns at once with QUEUED job:N and its place in line. The job starts by itself, and the builder can see what it waits for.
Run now
The owner can start a waiting job at once without a slot: Run now on the board, or swairm run --now <name>. Agents can't.
One at a time
heavy_alone words name commands that work on data outside their worktree. Jobs with the same word run one at a time; servers are left out.
Heavy checks
heavy_checks words make an accept check heavy, so it waits for a slot too.
A quiet machine
run --quiet runs a perf test only when the machine is quiet.
Described in markdown
run --desc "..." gives a job a description, shown under it on the board with its links clickable.
See them all
swairm jobs (or --all for every repository) and the board's Jobs menu (key j): how long each has run, its CPU and memory, who holds the slots, with Log, Restart and Stop.
In the terminal
$ swairm run --heavy --name e2e -- make e2e QUEUED job:e2e for a heavy slot: place 2 in line. It starts by itself; do not run it again. Wait: swairm wait job:e2e # the builder carries on; the job starts when a slot frees $ swairm wait job:e2e DONE job:e2e exit 0 in 212.4s
Commands
swairm run [--heavy] -- <cmd> | run a command detached, its output in a log |
swairm run --name N --desc "markdown" | name a job and describe it |
swairm wait job:N | block until the job ends |
swairm run --now N | the owner's: start a waiting job now, without a slot |
swairm run --stop N | stop a job |
swairm jobs [--all] | what runs, for how long, and who holds the slots |
Settings
heavy_slots | machine: heavy jobs that run at once (default 3) |
heavy_checks | words that make a check heavy, so it waits for a heavy slot |
heavy_alone | words: jobs whose command has the same one run one at a time |
env | variables for every check, the gate and every job; checks get no others |
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
