Mux Server Federation
206 words1 min read3 subsectionsFrom the README at ft 0.15.21
frankenterm-mux-server is the headless mux daemon. frankenterm-mux-server-impl houses the shared implementation. Together they enable federated multi-host setups where one operator runs the GUI / Robot Mode and remote hosts run the mux + agents.
Federation primitives
- Command transport — typed scope + kind enums (
CommandScope,CommandKind), with deduplication on the wire (CommandDeduplicator) to avoid double-execution under retry. - Topology orchestrator — layout templates + template registry; the orchestrator decides where to place new panes based on the registered topology spec.
- In-process federation checkpoints —
DurableStateManagerkeeps bounded lifecycle-registry checkpoints and optional topology in memory for rollback and diff operations. It can encode/decode checkpoint JSON, but no production disk writer/loader is wired, and it does not preserve terminal bytes, PTYs, or child processes. - Federation router — outbound mux events are routed to the right federated participant; inbound events are stamped with origin metadata.
Why a separate headless server
Some operators want to run ft watch and ft robot from a laptop while the agent fleet lives on a beefier remote box. The headless mux server provides the mux + PTY layer remotely; ft on the laptop talks to it over a connection (loopback in the local case; TLS-secured in the remote case).
Operator topology
Operator workstation Remote agent host
┌──────────────────────────────┐ ┌────────────────────────────┐
│ ft (GUI / Robot Mode) │ ◄──────────── │ frankenterm-mux-server │
│ ft watch (capture/store) │ loopback / │ agent panes (codex/cc/…) │
│ SQLite + FTS5 + Tantivy │ TLS │ pty layer │
└──────────────────────────────┘ └────────────────────────────┘
For wider topologies (one operator, many remote hosts), see Secure Distributed Mode.