Expand description
The server’s core: everything that does not name the server layer (server, sagas, drone,
messaging, bootstrap, config, headless, open_cli, which are the agentmux-srv package in
crates/srv). It is its own package, so the server layer’s tests and the core’s tests are
type-checked apart; the server reaches these modules through the use agentmux_srv_core::... lines
at the top of its main.rs.
Modules§
- adoption
- Carry what channels kept to themselves into the shared store.
- agents
- Unified agent runner — single entry point for spawning Claude Code (or any future provider) used by BOTH the interactive agent pane and the headless drone Agent block.
- ambient
- Ambient Model Call (AMC) gateway — the single mandatory path for every
non-user-driven (“ambient”) model call in the backend: cheap, background
LLM calls that augment the UX (e.g. summarizing what an agent is doing
for the pane header / Swarm tree) rather than answering a user’s own
turn. See
docs/specs/SPEC_AMBIENT_MODEL_CALLS_FRAMEWORK_2026_07_03.md. - backend
- boot_
timing - Per-step timing for srv’s boot path, logged once as a single summary line
when
AGENTMUXSRV-ESTARTis emitted. - broker
- This module hosts two independent brokers, sharing this top-level
namespace deliberately: “broker” is this codebase’s general name for
“the one place that owns a fragmented concern and mediates access to
it,” applied twice on purpose, not a coincidence of naming.
broker::processis the second application of that pattern, perdocs/specs/REPORT_PROCESS_ARCHITECTURE_STATE_AND_RETHINK_2026_07_22.md’s §6.6 — see that module’s own doc comment for its scope. - connectivity
- Whether each service AgentMux depends on can be reached (docs/specs/SPEC_OFFLINE_RESILIENCE_2026_10_20.md §4.1).
- event_
log - http_
client - The one place srv builds an HTTP client.
- identity
- Identity injection at agent CLI spawn time.
- migrations
- Data migration framework.
- muxbus
- persist
- persist_
subscriber - reducer
- registry
- Shared, cross-version named-agent registry. File-per-agent JSON
tree at
<shared_home>/agents/registry/. Seedocs/specs/SPEC_SHARED_AGENT_REGISTRY_2026_05_12.md. - srv_
info - What srv tells a UI about the machine it runs on: sent as the
srvinfoevent on every WebSocket connect (server/websocket.rs). A UI shows these names and builds paths from the home directory, and the paths have to be srv’s, which is only the same machine as the UI’s when the UI is the desktop app. - state
- util
- Small OS-level helpers shared across backend modules.