Skip to content

v0.5.0

Choose a tag to compare

@B1aZer B1aZer released this 12 Nov 19:08
· 431 commits to main since this release

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>:8787 prints 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 connector is 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/runners say 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 writes turn.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.closed event.
  • 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}/commands and the command job. Nothing writes
    command.queued, command.started, command.ran or command.failed any more; older records
    still read as they were. Send !cmd as an ordinary turn instead.
  • Removed: the agentbus connect command. Connect a subscription in the cockpit (Agents, the
    agent's Connect step). agentbus api stays, for agents and scripts.
  • Removed: /docs/reference.md and docs/CLIENT_API.md. The contract is the running service's
    /docs page and /api/v0/openapi.json; /docs/llms.txt stays for agents.
  • New: GET /api/v0/settings, GET and PUT /api/v0/settings/permissions, GET and
    PUT /api/v0/settings/instructions. Each change writes settings.changed with 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/runners lists one runner per machine, with connector (the machine's id),
    sandbox (can, why), and pending: machines waiting for approval. A removed runner writes
    runner.removed.
  • New events: turn.changed, turn.applied, runner.removed. turn.started carries
    settings_version.
  • Starting a session: connector now names the machine the session runs on; only that
    machine's runner takes its work. folder is a path on that machine.
  • Default changed: [agent_api] apply is now false. A 0.4 data folder keeps true (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/login and
    GET /api/v0/runner/login for agentbus login; take gains folders; 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. See docs/RUNNER_PROTOCOL.md.
  • The v0 API 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 .git is writable, and Linux has no Landlock layer. The browser
    bridge (Claude in Chrome) is not granted yet.
  • agentbus up cannot 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 forbid set, 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 set subscriptions_on_runners = "own".
  • There is no HTTPS. Across a network, use an SSH tunnel or a private network.

Upgrading from 0.4

  1. Back up control's data folder. (0.5 also copies it on its first start, beside it, named
    <folder>-<date>-before-settings-db.)
  2. Stop control, every connector and every runner.
  3. Install 0.5 on control and on every machine. Start control first. On its first start it imports
    permissions.toml, instructions.md and agents.json into settings.db once, and never reads
    them again.
  4. On each machine that ran agentbus connector: run agentbus connector once; it changes nothing
    and prints the agentbus runner line to run instead, with the same data folder (its
    folders.json keeps the machine's id). If it shared control's data folder, give the runner a new
    one and copy folders.json into it. Install the agents' programs there: the runner now runs
    that machine's sessions.
  5. A runner that joined with an enroll token keeps working. A new machine joins with
    agentbus login.
  6. 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.
  7. A 0.4 client that used POST /api/v0/sessions/{id}/commands must send !cmd as a turn.

Install

  • brew install staysup/tap/agentbus, or
  • curl -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.