muster

module
v0.150.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: MIT

README

muster

Drive multiple Claude Code sessions from your phone, and get notified in one consolidated queue when they need your input.

Self-hosted, on your own machines, over your own Tailscale network. Any coding agent you run in tmux shows up; Claude Code gets the most.

What you get

  • A push when a session needs you, and one queue for everything waiting. Every session on every machine is in one list, with the ones waiting on you first, and the Asks page gathers everything blocked on you. A session's stop is pushed once and never quoted; asks are pushed with their text (below). This needs Push, which INSTALL.md turns on; on iOS, Add to Home Screen first.
  • A chat on your phone, not a terminal. A Claude Code session opens as a chat with a message box at the bottom, within reach of your thumb. With dictation on, tap the mic and speak: the transcript lands in the box, and you read it before you press Send.
  • What Remote Control leaves out. muster picks up every session already in tmux on its own, with nothing to run inside each one; lists non-Claude panes and every machine in one waiting-first list; and reads the session on your own machine, so it works with an API key, Amazon Bedrock or a custom ANTHROPIC_BASE_URL, which Remote Control does not support.
  • Everything stays on your machines and your tailnet (unless you turn on an optional feature that calls an outside API, such as suggested replies, focus or a hosted speech-to-text). The server runs on one of your machines and is reached only over Tailscale. Each machine dials out to it, so muster opens no network port on them (the optional MCP endpoint listens on loopback only). Machines are read-only until you let muster type into them, one machine at a time.
  • Mixed agents in one place. Claude Code renders as a chat; opencode and Hermes have their own read views; Codex, Gemini CLI and plain shells are live terminals.
  • Agents ask you instead of stopping. A Claude Code session can ask you a question with options and wait for your answer, and Claude Code's own multiple-choice questions become a form you answer from your phone. Each needs a one-time setup per machine.

How it works

  1. A server (one Go binary and Postgres, in Docker Compose) runs on one of your machines, reached over your tailnet through tailscale serve.
  2. On each machine, muster-mirror dials out to it and mirrors every tmux window as a mirrored session; a message from your phone is typed into that same session, so it is all there when you are back at the keyboard.
  3. Your phone opens the server as an installable web app (a PWA).

muster sees only sessions inside tmux, and the one-prompt install below sets up mirrored sessions only. How to bring a session you already have into tmux, and how mirrored sessions differ from the opt-in dispatched agents that muster starts in Kubernetes pods: docs/mirroring.md. The components and what each trusts: docs/architecture.md.

Notifications: only when you are needed

From v0.146.0 the Compose stack pushes each stop of a session once: when it waits on you, or when it has sat idle 10 minutes (stalled). The push names the session and never quotes it. Asks are pushed with their text: an agent's or the chief's question, muster's own, a Claude Code question held by the ask hook, and opencode questions, permission requests and Hermes approvals (docs/attention.md). Task events have their own switches under Account → Notifications. Turning this off: docs/features.md.

Quickstart

You need:

  • a Tailscale account with MagicDNS and HTTPS certificates on, and Tailscale on every machine and on your phone;
  • on the machine that will run the server: Docker with Compose v2, and about 10 GB of free disk (20 GB with local dictation);
  • tmux on every machine. Linux, amd64 or arm64; macOS hosts are experimental (Limits).

(a) Let your agent install it. Paste this one prompt into the coding agent (Claude Code, Codex, opencode, Gemini CLI, …) on each machine you want in muster. The first paste sets up the server; on each further machine, tell the agent muster already runs, and that machine joins it:

Set up muster for me: read https://raw.githubusercontent.com/ZacxDev/muster/main/INSTALL.md and follow it step by step. Ask me everything you need in one go up front, then do the rest yourself.

