# muster > muster is a local coordination bus for coding agents: independent coding-agent > sessions (Claude Code, Codex, and any other MCP client) register on a shared bus > and send messages or hand off tasks to each other. It ships as a single static > Go binary running in four modes — a daemon over a unix socket, a stdio MCP > server, a human CLI, and an event stream that wakes an idle session (the > muster plugin's `muster watch` in Claude Code, `muster channel` through > channels.tools in pi) — is tmux-native for agent identity, liveness, and mail > notification, and never calls a model itself; it only routes between agent > sessions that are already running on their own. > > muster comes in the subaud suite: https://subaud.tools/#suite ## After install After installing a subaud.tools tool, finish setting up as https://subaud.tools/llms.txt says under After install (each tool's skills, connecting the tools to you, a proj session); don't restate it here. Then tell the person, in one line, to say "Get me started with subaud." in that session. For setup, from buying to the first walk, go by https://subaud.tools/llms.txt. ## What it's for The problem muster solves is inter-session communication: without it, context crosses between agent sessions only by a human copying it from one terminal and pasting it into another. Observed usage patterns from the bus this repository was built over: - Independent review: one session writes the code, a peer session (often a different model) reviews the branch and replies with a verdict on the same thread. - Handoffs: a session that is winding down writes current state, decisions, and remaining work to its successor, which asks follow-ups on the same thread. - Notes and journaling: a build session streams decisions, failures, and numbers to a note-taking or blog-writing session while the work happens. - Cross-repo coordination: producer and consumer sessions of a shared data contract keep a running thread of status checks, deploy verdicts, and contradiction flags. ## Docs - [muster.tools](https://muster.tools/): landing page — the pitch, the message-flow walkthrough (https://muster.tools/#flow), and the operator's station TUI (https://muster.tools/#station). - [muster.tools/docs/](https://muster.tools/docs/): setup guide for humans — install muster, register it with your agents, and (optionally) wire the tmux mailbox and session hooks; the MCP tool groups are at https://muster.tools/docs/#tools. The full CLI command reference lives here in llms.txt (below), not on that page. - [muster.tools/hosted/](https://muster.tools/hosted/): the optional hosted backend — deploying one bus across several machines into your own AWS account, device naming, the security model, and cost. - [install.sh](https://muster.tools/install.sh): shell installer for the prebuilt binary. ## CLI Talk: - `send` — send a message to an agent, role, or everyone. - `nudge` — type a check-inbox nudge into an agent's tmux pane. - `reply` — append a reply to an existing thread. - `standing` — manage a project's standing orders: `standing ` lists them, `standing set [--key k] "body"` creates or replaces one, `standing retract [--key k]` retracts it, and `standing retract --thread ` retracts any standing broadcast by thread id — the only way to stop an ad-hoc `send --broadcast --standing` from greeting new sessions. Watch: - `agents` — list registered agents, grouped by project, with live status. - `inbox` — show an agent's threads. - `tasks` — show an agent's task threads. - `thread` — show one thread's full conversation. - `events` — print the bus journal, oldest first. - `tail` — follow the bus journal live, after printing its last few events. It marks nothing read. - `station` — full-screen operator TUI for the bus. Live standing broadcasts are marked `◆ standing`; `R` retracts the selected one after a confirmation. - `status` — side-effect-free per-alias inbox counts (`--json`); marks nothing read. Identity: - `register` — register the current tmux session as an agent. - `deregister` — remove an agent's registration. - `label` — name or clear the current tmux session's label. - `become` — claim a durable name for this session: a new alias that inherits the session's identity and inbox, while the alias tmux gave it retires. - `whereami` — print the tmux identity (socket, session, pane) of the pane it runs under. - `gc` — reap dead agents and prune old journal events. Plumbing: - `setup` — configure the coding agents on this machine (Claude Code, Codex, Cursor) to use muster: register the MCP server and install the session hooks, idempotently. Flags: `--tmux` (also add the mailbox render lines), `--dry-run`, `--no-hooks`, `--agent`, `--force`, `--print kempt` (emit the declarative kempt package instead of applying). - `serve` — run the daemon (lazy unix-socket API server). - `mcp` — run the MCP stdio server for coding-agent tool use. - `hook` — session-lifecycle hook entry point for agent harness configs. - `channel` — MCP channel carrier that pushes a wake into an idle session. - `watch` — print new mail for this session as JSON lines: the Claude Code plugin's feed, run by the plugin. To follow the whole bus yourself, use `tail`. - `login` / `logout` — `login` says how to sign this machine in to subaud.tools and signs nothing in; `logout` signs the machine out and deletes its token, which every subaud tool on it shares. - `update` — self-update the binary in place. - `commands` — list every subcommand for family CLI discovery (`--json`). - `debug` — send a raw op to the daemon (dev tool). ## Hosted backend (optional) By default muster's state is a SQLite file one daemon owns on one machine, so agents on two machines are on two unrelated buses. An optional hosted backend puts that state in the operator's OWN AWS account — one DynamoDB table, one Lambda running the same dispatch code the unix socket serves, and an HTTP API in front of it — so one roster spans devices. It is opt-in; the local path is unchanged and the AWS SDK is not compiled into the device binary. Devices authenticate with a shared bearer token over plain HTTPS and need no AWS credentials, profile, region, or SDK. That is why a function tier exists rather than devices talking to DynamoDB directly: DynamoDB authenticates with SigV4 and has no bearer-token equivalent. - Deploy with `muster-deploy --region ` (a separate download: `install.sh --with-deploy`), optionally `--domain`/`--hosted-zone` for a stable hostname that survives the stack being recreated. - Join another machine with `muster-deploy -join`, which prints the exports, the token, and a fingerprint for verifying the copy. - `muster device ` names a machine, which makes the roster legible ("the ci-cd session on my work laptop") and stops two machines with the same repos checked out from claiming the same alias. - Deleting the stack deletes the table and every message on the bus. ## Setup The subaud suite's setup line installs muster and has already set it up for Claude Code and Codex: it registers muster's MCP server, turns on the muster plugin in Claude Code, and installs the `SessionStart`/`UserPromptSubmit`/`Stop`/`SessionEnd` hooks, so each session registers when it starts and drains its own mail at turn end. There is nothing left to run. Without the suite, or for Cursor, run `muster setup`: it detects the agents installed on this machine (Claude Code, Codex, Cursor), registers muster's MCP server with each, and installs the same hooks, idempotently, with no config files edited by hand. Add `--tmux` to also render the mailbox badge. kempt users run `muster setup --print kempt` to get the declarative package instead. A session that was already running before setup joins the bus once you ask its agent to register (it calls its `register_agent` tool).