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
Features
Everything in Files & landing
File ownership
A live ticket owns a file by its scope or by a lock taken at save. Six or more changed files in one directory lock the directory. Lockfiles and generated files (shared) are never locked.
Locks follow the branch
Undo a change and the file is free again.
Files give way
A building ticket's scope and locks don't stop one of its deps, or a ticket its builder waits on, from starting and editing those files.
Checks you can trust
Each accept command runs in a cut-down environment (PATH, HOME and your env), and its result is kept against the commit, so done reruns only what changed.
Narrow checks
A check tests only its ticket's own changes. One that runs your whole suite is refused: that is the gate's job.
The same failure twice
STUCK goes to the conductor, and the builder is told to ask rather than retry.
One lock, fast-forward only
Under one landing lock the ticket is rebased onto the base and lands, and the base only fast-forwards.
Your merge strategy
merge_strategy: squash (one commit <id>: <title> with an Agent-Task trailer), rebase (the ticket's own commits) or merge (a merge commit).
Conflicts with context
CONFLICT names the files and who changed them on the base: each ticket by id and title, any other commit by hash and subject. Builders rebase; they never merge the base in.
Review only where it's needed
Accept lines without a command go to a reviewer agent, which accepts or bounces the ticket with a reason.
Commands
swairm save "note" | commit, take locks, rebase onto the base |
swairm done | run every accept check, then land |
swairm review <id> accept|bounce "why" | the reviewer's verdict |
swairm doctor --fix | return stale claims to ready, clean up finished worktrees |
Settings
base | the branch tickets land on (default main, else master) |
merge_strategy | how a ticket lands after it is rebased: squash (default), rebase or merge |
shared | globs never locked (lockfiles, generated files) |
dir_lock_at | this many changed files in one directory lock the directory (default 6) |
env | variables for every check, the gate and every job; checks get no others |
heavy_checks | words that make a check heavy, so it waits for a heavy slot |
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.
- 0006Checks land a ticket; a reviewer only where no command can prove it
- 0011One building ticket per file
- 0015A check tests only the ticket's own changes
- 0021Checks run in the repository's environment only
- 0032Each repository picks its merge strategy; builders always rebase
- 0046A ticket's files give way to the ticket it waits on
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