Formation coordinates AI coding sessions across workspaces. It lets an operator assign roles, exchange messages through a private local inbox and monitor CI or other checks for changes.
Status: pre-1.0; commands and provider behavior may change.
How it works
An operator (the admiral) applies a roster naming a chief and workspace captains. The chief asks a captain to own a workspace, and the captain can assign a CI probe to a sentry. One reader runs the room's watches and mails new results to the assigned seat; a provider hook delivers unread mail on a turn. Requests that need the operator's decision go to the reserved admiral seat. A roster describes reporting lines and intended routes; it grants no host route, idle wake or notification.
Quick start
Prerequisites: Rust 1.89 or newer, Git, Make, jq, Codex and Claude Code on PATH; Antigravity installation is optional with agy on PATH.
git clone https://github.com/constellation-works/formation.git
cd formation
make update-plugins
- Keep the checkout in place and open a new client chat so its hooks load. Codex may ask you to review and trust changed hooks.
- Verify the example roster offline:
formation roster check --json < examples/roster.json prints {"version":1,"seats":4,"routes":5}.
Install just the CLI
For macOS or Linux on arm64 or x86_64, choose a tag from the GitHub releases and download its install.sh asset.
sh install.sh vX.Y.Z # Replace vX.Y.Z with the release tag you chose.
The installer uses curl and verifies the binary's SHA-256 before installing it to ~/.local/bin. Set FORMATION_INSTALL_DIR to choose a different directory. Add that directory to PATH if needed, then run formation --version. To build the CLI from a checkout, run make install. Roster checks work offline without a provider account, Orbit or a broker.
To install through npm instead, use the npm package once the operator has published the version matching a release:
npm install -g @orbit-tools/formation
The package version equals the release tag without its v. It downloads that release's binary for your platform, verifies its SHA-256 and exposes formation. See releasing.
Features
- Roster and admiral. A version 2 roster names seats, roles, hosts, workspaces and reporting lines. The operator is the reserved
admiral seat; no agent joins it, and terminal mail, request and grant calls can use it. A roster check validates its data but does not grant routes or wake access.
- Seat mail. Joined seats exchange durable messages in a local SQLite room. Provider hooks deliver unread mail on a turn; envelopes remain available until acknowledged.
- Provider support. Claude Code and Codex have prompt and Stop hooks. Claude's Stop hook can wait for mail; Codex can queue an idle-seat wake when a current hook binding and its local queue are available, but a completed child or message alone does not start a new turn. Claude staffing requires a Claude Desktop Code chat that exposes session tools; the plugin alone does not provide desktop session management. Antigravity is a supported roster host with an optional plugin, but live hook firing is unverified and idle wake and blocking-request notifications are unavailable. See the Claude, Codex and Antigravity guides for details.
- Watches. One lease-holding reader runs a room's probes; other readers stand by to take over. New probe results go by seat mail, so delivery follows the recipient host's behavior.
- Terminal output. Human views of mail, status, roster, watch, grant and request share a CLI table kit for aligned columns and short UTC times. On terminals, mail bodies wrap and prose cells can be shortened to fit; optional columns and then further rightmost columns may be omitted with a stderr notice; an oversized leading fixed cell may be shortened. JSON preserves the full values, and piped output keeps its documented form.
Learn more