Repository navigation
v0.5.0
AgentBus 0.5 is a command centre for all your machines. Control keeps the record, the queue and
your settings. Each machine runs one runner that does the work.
What you can do now
- Add a machine with one command.
agentbus login http://<control>:8787prints a code. Type
it on the cockpit's Runners page and press Approve. The machine saves its credential and sets
itself up as a service (launchd on macOS, systemd on Linux). No enroll token to copy. - One program per machine. The runner holds the machine's folders, makes each session's copy,
runs the agents and applies changes.agentbus connectoris retired. - Pick the machine, then the folder. A session runs on the machine you pick for its whole life.
- Settings live in control. The permissions and the instructions are in
settings.db, the same
for every machine. Change them on the cockpit's Settings page or through the API. A change
applies to the next turn, and each turn records the settings version it ran under. - A wall around each session (proof of concept, off by default). Set
[sandbox] mode = "on".
The agent then reads and writes only its own copy and its own home, plus the files you list in
[sandbox] read(such as~/.aws/config). Its network goes through the runner's proxy. Seatbelt
on macOS, bubblewrap on Linux. claude and codex run inside it. A runner that cannot build the
wall refuses the turn. - See which machines can build the wall. The Runners page and
GET /api/v0/runnerssay so per
runner, and why not. - Remove an offline machine on the Runners page. Its sessions stay in the record.
- A
!message goes to the agent. The agent runs the command with its own shell tool, under
the same permissions and wall as any other turn, and it is recorded as tool calls. - What a turn changed is in the record. Each turn's end writes
turn.changed: every changed
file with its hash before and after, and the diffs up to 1 MiB. Each apply writesturn.applied:
which turns, who asked, the result. They stay after the session's copy is cleaned up. - A failed agent says why. Its last error lines are on the turn's
session.closedevent. - Control records every model call it carries, so a runner that holds no secret sends none.
- Safer defaults. An agent's own token no longer applies a turn to your folder: only you do,
unless you turn it on. A runner reads only its own jobs' data.
Changes to the API
- Removed:
POST /api/v0/sessions/{id}/commandsand thecommandjob. Nothing writes
command.queued,command.started,command.ranorcommand.failedany more; older records
still read as they were. Send!cmdas an ordinary turn instead. - Removed: the
agentbus connectcommand. Connect a subscription in the cockpit (Agents, the
agent's Connect step).agentbus apistays, for agents and scripts. - Removed:
/docs/reference.mdanddocs/CLIENT_API.md. The contract is the running service's
/docspage and/api/v0/openapi.json;/docs/llms.txtstays for agents. - New:
GET /api/v0/settings,GETandPUT /api/v0/settings/permissions,GETand
PUT /api/v0/settings/instructions. Each change writessettings.changedwith the keys that
changed, never a value. The version is also the ETag. - New:
POST /api/v0/runners/pending/{id}/approve(with the code the machine shows),
POST /api/v0/runners/pending/{id}/refuse,POST /api/v0/runners/{id}/remove. GET /api/v0/runnerslists one runner per machine, withconnector(the machine's id),
sandbox(can,why), andpending: machines waiting for approval. A removed runner writes
runner.removed.- New events:
turn.changed,turn.applied,runner.removed.turn.startedcarries
settings_version. - Starting a session:
connectornow names the machine the session runs on; only that
machine's runner takes its work.folderis a path on that machine. - Default changed:
[agent_api] applyis nowfalse. A 0.4 data folder keepstrue(below). - Retired setting:
commands. It is removed from stored settings once, and ignored in an old
permissions.toml. Any other unknown key is still refused. - The runner protocol is 4. New routes
POST /api/v0/runner/loginand
GET /api/v0/runner/loginforagentbus login; take gainsfolders; register refuses a
connector role. Control and every runner upgrade together: control refuses a runner of
another protocol, so a 0.4 runner cannot talk to 0.5 control, and a 0.5 runner cannot join 0.4
control. Seedocs/RUNNER_PROTOCOL.md. - The
v0API may still change.
Known limits
- The wall is a proof of concept and off by default. Not yet hardened: a session can still
stat
any path on macOS, its copy's.gitis writable, and Linux has no Landlock layer. The browser
bridge (Claude in Chrome) is not granted yet. agentbus upcannot build the wall: it has no home per session. Use a separate runner.- The wall on Linux was measured on Ubuntu 22.04 only. Ubuntu 24.04 needs AppArmor to allow
bubblewrap's user namespace; the Runners page says when it does not. - Network control is Linux only. On macOS,
[network] contain = "on"refuses every turn unless the
wall is on. - A session stays on the machine that holds its folder. It cannot move.
- One person per control. Teams come later.
- A 0.4 runner's turn still running while control is upgraded shows each of its model calls twice.
- A model call a runner could not send to control (control out of reach) is only in the runner's
own log. - OpenRouter turns show a cost of $0.
- agy gets no instructions of AgentBus's own and no MCP tools. A turn with
forbidset, or with
subagents = false, is refused on agy. agy's Google sign-in on runners is at your own risk with
Google (its terms, clause 6), and stays off unless you setsubscriptions_on_runners = "own". - There is no HTTPS. Across a network, use an SSH tunnel or a private network.
Upgrading from 0.4
- Back up control's data folder. (0.5 also copies it on its first start, beside it, named
<folder>-<date>-before-settings-db.) - Stop control, every connector and every runner.
- Install 0.5 on control and on every machine. Start control first. On its first start it imports
permissions.toml,instructions.mdandagents.jsonintosettings.dbonce, and never reads
them again. - On each machine that ran
agentbus connector: runagentbus connectoronce; it changes nothing
and prints theagentbus runnerline to run instead, with the same data folder (its
folders.jsonkeeps the machine's id). If it shared control's data folder, give the runner a new
one and copyfolders.jsoninto it. Install the agents' programs there: the runner now runs
that machine's sessions. - A runner that joined with an enroll token keeps working. A new machine joins with
agentbus login. - Agents' apply: your 0.4 data folder keeps
[agent_api] apply = true, so nothing changes. Turn
it off on the Settings page to take the new default. - A 0.4 client that used
POST /api/v0/sessions/{id}/commandsmust send!cmdas a turn.
Install
brew install staysup/tap/agentbus, orcurl -fsSL https://raw.githubusercontent.com/staysup/agentbus/main/install.sh | sh
AgentBus is open code under FSL-1.1-ALv2. Each release becomes Apache 2.0 two years after it is
published.