It asks its questions once, up front (other machines, how dictation should work, whether muster may type into each machine's terminals), then:

  • runs the server in Docker, behind tailscale serve on your tailnet;
  • connects each machine's tmux sessions with muster-mirror;
  • finishes with muster doctor, which checks every part end to end, says how to fix what fails, and (with qrencode installed) prints a QR code of the address for your phone.

While there is no session yet, home shows how to start an agent in tmux (tmux new -A -s work claude) and the same prompt, to connect another machine. More in docs/onboarding.md.

(b) Install it yourself. INSTALL.md is the same guide, step by step.

Install from inside Claude Code

The one prompt above is the main path. In Claude Code you can instead add this repository as a plugin marketplace and install the muster plugin:

/plugin marketplace add ZacxDev/muster
/plugin install muster@muster

Then ask Claude Code to "set up muster". The plugin holds one skill, muster-setup, which follows the same INSTALL.md from its URL, so it never carries a copy of the steps.

Other coding agents can install the same skill with the skills CLI:

npx skills add ZacxDev/muster --skill muster-setup

This is muster by ZacxDev. Other repositories publish unrelated skills named muster, so install it by this repository's name, not by searching for the word.

To hack on muster, docs/development.md runs it from source against a throwaway database.

Core vs optional

The core runs with no optional dependency: Docker Compose with its bundled Postgres on one machine, muster-mirror and tmux on each machine, and Tailscale. Everything else is off until you give it what it needs, and is turned on with a few lines in .env (and, for some, a Compose profile).

feature needs default
Core: mirrored sessions, chat and Terminal views, typing into sessions, sidebar and search, the Asks page, tasks, the installable app, the CLI and muster doctor Compose and its Postgres; muster-mirror and tmux on each machine; Tailscale on
Push HTTPS, which Tailscale gives you; keys INSTALL.md generates on in INSTALL.md
One push per stop Push (above) on in the Compose stack, from v0.146.0
Dictation --profile stt (bundled, CPU), --profile stt-cohere (GPU), or your own OpenAI-compatible speech-to-text off (INSTALL.md asks)
Attachments --profile s3, or your own S3-compatible store off
Suggested replies and focus an OpenRouter key off until the key is set
Agent ask tool and ask cards a one-time setup on each machine off
Accounts (per-user sign-in, passkeys) a GoTrue server you run off (one shared password)
Dispatch, the Chief and officers Kubernetes off; not in the Compose stack
Approval router an external permission router you run (advanced) off

Every other optional feature, what it needs and the .env lines that turn it on: docs/features.md. muster doctor checks the install end to end and says how to fix what fails (docs/cli.md); each section of docs/features.md ends with how to check that feature is on.

muster vs Remote Control

If you use only Claude Code on a paid Claude plan, Remote Control is less work: nothing to install or host, a native app with its own push for permission prompts and questions, those prompts answered in the app, first-party support, deeper Claude Code integration (subagent progress, compaction), and Trusted Devices.

muster is for what it does not cover: agents other than Claude Code, Claude Code on an API key, Bedrock, Google Cloud, Microsoft Foundry or a custom ANTHROPIC_BASE_URL, every tmux session on every machine in one list, and a session that stays on your own machines and tailnet instead of going through Anthropic's servers.

The full comparison, with Happy and SSH + tmux too and the sources for every cell, plus a line each on herdr and Paseo citing their READMEs: docs/comparison.md.

Limits

  • Linux. macOS hosts are experimental: the Terminal view cannot attach on macOS yet (internal/mirrorhost/pty_other.go), so there only a Claude Code window whose Rendered view resolves can be viewed, and Rendered-view detection is unverified on a real Mac. No Windows.
  • A Claude Code permission prompt is answered in the Terminal view. The chat view refuses to type into a waiting prompt, and there is no one-tap approve (docs/sending-and-step-up.md).
  • Codex and Gemini CLI get no waiting push and no ask tool: they are terminal views. The message box does not send to opencode yet.
  • It needs Tailscale, plus Docker on one machine and tmux on every machine. muster sees only sessions inside tmux.
  • It is a PWA, not a native app. On iOS, install it to the Home Screen before it can receive push.
  • Run one replica. Some background loops and the mirror tunnel keep their state in memory.
  • An interactive mirror is a shell on that host. Anyone who can type into that host's Terminal view (after a recent sign-in) can run commands as the user muster-mirror runs as.
  • Agent dispatch is opt-in and only lightly proven. The repository ships no Kubernetes manifests.

The full list is in docs/limits.md.

Features

Every feature, what it needs and how to turn it on: docs/features.md. The full documentation index: docs/README.md.

A mirrored Claude Code session at a desktop size, with its tool calls, context badges and the session switcher

The name

Not to be confused with two other apps called Muster: the Mac menu-bar app (agentmuster.app) and the desktop app for running parallel agents in git worktrees (musterup.dev). This muster is the self-hosted one, for your phone and every machine you run agents on.

To muster is to assemble a force for duty. A muster roll is the register of who is present and what each is assigned.

Licence

MIT. See LICENSE.

Directories

Path Synopsis
cmd
ccd command
Command ccd is the in-pod supervisor that makes an interactive Claude Code session a muster agent runtime.
Command ccd is the in-pod supervisor that makes an interactive Claude Code session a muster agent runtime.
ccd/livecheck command
Command livecheck sends ONE turn to a running ccd through muster's own chat client — agentgateway.Gateway, the code path muster's chat box and kickoff use — and prints the reply.
Command livecheck sends ONE turn to a running ccd through muster's own chat client — agentgateway.Gateway, the code path muster's chat box and kickoff use — and prints the reply.
muster command
Command muster is a machine client for muster's JSON API.
Command muster is a machine client for muster's JSON API.
muster-clankmail command
muster-clankmail is a muster plugin for ClankMail, the signed-messaging protocol for agents (github.com/ZacxDev/clankmail): it delivers verified direct messages from pinned peers to the owner's muster chief, and sends the replies the owner approves.
muster-clankmail is a muster plugin for ClankMail, the signed-messaging protocol for agents (github.com/ZacxDev/clankmail): it delivers verified direct messages from pinned peers to the owner's muster chief, and sends the replies the owner approves.
muster-migrate command
Command muster-migrate applies muster's migrations to the database named by DATABASE_URL and exits.
Command muster-migrate applies muster's migrations to the database named by DATABASE_URL and exits.
muster-mirror command
Command muster-mirror shows this machine's tmux sessions in muster's Agents view as MIRRORED sessions — one card per tmux WINDOW.
Command muster-mirror shows this machine's tmux sessions in muster's Agents view as MIRRORED sessions — one card per tmux WINDOW.
muster-server command
Command muster-server is muster's HTTP service: the task board, the agent surfaces, the connectors and the machine API, over the Postgres database internal/db migrates.
Command muster-server is muster's HTTP service: the task board, the agent surfaces, the connectors and the machine API, over the Postgres database internal/db migrates.
muster-suggest-eval command
Command muster-suggest-eval runs the suggested-replies eval set (internal/suggest/testdata/eval/fixtures.yaml) against the REAL model and reports each fixture's property pass rate, the latency of every call (p50, p95) and its cost.
Command muster-suggest-eval runs the suggested-replies eval set (internal/suggest/testdata/eval/fixtures.yaml) against the REAL model and reports each fixture's property pass rate, the latency of every call (p50, p95) and its cost.
muster-toolctx-calibrate command
Command muster-toolctx-calibrate measures how well the rendered view's tool-context ESTIMATE (cctranscript.EstimateTokens) matches the MEASURED growth, over a directory of Claude Code transcripts, and fits the calibration constant the estimate uses (cctranscript.ResultBytesPerToken).
Command muster-toolctx-calibrate measures how well the rendered view's tool-context ESTIMATE (cctranscript.EstimateTokens) matches the MEASURED growth, over a directory of Claude Code transcripts, and fits the calibration constant the estimate uses (cctranscript.ResultBytesPerToken).
e2e
ccfix command
Command ccfix is the chief-mobile browser spec's fixture (e2e/tests/chief-mobile.spec.ts): a running claude-code agent with an account failover on record, the two rows the e2e harness cannot make through a real route — a failover needs a gateway reporting a rate limit from a real runtime, and the noop driver runs none.
Command ccfix is the chief-mobile browser spec's fixture (e2e/tests/chief-mobile.spec.ts): a running claude-code agent with an account failover on record, the two rows the e2e harness cannot make through a real route — a failover needs a gateway reporting a rate limit from a real runtime, and the noop driver runs none.
devicefix command
Command devicefix registers a paired phone's push endpoint for the browser suite (e2e/tests/push.spec.ts), as PUT /api/device/push does once its test push is accepted:
Command devicefix registers a paired phone's push endpoint for the browser suite (e2e/tests/push.spec.ts), as PUT /api/device/push does once its test push is accepted:
emptydb command
Command emptydb gives a spec a FRESH, EMPTY database beside the suite's own: the suite's database name with "_empty" inserted before the `_e2e` suffix, dropped and re-created on every run, and its DSN printed on stdout.
Command emptydb gives a spec a FRESH, EMPTY database beside the suite's own: the suite's database name with "_empty" inserted before the `_e2e` suffix, dropped and re-created on every run, and its DSN printed on stdout.
heldfix command
Command heldfix is the held-kickoff browser spec's fixture (e2e/tests/kickoff-wait.spec.ts): an agent whose first turn the kickoff deliverer is holding for its github connector grant — the row exactly as internal/agentkickoff leaves it (owed, not kicked off, kickoff_error opening with agents.KickoffAwaitingGrantReason).
Command heldfix is the held-kickoff browser spec's fixture (e2e/tests/kickoff-wait.spec.ts): an agent whose first turn the kickoff deliverer is holding for its github connector grant — the row exactly as internal/agentkickoff leaves it (owed, not kicked off, kickoff_error opening with agents.KickoffAwaitingGrantReason).
internal/e2edb
Package e2edb is the ONE guard every e2e fixture command runs before it touches a database: the database must be an e2e one, named "…_e2e".
Package e2edb is the ONE guard every e2e fixture command runs before it touches a database: the database must be an e2e one, named "…_e2e".
mkchat command
Command mkchat gives a browser spec an agent of its OWN with a persisted chat, so the spec can drive real server-rendered bubbles (chatBubble's data-md and data-msg-id) without adding rows to the seeded agents other specs count.
Command mkchat gives a browser spec an agent of its OWN with a persisted chat, so the spec can drive real server-rendered bubbles (chatBubble's data-md and data-msg-id) without adding rows to the seeded agents other specs count.
mkmember command
Command mkmember binds an existing GoTrue user to a NEW muster user row with the member role — the account a link invite (accounts PR 5) would create — so a browser spec can sign in as a member against the real GoTrue before the invite flow exists on this branch.
Command mkmember binds an existing GoTrue user to a NEW muster user row with the member role — the account a link invite (accounts PR 5) would create — so a browser spec can sign in as a member against the real GoTrue before the invite flow exists on this branch.
pluginfix command
Command pluginfix is the plugins browser spec's fixture (e2e/tests/plugins.spec.ts): the few rows that spec needs and the e2e harness cannot make through a real route, because the e2e harness runs no agent runtime.
Command pluginfix is the plugins browser spec's fixture (e2e/tests/plugins.spec.ts): the few rows that spec needs and the e2e harness cannot make through a real route, because the e2e harness runs no agent runtime.
seed command
Command seed resets an e2e database to a known board: a handful of tasks in every status and a few agents in distinct states, so the browser suite and the manifest screenshots render the same thing on every run.
Command seed resets an e2e database to a known board: a handful of tasks in every status and a few agents in distinct states, so the browser suite and the manifest screenshots render the same thing on every run.
sqfix command
Command sqfix is the send-queue browser spec's fixture (e2e/tests/send-queue.spec.ts): the two states of a queued message the spec cannot reach through a real route in a few seconds — a message queued days ago, and a message whose sender stopped mid-send.
Command sqfix is the send-queue browser spec's fixture (e2e/tests/send-queue.spec.ts): the two states of a queued message the spec cannot reach through a real route in a few seconds — a message queued days ago, and a message whose sender stopped mid-send.
internal
agentgateway
Package agentgateway is the CHAT half of the agent seam: it turns an agent row plus a live provisioner into one turn against that agent's model gateway.
Package agentgateway is the CHAT half of the agent seam: it turns an agent row plus a live provisioner into one turn against that agent's model gateway.
agentkickoff
Package agentkickoff DELIVERS an agent's first turn: it hands the note a dispatch was created with (agents.Agent.PendingNote) to the agent's model gateway once the agent's instance is ready, and records what happened on the row.
Package agentkickoff DELIVERS an agent's first turn: it hands the note a dispatch was created with (agents.Agent.PendingNote) to the agent's model gateway once the agent's instance is ready, and records what happened on the row.
agentprovision
Package agentprovision adapts a provision.Provisioner DRIVER to the LIFECYCLE interface the agent HTTP handlers depend on (api.Provisioner): seven methods over an agent's int64 database id, rather than over a provision.Ref and a provision.Spec.
Package agentprovision adapts a provision.Provisioner DRIVER to the LIFECYCLE interface the agent HTTP handlers depend on (api.Provisioner): seven methods over an agent's int64 database id, rather than over a provision.Ref and a provision.Spec.
agentprovision/scrubexec
Package scrubexec is the ONE way agentprovision reaches a provisioning driver: a wrapper whose every exec into an agent's container runs with the container's turn credentials removed from its environment.
Package scrubexec is the ONE way agentprovision reaches a provisioning driver: a wrapper whose every exec into an agent's container runs with the container's turn credentials removed from its environment.
agentprovision/worktreetest
Package worktreetest builds, for tests only, the repository a machine job's worktree is made from: an origin whose default branch carries benign agent configuration, and a commit under review that carries hostile configuration of its own — a SessionStart hook, an MCP server, instructions, a nested `.claude/` — each of which, if it reached the CLI, would leave a marker file.
Package worktreetest builds, for tests only, the repository a machine job's worktree is made from: an origin whose default branch carries benign agent configuration, and a commit under review that carries hostile configuration of its own — a SessionStart hook, an MCP server, instructions, a nested `.claude/` — each of which, if it reached the CLI, would leave a marker file.
agents
Package agents is muster's agent domain: the stored record of a managed agent, its chat threads, the model catalogue that decides what it runs on, and the pure decision table a reconciler drives it with.
Package agents is muster's agent domain: the stored record of a managed agent, its chat threads, the model catalogue that decides what it runs on, and the pure decision table a reconciler drives it with.
agentspec
Package agentspec builds a provision.Spec from an agent row.
Package agentspec builds a provision.Spec from an agent row.
agentstatus
Package agentstatus keeps an agent's STORED status following its instance: it promotes a row stored as `provisioning` to `running` once the instance behind it is live and ready.
Package agentstatus keeps an agent's STORED status following its instance: it promotes a row stored as `provisioning` to `running` once the instance behind it is live and ready.
api
This file holds the single place a route may be registered.
This file holds the single place a route may be registered.
apitokens
Package apitokens is muster's PERSONAL API TOKEN store (accounts PR 6): the `api_tokens` table from migration 0006, under the row-level security 0009 put on it (a user reads and writes only rows whose user_id is its own).
Package apitokens is muster's PERSONAL API TOKEN store (accounts PR 6): the `api_tokens` table from migration 0006, under the row-level security 0009 put on it (a user reads and writes only rows whose user_id is its own).
askdrive
Package askdrive types an answer into Claude Code's own AskUserQuestion picker, the way a person would — one key at a time, READING THE PANE before and after every key — so a question asked in a mirrored session can be answered from muster while the terminal shows its picker too.
Package askdrive types an answer into Claude Code's own AskUserQuestion picker, the way a person would — one key at a time, READING THE PANE before and after every key — so a question asked in a mirrored session can be answered from muster while the terminal shows its picker too.
askdrive/fakepicker command
Command fakepicker runs askdrive.FakePicker on a terminal, for the tests that need a picker in a REAL tmux pane (internal/mirrorhost's tmuxit suite) where no Claude Code is.
Command fakepicker runs askdrive.FakePicker on a terminal, for the tests that need a picker in a REAL tmux pane (internal/mirrorhost's tmuxit suite) where no Claude Code is.
askimage
Package askimage is THE rule for what an officer's ask image may be: the types HQ accepts (sniffed from the bytes, never taken from a name or a header) and its size cap.
Package askimage is THE rule for what an officer's ask image may be: the types HQ accepts (sniffed from the bytes, never taken from a name or a header) and its size cap.
askq
Package askq is Claude Code's AskUserQuestion tool as muster shows it: the question set's shape and bounds, the answers a person may give to it in muster, and the store of the questions sessions are asking.
Package askq is Claude Code's AskUserQuestion tool as muster shows it: the question set's shape and bounds, the answers a person may give to it in muster, and the store of the questions sessions are asking.
atomicfile
Package atomicfile writes a whole file so that no reader ever sees half of it: a temp file unique to this write, in the same directory, 0600 from creation, synced, then renamed into place.
Package atomicfile writes a whole file so that no reader ever sees half of it: a temp file unique to this write, in the same directory, 0600 from creation, synced, then renamed into place.
attention
Package attention is the ATTENTION QUEUE's explicit asks (migration 0025): a question an agent — a dispatched agent or a mirrored Claude Code session — puts to its owner, and the owner's answer.
Package attention is the ATTENTION QUEUE's explicit asks (migration 0025): a question an agent — a dispatched agent or a mirrored Claude Code session — puts to its owner, and the owner's answer.
auth
Package auth provides the cryptographic primitives that lock down this service's two distinct surfaces:
Package auth provides the cryptographic primitives that lock down this service's two distinct surfaces:
authz
Package authz carries WHO a request (or a background loop) is acting as.
Package authz carries WHO a request (or a background loop) is acting as.
ccdialog
Package ccdialog reads a Claude Code pane's screen for a dialog that keys typed into the pane would ANSWER rather than reach the model: a permission prompt, the AskUserQuestion picker, any numbered select menu.
Package ccdialog reads a Claude Code pane's screen for a dialog that keys typed into the pane would ANSWER rather than reach the model: a permission prompt, the AskUserQuestion picker, any numbered select menu.
ccfailover
Package ccfailover is per-agent Claude ACCOUNT FAILOVER: when a turn on a claude-code agent fails `rate_limited` or `auth_failed`, the agent is REBOUND to another of its owner's Claude accounts that is usable, instead of staying on the exhausted one until its limit resets.
Package ccfailover is per-agent Claude ACCOUNT FAILOVER: when a turn on a claude-code agent fails `rate_limited` or `auth_failed`, the agent is REBOUND to another of its owner's Claude accounts that is usable, instead of staying on the exhausted one until its limit resets.
ccpool
Package ccpool is the per-account Claude Code `setup-token` pool: which operator account a new claude-code agent runs on, and what each account's sessions have reported back.
Package ccpool is the per-account Claude Code `setup-token` pool: which operator account a new claude-code agent runs on, and what each account's sessions have reported back.
ccsubagents
Package ccsubagents is the ONE reading of a Claude Code session's subagents: which Agent calls a parent transcript made, what each subagent's own files say, the status rule that decides running / done / failed (State), and the work ledger that counts how many run now (Ledger).
Package ccsubagents is the ONE reading of a Claude Code session's subagents: which Agent calls a parent transcript made, what each subagent's own files say, the status rule that decides running / done / failed (State), and the work ledger that counts how many run now (Ledger).
cctasks
Package cctasks counts what a Claude Code CLI has running beside its turn: its background shells, from the CLI's own process tree, and — with a subagent count its caller reads from the transcript — the work rule that turns both, and the CLI's own session status, into what an agent card may claim (docs/design/agent-cards.md (a), "The work rule").
Package cctasks counts what a Claude Code CLI has running beside its turn: its background shells, from the CLI's own process tree, and — with a subagent count its caller reads from the transcript — the work rule that turns both, and the CLI's own session status, into what an agent card may claim (docs/design/agent-cards.md (a), "The work rule").
cctranscript
Package cctranscript reads Claude Code's session transcript: the JSONL file the CLI appends one record to per message block, under ~/.claude/projects/<cwd-slug>/<session-id>.jsonl.
Package cctranscript reads Claude Code's session transcript: the JSONL file the CLI appends one record to per message block, under ~/.claude/projects/<cwd-slug>/<session-id>.jsonl.
chiefnudge
Package chiefnudge is the chief's stall nudges (docs/chief-nudges.md): the rules that decide which of an owner's sessions has stalled, what the chief may answer about one, and which of its answers muster accepts — plus the decisions table (migration 0064, chief_nudges).
Package chiefnudge is the chief's stall nudges (docs/chief-nudges.md): the rules that decide which of an owner's sessions has stalled, what the chief may answer about one, and which of its answers muster accepts — plus the decisions table (migration 0064, chief_nudges).
chiefpref
Package chiefpref stores each user's choice to turn their chief on or off (migration 0060, chief_preferences).
Package chiefpref stores each user's choice to turn their chief on or off (migration 0060, chief_preferences).
clankmailplugin
Package clankmailplugin is the logic of muster-clankmail: a muster plugin (docs/plugins.md) that connects one muster chief to a ClankMail hub.
Package clankmailplugin is the logic of muster-clankmail: a muster plugin (docs/plugins.md) that connects one muster chief to a ClankMail hub.
connectors
Package connectors is muster's secure connector store: named credentials for external platforms that agents USE without ever HOLDING.
Package connectors is muster's secure connector store: named credentials for external platforms that agents USE without ever HOLDING.
credentials
Package credentials is the per-owner model-provider credential store: the Claude Code `setup-token`s and the OpenRouter API key a MEMBER brings to muster, and the one place that decides whose credentials an owner's agents run on (Plane).
Package credentials is the per-owner model-provider credential store: the Claude Code `setup-token`s and the OpenRouter API key a MEMBER brings to muster, and the one place that decides whose credentials an owner's agents run on (Plane).
db
Package db opens muster's Postgres pool and applies its migrations.
Package db opens muster's Postgres pool and applies its migrations.
dbtest
Package dbtest gives every Postgres-backed test PACKAGE its own database, and decides — in ONE place — whether a missing database is a skip or a failure.
Package dbtest gives every Postgres-backed test PACKAGE its own database, and decides — in ONE place — whether a missing database is a skip or a failure.
devices
Package devices is muster's paired-phone store: the native Android app's DEVICE CREDENTIAL (`mdv_…`) and the one-time PAIRING CODE that mints it (migration 0039; docs/design/android.md, "The device credential").
Package devices is muster's paired-phone store: the native Android app's DEVICE CREDENTIAL (`mdv_…`) and the one-time PAIRING CODE that mints it (migration 0039; docs/design/android.md, "The device credential").
features
Package features is muster's feature registry: every optional (and core) feature, whether this server runs it, why not, and the exact .env line(s) that turn it on — written for the documented install, the Compose stack (docs/features.md).
Package features is muster's feature registry: every optional (and core) feature, whether this server runs it, why not, and the exact .env line(s) that turn it on — written for the documented install, the Compose stack (docs/features.md).
fence
Package fence renders UNTRUSTED TEXT as a fenced block an agent is handed as a turn: a preface line written by muster, then an opening marker at column 0 carrying a fresh nonce, the content lines, and a closing marker — with EVERY line between the markers behind ContentPrefix.
Package fence renders UNTRUSTED TEXT as a fenced block an agent is handed as a turn: a preface line written by muster, then an opening marker at column 0 carrying a fresh nonce, the content lines, and a closing marker — with EVERY line between the markers behind ContentPrefix.
flows
Package flows is muster's BROWSER-FLOW queue: a closed catalogue of named flows, an owner-scoped job table (migration 0012), and the per-(owner, host) runner tokens a host-side runner drains it with.
Package flows is muster's BROWSER-FLOW queue: a closed catalogue of named flows, an owner-scoped job table (migration 0012), and the per-(owner, host) runner tokens a host-side runner drains it with.
focus
Package focus is SESSION FOCUS (migration 0020): for each of a user's sessions — a dispatched agent or a mirrored Claude Code window — a short title and a one-to-three-sentence description of what it is working on now.
Package focus is SESSION FOCUS (migration 0020): for each of a user's sessions — a dispatched agent or a mirrored Claude Code window — a short title and a one-to-three-sentence description of what it is working on now.
github
Package github is muster's small GitHub REST client: the repository and pull-request shapes, the pull-request listing the GitHub App reads with an installation token (internal/githubapp), and the API base both follow.
Package github is muster's small GitHub REST client: the repository and pull-request shapes, the pull-request listing the GitHub App reads with an installation token (internal/githubapp), and the API base both follow.
githubapp
Package githubapp is muster's GitHub identity when a GitHub App is configured (MUSTER_GITHUB_APP_ID + MUSTER_GITHUB_APP_PRIVATE_KEY): the `github` connector's credential, the dispatch dialog's repository list, and the "is this a connected repository" check behind every dispatch door.
Package githubapp is muster's GitHub identity when a GitHub App is configured (MUSTER_GITHUB_APP_ID + MUSTER_GITHUB_APP_PRIVATE_KEY): the `github` connector's credential, the dispatch dialog's repository list, and the "is this a connected repository" check behind every dispatch door.
gotrue
Package gotrue is muster's client for its own GoTrue instance (accounts PR 4): the password and refresh grants, logout, the admin user calls, and — the part every request depends on — Verify, which decides whether an access token GoTrue minted is one muster will act on.
Package gotrue is muster's client for its own GoTrue instance (accounts PR 4): the password and refresh grants, logout, the admin user calls, and — the part every request depends on — Verify, which decides whether an access token GoTrue minted is one muster will act on.
gotrue/gotruetest
Package gotruetest is an in-memory GoTrue for muster's tests: the endpoints internal/gotrue calls, with the behaviours muster depends on modelled on the MEASURED behaviour of GoTrue v2.197.0 (see internal/gotrue's comments; the same probe run against v2.189.0 differed only where noted below).
Package gotruetest is an in-memory GoTrue for muster's tests: the endpoints internal/gotrue calls, with the behaviours muster depends on modelled on the MEASURED behaviour of GoTrue v2.197.0 (see internal/gotrue's comments; the same probe run against v2.189.0 differed only where noted below).
hermeshost
Package hermeshost is the host half of Hermes mirroring (docs/design/hermes.md, Phase 2): what muster-mirror reads from a Hermes home — the terminal breadcrumbs, the SQLite session store, the shell-hook allowlist — and the status files its own `muster-mirror hermes-hook` writes.
Package hermeshost is the host half of Hermes mirroring (docs/design/hermes.md, Phase 2): what muster-mirror reads from a Hermes home — the terminal breadcrumbs, the SQLite session store, the shell-hook allowlist — and the status files its own `muster-mirror hermes-hook` writes.
hermeshost/hermestest
Package hermestest builds fake Hermes homes for tests: a scratch directory holding a REAL SQLite state.db created from the schema Hermes itself creates at the pin (schema-5fc490e.sql: its triggers included, so an insert gets its display_order and message_uid the way Hermes's own do), in WAL mode with a writer connection held open the way a running gateway holds one, plus breadcrumbs and decoy secret files.
Package hermestest builds fake Hermes homes for tests: a scratch directory holding a REAL SQLite state.db created from the schema Hermes itself creates at the pin (schema-5fc490e.sql: its triggers included, so an insert gets its display_order and message_uid the way Hermes's own do), in WAL mode with a writer connection held open the way a running gateway holds one, plus breadcrumbs and decoy secret files.
jobs
Package jobs is the machine job API's record (migration 0037): one-shot jobs an external orchestrator submits — "run this prompt on this agent, optionally at this commit, and give me the result" — and reads back by id.
Package jobs is the machine job API's record (migration 0037): one-shot jobs an external orchestrator submits — "run this prompt on this agent, optionally at this commit, and give me the result" — and reads back by id.
llmproxy
Package llmproxy is muster's LLM proxy for officer instances: an Anthropic-Messages-shaped endpoint (POST /llm/v1/messages on the connect listener, internal/api) that a routine officer instance's Claude Code points ANTHROPIC_BASE_URL at, and that forwards to one provider (OpenRouter's Anthropic-compatible POST /api/v1/messages) with the officer's key.
Package llmproxy is muster's LLM proxy for officer instances: an Anthropic-Messages-shaped endpoint (POST /llm/v1/messages on the connect listener, internal/api) that a routine officer instance's Claude Code points ANTHROPIC_BASE_URL at, and that forwards to one provider (OpenRouter's Anthropic-compatible POST /api/v1/messages) with the officer's key.
memorelay
Package memorelay RELAYS cairn scope memos to dispatched agents: muster reads the live memos of the scopes its agents work on from a cairn memo listener, with ONE read-only credential, and hands each agent each memo once, as a turn through the agent's own gateway.
Package memorelay RELAYS cairn scope memos to dispatched agents: muster reads the live memos of the scopes its agents work on from a cairn memo listener, with ONE read-only credential, and hands each agent each memo once, as a turn through the agent's own gateway.
metrics
Package metrics holds muster's Prometheus instrumentation.
Package metrics holds muster's Prometheus instrumentation.
mirror
Package mirror is the server half of MIRRORED sessions: tmux sessions that live on an operator's own machines (a workstation, a laptop) and appear in muster's sidebar and session switcher beside its provisioned agents, so the list is complete.
Package mirror is the server half of MIRRORED sessions: tmux sessions that live on an operator's own machines (a workstation, a laptop) and appear in muster's sidebar and session switcher beside its provisioned agents, so the list is complete.
mirrorhost
Package mirrorhost is the HOST half of mirrored sessions: what `muster-mirror` runs on an operator's own machine.
Package mirrorhost is the HOST half of mirrored sessions: what `muster-mirror` runs on an operator's own machine.
mirrorpath
Package mirrorpath is where muster-mirror keeps its local files by default, as ONE rule that muster-mirror and `muster doctor` both call — so the doctor looks for the MCP endpoint's secret exactly where muster-mirror writes it, on Linux (XDG_CONFIG_HOME, else ~/.config) and on macOS (~/Library/Application Support) alike.
Package mirrorpath is where muster-mirror keeps its local files by default, as ONE rule that muster-mirror and `muster doctor` both call — so the doctor looks for the MCP endpoint's secret exactly where muster-mirror writes it, on Linux (XDG_CONFIG_HOME, else ~/.config) and on macOS (~/Library/Application Support) alike.
noredirect
Package noredirect is THE rule for an outbound HTTP client that carries a credential: it never follows a redirect.
Package noredirect is THE rule for an outbound HTTP client that carries a credential: it never follows a redirect.
notes
Package notes is the persistence domain for TASKS — the table is called `notes` and every id in it is a task number people cite, so the name is kept rather than migrated.
Package notes is the persistence domain for TASKS — the table is called `notes` and every id in it is a task number people cite, so the name is kept rather than migrated.
officers
Package officers is muster's officer RUNTIME: the long-lived, queue-driven agents whose durable identity, work queue and claim lock live in an HQ server (the "officers" contract), and whose running sessions — instances — muster provisions, wakes and scales to zero.
Package officers is muster's officer RUNTIME: the long-lived, queue-driven agents whose durable identity, work queue and claim lock live in an HQ server (the "officers" contract), and whose running sessions — instances — muster provisions, wakes and scales to zero.
officers/hqtest
Package hqtest is an in-process fake of the HQ officers API (the officers contract, v1), for tests in internal/officers and internal/api.
Package hqtest is an in-process fake of the HQ officers API (the officers contract, v1), for tests in internal/officers and internal/api.
officers/transcript
Package transcript forwards an officer instance's LIVE session transcript to HQ while the instance holds a claimed item (docs/officers.md, "Transcript to HQ"), so HQ's officer pages can show what the officer is doing.
Package transcript forwards an officer instance's LIVE session transcript to HQ while the instance holds a claimed item (docs/officers.md, "Transcript to HQ"), so HQ's officer pages can show what the officer is doing.
officership
Package officership is what lets an officer SHIP: push branches, merge its own pull requests and tag releases in one repository, with every write decided in muster-server (docs/officers.md "Shipping officers").
Package officership is what lets an officer SHIP: push branches, merge its own pull requests and tag releases in one repository, with every write decided in muster-server (docs/officers.md "Shipping officers").
opencodehost
Package opencodehost is muster-mirror's side of opencode v2's local server (docs/design/opencode.md): the pair token muster-mirror holds, the one client that reads the server's REST API and event stream with it, and the pairing step that mints the token in the first place.
Package opencodehost is muster-mirror's side of opencode v2's local server (docs/design/opencode.md): the pair token muster-mirror holds, the one client that reads the server's REST API and event stream with it, and the pairing step that mints the token in the first place.
opencodehost/opencodetest
Package opencodetest is a FAKE opencode v2 server for muster's tests and browser suite: the routes muster-mirror reads (shaped from upstream's packages/protocol/openapi.json at 6ec5682), HTTP Basic auth with user "opencode", and pair tokens signed the way upstream signs them (packages/server/src/auth.ts), so a token it issues has the real shape and lifetime.
Package opencodetest is a FAKE opencode v2 server for muster's tests and browser suite: the routes muster-mirror reads (shaped from upstream's packages/protocol/openapi.json at 6ec5682), HTTP Basic auth with user "opencode", and pair tokens signed the way upstream signs them (packages/server/src/auth.ts), so a token it issues has the real shape and lifetime.
pins
Package pins is the session switcher's pinned entries (migration 0017): per user, server-stored, so a pin follows its owner across devices.
Package pins is the session switcher's pinned entries (migration 0017): per user, server-stored, so a pin follows its owner across devices.
plugins
Package plugins is muster's PLUGIN INTERFACE: out-of-process connectors that bring inbound messages from some upstream system to their owner's chief agent.
Package plugins is muster's PLUGIN INTERFACE: out-of-process connectors that bring inbound messages from some upstream system to their owner's chief agent.
podagent
Package podagent is the part of an agent pod's in-pod supervisor that does not depend on which agent runtime the pod runs: muster's agent-facing routes as the pod reaches them, git's routing through muster's connector proxy, and the agent's repository checkout.
Package podagent is the part of an agent pod's in-pod supervisor that does not depend on which agent runtime the pod runs: muster's agent-facing routes as the pod reaches them, git's routing through muster's connector proxy, and the agent's repository checkout.
procstat
Package procstat parses /proc/<pid>/stat — the ONE parser muster-mirror has: the process table the locators and the paste guard read (internal/mirrorhost), and the Hermes hook's record of the gateway that ran it (cmd/muster-mirror).
Package procstat parses /proc/<pid>/stat — the ONE parser muster-mirror has: the process table the locators and the paste guard read (internal/mirrorhost), and the Hermes hook's record of the gateway that ran it (cmd/muster-mirror).
provision
Package provision is muster's pluggable provisioner contract: the seam between "an agent should exist, configured like this" and whatever actually runs it — a Kubernetes cluster, a container daemon, a process on the box.
Package provision is muster's pluggable provisioner contract: the seam between "an agent should exist, configured like this" and whatever actually runs it — a Kubernetes cluster, a container daemon, a process on the box.
provision/k8s
Package k8s provisions muster instances onto a Kubernetes cluster by rendering its own minimal manifests.
Package k8s provisions muster instances onto a Kubernetes cluster by rendering its own minimal manifests.
provision/provisiontest
Package provisiontest is the CONTRACT SUITE every muster provisioner driver must pass.
Package provisiontest is the CONTRACT SUITE every muster provisioner driver must pass.
prroute
Package prroute is deterministic PULL-REQUEST → SESSION routing's pure half: which pull request a review mail is about (ParseMail), and the shape of an authorship report (Signal) — which pull request a session created, or which branch it pushed — as a host's PostToolUse hook sends it to POST /api/pr-sessions (internal/api/pr_routes.go).
Package prroute is deterministic PULL-REQUEST → SESSION routing's pure half: which pull request a review mail is about (ParseMail), and the shape of an authorship report (Signal) — which pull request a session created, or which branch it pushed — as a host's PostToolUse hook sends it to POST /api/pr-sessions (internal/api/pr_routes.go).
push
Package push is muster's own Web Push: the VAPID identity, the per-owner subscription store (migration 0013, under row-level security), and the Service that delivers one owner's notification to that owner's devices and prunes the ones the push service reports gone.
Package push is muster's own Web Push: the VAPID identity, the per-owner subscription store (migration 0013, under row-level security), and the Service that delivers one owner's notification to that owner's devices and prunes the ones the push service reports gone.
recents
Package recents is the "recently viewed" entries (migration 0018) — the session switcher's Recent view, and where home goes with no chief: per user, server-stored, so they follow their owner across devices.
Package recents is the "recently viewed" entries (migration 0018) — the session switcher's Recent view, and where home goes with no chief: per user, server-stored, so they follow their owner across devices.
redact
Package redact is THE ONE secret redactor: what looks like a credential in a line of text an agent or a page will be shown is replaced by Mark.
Package redact is THE ONE secret redactor: what looks like a credential in a line of text an agent or a page will be shown is replaced by Mark.
router
Package router is muster's client for the permission router it was extracted from — the ONE place every outbound call to that service is spelled.
Package router is muster's client for the permission router it was extracted from — the ONE place every outbound call to that service is spelled.
searchrank
Package searchrank is how well a label matches what was typed into a search, as a TIER: the order the operator asked searches to list their matches in.
Package searchrank is how well a label matches what was typed into a search, as a TIER: the order the operator asked searches to list their matches in.
sendqueue
Package sendqueue is the SERVER-SIDE SEND QUEUE (migration 0019): messages a user queued for a mirrored Claude Code window, which the server sends ONE AT A TIME, each only once that window's Claude Code session has been idle for a while (Dispatcher).
Package sendqueue is the SERVER-SIDE SEND QUEUE (migration 0019): messages a user queued for a mirrored Claude Code window, which the server sends ONE AT A TIME, each only once that window's Claude Code session has been idle for a while (Dispatcher).
sessionstate
Package sessionstate is one code-computed state per session of an owner's — needs_you, stalled or working — and the EPISODES those states open: one row per stop of one session (docs/design/session-state.md).
Package sessionstate is one code-computed state per session of an owner's — needs_you, stalled or working — and the EPISODES those states open: one row per stop of one session (docs/design/session-state.md).
sse
Package sse implements a small Server-Sent Events broadcaster: subscribers register a channel FOR ONE USER, the broadcaster fans an Event out to the subscribers of the user who owns it, and subscribers unregister when done.
Package sse implements a small Server-Sent Events broadcaster: subscribers register a channel FOR ONE USER, the broadcaster fans an Event out to the subscribers of the user who owns it, and subscribers unregister when done.
stepup
Package stepup is the "prove it's you again" gate: an action that is worth more than an ordinary signed-in request — typing into a mirrored host's tmux, which is a shell on that host — needs a sign-in that happened RECENTLY, not merely a session that is still valid.
Package stepup is the "prove it's you again" gate: an action that is worth more than an ordinary signed-in request — typing into a mirrored host's tmux, which is a shell on that host — needs a sign-in that happened RECENTLY, not merely a session that is still valid.
stt
Package stt is muster's client for an OpenAI-style speech-to-text service: `POST /v1/audio/transcriptions`, a multipart body whose `file` part is the recording, authenticated with a bearer token.
Package stt is muster's client for an OpenAI-style speech-to-text service: `POST /v1/audio/transcriptions`, a multipart body whose `file` part is the recording, authenticated with a bearer token.
suggest
Package suggest is SUGGESTED REPLIES: up to three short drafts the operator can tap into a mirrored session's composer when the agent has handed control back ("Which do you prefer?", "Should I open the PR?").
Package suggest is SUGGESTED REPLIES: up to three short drafts the operator can tap into a mirrored session's composer when the agent has handed control back ("Which do you prefer?", "Should I open the PR?").
taskstatus
Package taskstatus is the SINGLE definition of a task's lifecycle vocabulary.
Package taskstatus is the SINGLE definition of a task's lifecycle vocabulary.
telemetry
Package telemetry is muster's tracing: OpenTelemetry spans for the server (muster-server) and the host agent (muster-mirror), exported over OTLP/HTTP, and the W3C trace context that joins them into one trace across the browser, the server and the mirror tunnel.
Package telemetry is muster's tracing: OpenTelemetry spans for the server (muster-server) and the host agent (muster-mirror), exported over OTLP/HTTP, and the W3C trace context that joins them into one trace across the browser, the server and the mirror tunnel.
termscreen
Package termscreen reads a tmux pane capture WITH its styles (`tmux capture-pane -p -e`) into rows of cells.
Package termscreen reads a tmux pane capture WITH its styles (`tmux capture-pane -p -e`) into rows of cells.
termsize
Package termsize is the ONE rule for how big a muster terminal's tmux client is, and the in-band report that tells the browser what was decided.
Package termsize is the ONE rule for how big a muster terminal's tmux client is, and the in-band report that tells the browser what was decided.
textplain
Package textplain turns a markdown-flavoured string into the plain text a reader of the rendered markdown would see, on one line.
Package textplain turns a markdown-flavoured string into the plain text a reader of the rendered markdown would see, on one line.
tmuxver
Package tmuxver reads tmux versions, for the decisions that depend on one: how muster-mirror pastes a picker's keys (internal/mirrorhost) and what `muster doctor` says about this machine's tmux (cmd/muster).
Package tmuxver reads tmux versions, for the decisions that depend on one: how muster-mirror pastes a picker's keys (internal/mirrorhost) and what `muster doctor` says about this machine's tmux (cmd/muster).
ui
Package ui renders the muster web UI with gomponents.
Package ui renders the muster web UI with gomponents.
uploads
Package uploads is the message composer's file attachments (migration 0024): a file the operator attaches is stored in an S3-compatible object store (e.g.
Package uploads is the message composer's file attachments (migration 0024): a file the operator attaches is stored in an S3-compatible object store (e.g.
uploads/uploadstest
Package uploadstest is in-memory fakes of internal/uploads' two ports — the row store and the object store — for tests that drive the upload routes without Postgres or an S3 server.
Package uploadstest is in-memory fakes of internal/uploads' two ports — the row store and the object store — for tests that drive the upload routes without Postgres or an S3 server.
users
Package users is muster's account store: the `users` and `invites` tables (migration 0006).
Package users is muster's account store: the `users` and `invites` tables (migration 0006).
Package web holds the files muster serves under /static/, plus the two root-scoped PWA documents (/sw.js and /manifest.webmanifest).
Package web holds the files muster serves under /static/, plus the two root-scoped PWA documents (/sw.js and /manifest.webmanifest).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL