internal/

directory
v0.281.0 Latest Latest
Warning

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

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

Directories

Path Synopsis
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.
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.
Package agentoutcome decides how a started agent's work ENDED: done, failed or stuck — never silently "running" (docs/provisioner.md, "How an agent's work ends").
Package agentoutcome decides how a started agent's work ENDED: done, failed or stuck — never silently "running" (docs/provisioner.md, "How an agent's work ends").
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.
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.
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.
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.
Package agentspec builds a provision.Spec from an agent row.
Package agentspec builds a provision.Spec from an agent row.
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.
This file holds the single place a route may be registered.
This file holds the single place a route may be registered.
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).
Package askattach is how a file an agent names reaches an attention ask (docs/attention.md "Attachments and context"): the bounds every hop shares, the types an ask may carry, and the client that sends one workspace file to muster's upload store from where the file is.
Package askattach is how a file an agent names reaches an attention ask (docs/attention.md "Attachments and context"): the bounds every hop shares, the types an ask may carry, and the client that sends one workspace file to muster's upload store from where the file is.
Package askattempt is the answer-attempt log: one row (table ask_attempts, migration 0113) for every Submit or Dismiss of a question card — a mirrored Claude Code AskUserQuestion picker, or an opencode question or permission request — from every door that answers one, with how it ended and why (docs/mirroring.md#answer-attempts).
Package askattempt is the answer-attempt log: one row (table ask_attempts, migration 0113) for every Submit or Dismiss of a question card — a mirrored Claude Code AskUserQuestion picker, or an opencode question or permission request — from every door that answers one, with how it ended and why (docs/mirroring.md#answer-attempts).
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.
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.
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.
Package asklog is the ask log: one row (table asks, migration 0089) for every question an agent put to its owner, whatever kind it was, with the answer the owner gave, who gave it and how long it took.
Package asklog is the ask log: one row (table asks, migration 0089) for every question an agent put to its owner, whatever kind it was, with the answer the owner gave, who gave it and how long it took.
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.
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.
Package attemptcode is a team host's ATTEMPT CODE (team sharing 2b.2 follow-up; internal/mirror's teamhold.go): drawn by muster-mirror, checked by the hub, shown by `muster doctor`.
Package attemptcode is a team host's ATTEMPT CODE (team sharing 2b.2 follow-up; internal/mirror's teamhold.go): drawn by muster-mirror, checked by the hub, shown by `muster doctor`.
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.
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:
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.
Package branding is the instance's logo and display name: what an admin uploads on the Account page (docs/branding.md), the images muster serves from /brand/, and the row that keeps them (migration 0105, instance_branding).
Package branding is the instance's logo and display name: what an admin uploads on the Account page (docs/branding.md), the images muster serves from /brand/, and the row that keeps them (migration 0105, instance_branding).
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.
Package ccfailover is per-agent Claude ACCOUNT FAILOVER: when a turn on a claude-code agent fails on its account's usage limit 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 on its account's usage limit 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 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.
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).
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").
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.
Package ccusage reads each pooled Claude account's SUBSCRIPTION UTILIZATION — the numbers Claude Code's `/usage` screen shows (the 5-hour session window, the 7-day window, and the per-model windows when the account has them) — and keeps the latest reading per (owner, account), numbers only.
Package ccusage reads each pooled Claude account's SUBSCRIPTION UTILIZATION — the numbers Claude Code's `/usage` screen shows (the 5-hour session window, the 7-day window, and the per-model windows when the account has them) — and keeps the latest reading per (owner, account), numbers only.
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).
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).
Package chiefusage is muster's record of what the owner's CHIEF costs and what it is spared (migration 0107; docs/usage.md):
Package chiefusage is muster's record of what the owner's CHIEF costs and what it is spared (migration 0107; docs/usage.md):
Package cichecks is THE ONE reading of a commit's CI: its commit statuses and its check runs, judged by name.
Package cichecks is THE ONE reading of a commit's CI: its commit statuses and its check runs, judged by name.
Package clientaddr is the ONE reading of "which address is this request from".
Package clientaddr is the ONE reading of "which address is this request from".
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.
Package consumerusage pushes the Claude usage of a NON-officer muster's agent instances — a muster running PR-review lanes, say — to HQ, per (session, UTC hour, pool account), labelled with the muster's CONSUMER, so HQ can split each pooled account's spend into officers, the consumers that push here, and everything else (docs/officers.md, "Consumer usage to HQ").
Package consumerusage pushes the Claude usage of a NON-officer muster's agent instances — a muster running PR-review lanes, say — to HQ, per (session, UTC hour, pool account), labelled with the muster's CONSUMER, so HQ can split each pooled account's spend into officers, the consumers that push here, and everything else (docs/officers.md, "Consumer usage to HQ").
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).
Package cronspec is muster's ONE cron grammar: the five-field UTC expression a builtin officer's schedule (internal/officers/builtin) and a scheduled host job (internal/hostjobs, docs/host-jobs.md) both take, so the two cannot disagree about what an expression means.
Package cronspec is muster's ONE cron grammar: the five-field UTC expression a builtin officer's schedule (internal/officers/builtin) and a scheduled host job (internal/hostjobs, docs/host-jobs.md) both take, so the two cannot disagree about what an expression means.
Package db opens muster's Postgres pool and applies its migrations.
Package db opens muster's Postgres pool and applies its migrations.
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.
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").
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).
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.
Package fleet is the chief's view of its owner's whole fleet: each session's fleet state, the digest's groups (docs/chief.md "Fleet digest"), and the digest's marks (migration 0147, store.go).
Package fleet is the chief's view of its owner's whole fleet: each session's fleet state, the digest's groups (docs/chief.md "Fleet digest"), and the digest's marks (migration 0147, store.go).
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.
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.
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.
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.
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.
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).
Package hostjobs is the store of SCHEDULED HOST JOBS (migration 0166; docs/host-jobs.md): each job as its host last reported it, its cron's next fire, and its runs.
Package hostjobs is the store of SCHEDULED HOST JOBS (migration 0166; docs/host-jobs.md): each job as its host last reported it, its cron's next fire, and its runs.
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.
Package kuberead is officer_kube_read's engine: one typed, read-only request against a named cluster's API server, run by muster-server itself (docs/officers.md "Reading a cluster: officer_kube_read").
Package kuberead is officer_kube_read's engine: one typed, read-only request against a named cluster's API server, run by muster-server itself (docs/officers.md "Reading a cluster: officer_kube_read").
Package limitpark tells a STALE usage-limit menu from a live one.
Package limitpark tells a STALE usage-limit menu from a live one.
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.
Package loopback is THE rule for "this address is this machine": the one predicate every part of muster uses to treat plain http to the loopback interface as safe to use, and nothing else.
Package loopback is THE rule for "this address is this machine": the one predicate every part of muster uses to treat plain http to the loopback interface as safe to use, and nothing else.
Package mdfence lists the fenced code blocks of a Markdown message, in order: what the chief's session_context names a message's blocks by (docs/design/chief-in-agent-view.md, 4.1), so a kickoff written as one block (the handoff skill's) can be named {ref, block: k} instead of being copied.
Package mdfence lists the fenced code blocks of a Markdown message, in order: what the chief's session_context names a message's blocks by (docs/design/chief-in-agent-view.md, 4.1), so a kickoff written as one block (the handoff skill's) can be named {ref, block: k} instead of being copied.
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.
Package metrics holds muster's Prometheus instrumentation.
Package metrics holds muster's Prometheus instrumentation.
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.
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.
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.
Package morning is the morning report: one push a day, at a fixed local time, saying what happened while the owner was away, and the page it opens (docs/features.md#morning-report).
Package morning is the morning report: one push a day, at a fixed local time, saying what happened while the owner was away, and the page it opens (docs/features.md#morning-report).
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.
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.
Package notifypref stores each user's notification preferences (migration 0094, notify_preferences).
Package notifypref stores each user's notification preferences (migration 0094, notify_preferences).
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.
backendtest
Package backendtest is the officer-backend conformance suite (officer-backend/v1, docs/design/officers-first-class.md): the lease, queue, tier and refusal rules every officers.Backend must keep, as named checks over a small World.
Package backendtest is the officer-backend conformance suite (officer-backend/v1, docs/design/officers-first-class.md): the lease, queue, tier and refusal rules every officers.Backend must keep, as named checks over a small World.
builtin
Package builtin is the built-in officer backend: officer-backend/v1 (officers.Backend) kept in muster's own Postgres (migration 0118), so a deployment can run officers with no external HQ (docs/design/officers-first-class.md).
Package builtin is the built-in officer backend: officer-backend/v1 (officers.Backend) kept in muster's own Postgres (migration 0118), so a deployment can run officers with no external HQ (docs/design/officers-first-class.md).
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.
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.
usage
Package usage pushes each officer instance's Claude usage — API calls, tokens and turns per session and UTC hour — to the officer's HQ (docs/officers.md, "Claude usage to HQ").
Package usage pushes each officer instance's Claude usage — API calls, tokens and turns per session and UTC hour — to the officer's HQ (docs/officers.md, "Claude usage to HQ").
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").
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.
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.
Package pages is shareable pages (migration 0116; docs/pages.md, design docs/design/pages.md): a page an agent writes for its owner, its immutable versions, the share links that let someone without a muster account open it, and what those viewers send back.
Package pages is shareable pages (migration 0116; docs/pages.md, design docs/design/pages.md): a page an agent writes for its owner, its immutable versions, the share links that let someone without a muster account open it, and what those viewers send back.
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.
Package plainscan holds the scans the plain-UI guards share (the operator rule: muster is for people who are not engineers, so its own chrome shows no address, flag, variable, command or jargon in its top layer).
Package plainscan holds the scans the plain-UI guards share (the operator rule: muster is for people who are not engineers, so its own chrome shows no address, flag, variable, command or jargon in its top layer).
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.
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.
preview
tunnel
Package tunnel is the preview tunnel's transport: one WebSocket from a host to the gateway, carrying HTTP/2 with the roles reversed — the host runs the HTTP/2 SERVER (Serve), the gateway holds the CLIENT (NewClient) and opens one CONNECT stream per upstream TCP connection (Client.Dial).
Package tunnel is the preview tunnel's transport: one WebSocket from a host to the gateway, carrying HTTP/2 with the roles reversed — the host runs the HTTP/2 SERVER (Serve), the gateway holds the CLIENT (NewClient) and opens one CONNECT stream per upstream TCP connection (Client.Dial).
wire
Package wire is the preview tunnel's protocol, shared by the gateway (cmd/muster-preview), the host (muster-mirror -preview) and, in phase 2, an agent pod's gate, so the three cannot disagree about it.
Package wire is the preview tunnel's protocol, shared by the gateway (cmd/muster-preview), the host (muster-mirror -preview) and, in phase 2, an agent pod's gate, so the three cannot disagree about it.
Package previewgw is the preview gateway (cmd/muster-preview): it accepts hosts' preview tunnels on two listeners, checks their host tokens, keeps one tunnel per (owner, host), reads each tunnel's offer stream into memory, and asks muster every minute whether each owner's plugin token still holds the viewer capability.
Package previewgw is the preview gateway (cmd/muster-preview): it accepts hosts' preview tunnels on two listeners, checks their host tokens, keeps one tunnel per (owner, host), reads each tunnel's offer stream into memory, and asks muster every minute whether each owner's plugin token still holds the viewer capability.
Package previewhost is muster-mirror's half of previews: serving a loopback web server an agent started on this host to its owner, through the preview gateway (docs/design/previews.md).
Package previewhost is muster-mirror's half of previews: serving a loopback web server an agent started on this host to its owner, through the preview gateway (docs/design/previews.md).
Package procstat parses /proc/<pid>/stat — the ONE parser muster-mirror has: the process table the locators and the paste guard read (internal/mirrorhost).
Package procstat parses /proc/<pid>/stat — the ONE parser muster-mirror has: the process table the locators and the paste guard read (internal/mirrorhost).
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.
compose
Package compose is the provisioner driver for the chief on the public `docker compose` install: a container the Compose file declares (the `chief` service, `--profile chief`), configured by FILES this driver writes into a named volume the two containers share.
Package compose is the provisioner driver for the chief on the public `docker compose` install: a container the Compose file declares (the `chief` service, `--profile chief`), configured by FILES this driver writes into a named volume the two containers share.
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.
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.
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).
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.
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.
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.
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.
Package safedial is THE rule for "may muster-server open a connection to this address": one predicate over a resolved IP (Guard.Allowed) and one dialer that applies it at connect time (Guard.DialContext).
Package safedial is THE rule for "may muster-server open a connection to this address": one predicate over a resolved IP (Guard.Allowed) and one dialer that applies it at connect time (Guard.DialContext).
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.
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).
Package sessionname is THE RULE for what a session is called: one stable, human name for a dispatched agent or a mirrored Claude Code / opencode session, the same on every surface that names it — its sidebar row and switcher pill, its page's header and <title>, the terminal page, a push, an attention item, a dispatch card, and every chief tool that lists or names sessions (docs/focus.md#a-sessions-name).
Package sessionname is THE RULE for what a session is called: one stable, human name for a dispatched agent or a mirrored Claude Code / opencode session, the same on every surface that names it — its sidebar row and switcher pill, its page's header and <title>, the terminal page, a push, an attention item, a dispatch card, and every chief tool that lists or names sessions (docs/focus.md#a-sessions-name).
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).
Package sessiontags is the labels a user puts on a session (migration session_tags): per user, server-stored, and private — like pins and recents.
Package sessiontags is the labels a user puts on a session (migration session_tags): per user, server-stored, and private — like pins and recents.
Package sessionwake is the store of the lines muster owes a MIRRORED Claude Code session because its owner decided something the session was waiting on (migration 0177, session_wakes; docs/attention.md "Delivery"): an ask it raised was answered or dismissed, a reply draft it wrote was decided and later sent or not, or a page it made got a response — and (migration 0178) work it ASKED for: an officer's draft for an item it enqueued was decided and later sent or not, or a step-up card its call raised was settled.
Package sessionwake is the store of the lines muster owes a MIRRORED Claude Code session because its owner decided something the session was waiting on (migration 0177, session_wakes; docs/attention.md "Delivery"): an ask it raised was answered or dismissed, a reply draft it wrote was decided and later sent or not, or a page it made got a response — and (migration 0178) work it ASKED for: an officer's draft for an item it enqueued was decided and later sent or not, or a step-up card its call raised was settled.
Package signinreq is the store behind "Sign in with the muster app" (migration 0174; docs/design/qr-sign-in.md): a signed-out browser starts a REQUEST and shows its code as a QR; a phone already signed in to muster opens the code, is shown the request's details and approves or denies it; the browser that started it redeems the approval for a session of the approver.
Package signinreq is the store behind "Sign in with the muster app" (migration 0174; docs/design/qr-sign-in.md): a signed-out browser starts a REQUEST and shows its code as a QR; a phone already signed in to muster opens the code, is shown the request's details and approves or denies it; the browser that started it redeems the approval for a session of the approver.
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.
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.
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.
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?").
Package taskstatus is the SINGLE definition of a task's lifecycle vocabulary.
Package taskstatus is the SINGLE definition of a task's lifecycle vocabulary.
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.
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.
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.
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.
Package theme is the server's THEME: muster's palette as named tokens, the presets an admin picks from, an optional accent colour of the admin's own, and the contrast table every theme must pass before it is saved (docs/ui-kit.md#the-theme).
Package theme is the server's THEME: muster's palette as named tokens, the presets an admin picks from, an optional accent colour of the admin's own, and the contrast table every theme must pass before it is saved (docs/ui-kit.md#the-theme).
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).
Package ui renders the muster web UI with gomponents.
Package ui renders the muster web UI with gomponents.
Package uikit builds the plugin UI kit muster serves at /ui-kit/v1/ (docs/ui-kit.md): kit.css, theme.css, icons.svg and kit.js.
Package uikit builds the plugin UI kit muster serves at /ui-kit/v1/ (docs/ui-kit.md): kit.css, theme.css, icons.svg and kit.js.
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.
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.
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 workspacefile confines a path an agent names to the directory it works in: THE ONE rule every caller that reads an agent-named file off a filesystem muster-server cannot see applies — an officer pod's ask image (internal/podagent, `ccd ask-image`), a dispatched pod's ask attachment (`ccd ask-attach`) and a mirrored session's attention_ask attachments (internal/mirrorhost's MCP proxy, against the session's working directory).
Package workspacefile confines a path an agent names to the directory it works in: THE ONE rule every caller that reads an agent-named file off a filesystem muster-server cannot see applies — an officer pod's ask image (internal/podagent, `ccd ask-image`), a dispatched pod's ask attachment (`ccd ask-attach`) and a mirrored session's attention_ask attachments (internal/mirrorhost's MCP proxy, against the session's working directory).

Jump to

Keyboard shortcuts

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