CLI: mux
npx cyberlegion mux <doctor|mode> ...mux is the unit-agnostic pane layer: detection and diagnostics for the multiplexer (tmux or
herdr) a unit might be running under. It carries zero unit knowledge; see Architecture: Two
layers. Only doctor and mode surface to
a user. Everything else in the mux layer is internal, composed by the unit/mail/attach
commands.
doctor
Section titled “doctor”npx cyberlegion mux doctorProbe harness, multiplexer (ancestry-discovered), hub root, and self-id. Output: harness, mux,
pane, via, hubRoot, selfId. When a multiplexer is found, suggests exporting
CYBER_MUX/CYBER_MUX_PANE to pin the fast path and skip ancestry discovery on later calls.
This is the first command the init-cyberlegion skill runs, and the
one dispatch-governance runs to check whether a channel dispatch strategy (a live peer pane)
is even available.
npx cyberlegion mux modeReport the detected session-backend mode. Output: mode, the detected adapter name, or none
when no multiplexer is detected.
Related
Section titled “Related”- Architecture: the mux/legion layer split and the mux plane’s authority
- CLI: attach: binds a pane this layer can locate
- Skill: init-cyberlegion: runs
mux doctoras its first onboarding step