SwarmOps
View as Markdown

Operating SwarmOps#

This guide is for whoever runs SwarmOps for a swarm of coding agents on one host. It installs the binary, creates a store, gives agents the store through MCP, runs the daily loop between the store and the git repository that CI and deployment watch, with a person's review before the trunk moves, checks, backs up and trims the store, and says what an upgrade means, where the limits are and what to watch. pilot.md runs the same loop once on this repository, as the first real use. Each task has a page of its own under operate/.

The pages#

TaskPage
Install the binary, and upgrade it and the storesInstall and upgrade
Choose where a store lives, set its permissions, create it, give writers identitiesStores
Register swarmops mcp with Claude Code, and keep a copy of every envelopeGive agents the store
Run the loop between the store and git, with a person's reviewThe daily loop
Build and test an agent's change in a git worktreeBuild and test a change
Keep one writer per trunk, and recover when both sides movedOne writer per trunk
Check a store, read a failed check, repairVerify and repair
Back up a store in use, and restore itBackup and restore
Remove what may go, with every writer stoppedMaking room
Watch errors, recoveries, latency, disk and the git sideMonitoring
Know where the limits areLimits

How to read these pages#

Every command on these pages was run with the binary built from this repository, and every output is copied from those runs, cut down where it is long: … marks a cut, and the store's path in meta.repo, which echoes the path the caller gave, is left out. swarmops <command> --help is the authority on flags, and the README's Commands table lists them all. The examples run the long name, swarmops; so is the same program.

Before you start#

Sections of the single-page guide#

This guide was one page until its sections moved to the task pages above. Each former section keeps its heading here, so that links to it still arrive, and points to where its text now is.

Install#

Install and upgrade: the installer, a clone, or a release archive.

With the installer#

Install with the installer.

From a clone#

Install from a clone.

From a release#

Install from a release archive.

Create a store#

Create a store; where it may live and its size: Where a store may live.

Identities#

Identities.

Give agents the store#

Give agents the store.

The tools agents get#

The tools agents get.

Where the envelopes are#

Keep a copy of every envelope.

The daily loop#

The daily loop.

Once: bring the repository in#

Once: bring the repository in.

1. Take in what git gained#

1. Take in what git gained.

2. Agents commit and land#

2. Agents commit and land.

3. Look at what landed#

3. Look at what landed.

4. Send it to git for review#

4. Send it to git for review.

5. Review, then move the trunk#

5. Review, then move the trunk.

Building and testing a change#

Build and test a change.

One writer per trunk#

One writer per trunk.

Checking a store#

Verify and repair.

Backup and restore#

Backup and restore.

Making room#

Making room.

Upgrades#

Upgrade.

Limits#

Limits.

What to monitor#

Monitoring.

Edit on GitHub

On this page