Expand description
Reading an instance’s /agentmux/reactive/agent-names answer: the names a
LAN peer’s poll (and the Swarm’s ask of this machine’s other channels) list,
and each listed agent’s state and summary line, for the Swarm’s remote rows
(SPEC_SWARM_OTHER_HOSTS_AND_CHANNELS_2026_10_02.md §3.4 Phase 4).
Structs§
- Peer
Agents 🔒 - What an instance’s
/agentmux/reactive/agent-namesanswer says about its agents.
Functions§
- apply_
agent_ 🔒names_ poll - Applies one poll of a peer’s
agent-namesroute to its entry, and says whether what the frontend shows changed. A failed poll keeps the last-known names, since a flapping list is worse than a slightly old one, but clears the states and lines: mDNS can keep the peer looking fresh long after it stopped answering, and its last “working” would otherwise show indefinitely (#4703). - parse_
agent_ 🔒names_ body - Reads an
agent-namesbody: the names, capped as above, and each listed agent’s state fromagent_status({name: {state, since_ms}}). A state for a name the body doesn’t list, or one this build doesn’t know, is dropped, so the map is never larger than the name list. The same goes foragent_lines({name: line}). A body from a build beforeagent_statusgives names only.