swairm
Run

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
127.0.0.1:8770
The Jobs menu: every job with how long it has run, its CPU and memory, who holds the heavy slots, and Log, Restart and Stop

Features

Everything in Jobs & heavy slots

01

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.

02

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.

03

Shared fairly

A free slot goes to the waiting repository that holds the fewest, and a red base's fix goes first.

04

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.

05

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.

06

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.

07

Heavy checks

heavy_checks words make an accept check heavy, so it waits for a slot too.

08

A quiet machine

run --quiet runs a perf test only when the machine is quiet.

09

Described in markdown

run --desc "..." gives a job a description, shown under it on the board with its links clickable.

10

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

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:Nblock until the job ends
swairm run --now Nthe owner's: start a waiting job now, without a slot
swairm run --stop Nstop a job
swairm jobs [--all]what runs, for how long, and who holds the slots

Settings

heavy_slotsmachine: heavy jobs that run at once (default 3)
heavy_checkswords that make a check heavy, so it waits for a heavy slot
heavy_alonewords: jobs whose command has the same one run one at a time
envvariables 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.

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 /