Expand description
MuxAPI — high-level commands for programmatic control of AgentMux.
These commands orchestrate multiple low-level operations (CreateBlock, SetMeta, ControllerResync) behind stable, intent-based interfaces. Callers express what they want (“open an agent pane with AgentX”), not how to do it.
Re-exports§
pub use pane::open_pane;pub use agent_define::allocate_agent_workdir;
Modules§
- agent_
attach 🔒 - agent_
block 🔒 - An agent’s block, found by the agent and not by a tab
(
docs/specs/SPEC_ALWAYS_AVAILABLE_AGENTS_2026_10_27.md§3.1, §3.3 rule 1): one block per agent, in a tab or parked in none. Everything that wants “the agent’s pane” asks here instead of scanning one tab, so a pane in another window, or none, is still found. - agent_
config_ 🔒render - agent_
context 🔒 Agents contextandAgents compact(docs/specs/SPEC_AGENT_SELF_COMPACTION_2026_10_23.md§3.3): an agent reads how full its own context is, and compacts itself when its turn ends.- agent_
define 🔒 - agent_
definition 🔒 Agents update,bundles,hideandunhide(POST /api/v1/agent/{update,bundles,hide,unhide}): an agent edits an agent’s definition, sets its Bundles list and hides or shows a picker template without the operator’s window, by the code the window’supdateagent,setagentbundlesandagentdefhide/agentdefunhiderun.- agent_
env 🔒 Agents env_getandAgents env_set: an agent, host or container, reads and edits the extra environment variables a definition launches with (itsenvcontent,backend::agent_env), its own or another’s. The change applies at that agent’s next launch.- agent_
export 🔒 Agents export(POST /api/v1/agent/export): one agent saved as a portable archive file (.abf, kindagent): its definition, Personal Memory and conversation in the history store’s compact form (SPEC_MOVE_AN_AGENT_TO_ANOTHER_COMPUTER section 4, step A of the build). The file is written as a stream, never held in memory and never base64.- agent_
handover 🔒 - The hand-over state of an agent that was saved to move (SPEC_MOVE_AN_AGENT_TO_ANOTHER_COMPUTER section 5, step C of the
build):
Agents bring_backclears the mark that keeps it from starting here,Agents move_statussays where it stands. - agent_
history_ 🔒reclaim App history_reclaim(GET/POST /api/v1/agent/history/reclaim): a host or container agent asks for the shared pane-history store’s free space to be given back at the next start, withdraws that request, or reads where it stands. The window does the same withhistory.reclaim(History > Storage); nothing in the request touches the host’s files from the agent’s side: srv writes the one marker beside its own store.- agent_
io 🔒 - agent_
lifecycle 🔒 Agents start,stop,detachanddelete(POST /api/v1/agent/{start,stop,detach,delete}): an agent runs, stops, leaves its pane or is deleted without the operator’s window (a stop of another agent keeps its override window) (docs/specs/SPEC_ALWAYS_AVAILABLE_AGENTS_2026_10_27.md §5.1). Each acts as the agent its token names; a request without one is refused, so a change is never attributed to the operator, and each one, and each refusal, is recorded in the audit log under the calling agent.- agent_
migrate_ 🔒ids - The
Agentsspawnaction’s route (SPEC_AGENT_WORKERS_2026_10_15.md).Agents migrate_ids(POST /api/v1/agent/migrate-ids): an agent runs the agent id update for the person, the same steps Settings › Agents › Outdated agent ids runs (agents.migrateForkSlugs,agent_handlers/fork_slugs.rs):planreads and changes nothing,stopasks every pane running an affected agent to stop (each with its user’s 30 s override, and the answer says how long to wait),applymigrates,rollbackundoes a run from its journal (always the latest finished run: an agent names no journal file). The caller is the agent its token names; a request without one is refused, so a change is never attributed to the operator. Every step butplanis recorded in the audit log under the calling agent’s slug. - agent_
model 🔒 - The composer’s model panel, srv’s half (
docs/specs/SPEC_AGENT_MODEL_ROUTES_ANY_MODEL_SPAWN_AND_SWITCH_2026_11_06.mdsection 7a).agent.model.panelsays what the panel may offer for a pane’s agent and what cannot be picked, with the reason;agent.model.switchis a person’s pick: it moves the agent to a model on a route, or back to the harness’s own sign-in, and restarts its panes so the next turn runs there. Both are the operator’s window only: the click is the approval of the spend, which an agent cannot give for itself. - agent_
move 🔒 Agents move(POST /api/v1/agent/move): one agent moved to another computer on the LAN, in one step (SPEC_MOVE_AN_AGENT_TO_ANOTHER_COMPUTER sections 5 and 6, step D of the build). This is the source’s side; the destination’s operations areremote_ops::move_ops.- agent_
mute_ 🔒quiet Agents mute_quiet(POST /api/v1/agent/mute-quiet): a leader tells the quiet watch that one of its agents will be quiet for a stated time (“building, back in 40 minutes”), so the watch neither nudges it nor tells anyone until that time is over (docs/specs/SPEC_LEADER_TOLD_WHEN_AN_AGENT_GOES_QUIET_2026_11_21.md §5). Only the agent’s lead may (the lead of its seat, which for a spawned worker is the agent that spawned it), never the agent itself (its own way isPresence statuswith statewaitinganduntil_minutes), and never without an agent token: the mute is recorded as the agent that asked, in the audit log, never as the operator. Zero minutes lifts a mute.- agent_
open 🔒 - agent_
open_ 🔒many POST /api/v1/agent/open_many, theAgentstool’sopenwithagents(SPEC_COUNTDOWN_BUTTONS_AND_BATCH_AGENT_ACTIONS_2026_10_28.md§5): several agents opened at once, with everything checked first. Opening asks the user nothing, as for one. The agents that are not running must be able to start together (room under the agent cap, without stopping anyone) or the call is refused whole; an open that still fails closes the panes this call made. An agent that was already open or parked is not put back as it was, and a pane the failing open itself half made is left to the ordinary close.- agent_
open_ 🔒remote agents.openfor an agent on another machine (remote_ops::agent_ops, spec §4.3): it opens the named agent into a tab of its own for the caller, “Team (slug@machine)”, made the first time and reused after, the way a leader’s workers open in “team” ( agent_spawn::team). The tab is made and the agent opened without focus, so the person’s view stays where it is: nothing is brought forward and no tab but this one changes. With no window open the tab goes in a workspace of its own, and the agent runs there until a window shows it.- agent_
open_ 🔒steps - The steps
agent.openruns in order, one function each.open_agent_inner(agent_open.rs) calls them; the code is moved from it unchanged. - agent_
own_ 🔒tab - An agent’s
pane.openreaches only panes in its own window tab (docs/specs/SPEC_DEEP_LINKS_ONE_FRAMEWORK_2026_11_20.md G3, D1). The pane it names to open beside (split_reference_block_id) or to stack onto (stack_onto_block_id) is a field of the request, so a pane in another tab is not reached: the open goes beside the agent’s own pane instead, and the answer says so. A tab named outright (tab_id) is not this rule’s: it is a tab of its own for the new pane. - agent_
quit 🔒 - Ending an agent from the person’s window:
/shutdownin its composer (agentquit) and Shut down in its pane menu or My agents (agentshutdown). Both are the person’s own choice, so only the AgentMux window makes them: an agent’s connection, or one that has not proven it is the window, is refused. An agent ends another withAgents stop, which gives the person time to keep it running; the generic service route does the same (service::object_methods). - agent_
reconcile 🔒 - One pane per agent, for the layouts that already hold more (task #5419). An older build, an import or a
restore can leave two panes of one agent. The one that keeps the agent is the one running it, else the
one it launched last (
super::agent_block::agent_blocks_by_uid); every other becomes a closed pane that says where the agent is and offers Go there and Move here (open_in_other_pane, the recovery the duplicate-pane spec built), so what a person types there is never taken in silence. - agent_
rename 🔒 Agents rename(POST /api/v1/agent/rename): an agent gives an agent on this machine a new displayed name, by the same path the window’s rename takes (agent_handlers::rename), so the pane, My Agents, the Swarm, message addressing, seats and the Kanban all follow. The agent’s id, slug, signing keys and workspace folder do not change: they are fixed when it launches. The old name keeps reaching it as a former name, and no other agent may take it.- agent_
rotate_ 🔒token Agents rotate_token(POST /api/v1/agent/rotate-token): an agent replaces the token of an agent on this machine. The token is part of the agent’s spawn environment, so the new one reaches the agent only through a restart; the old value stops working the moment the stored row is replaced (Store::agent_token_rotate).- agent_
routes 🔒 Agents routes(POST /api/v1/agent/routes): the model routes a caller may choose, one row per route with its models, prices and whether its key is in the Vault. Read-only, and open to every agent, container agents included (docs/specs/SPEC_AGENT_MODEL_ROUTES_ANY_MODEL_SPAWN_AND_SWITCH_2026_11_06.mdsection 5.1).- agent_
runtime_ 🔒pick modelandeffortofAgents updatefor a Claude agent that is not on a model route: the same runtime choice the pane’s picker makes (the Runtime menu,/model,/effort;frontend/app/view/agent/runtime-apply.ts), by an agent, on this machine or on another (host).- agent_
seats 🔒 Agents set_seat(POST /api/v1/agent/seats): an agent, host or container, sets or clears the seats of agents on this machine, several in one call (a whole roster). A seat is an agent’s role, who it reports to and what it owns (backend::agent_seat); the operator’s window sets one withagent.setSeat(agent_handlers/seat.rs), and an agent does it here.- agent_
spawn 🔒 POST /api/v1/agent/spawn, theAgentstool’sspawn(docs/specs/SPEC_AGENT_WORKERS_2026_10_15.md §3.1, Phase A): the calling agent, the leader, opens a worker: a new agent built from its own definition, on the model it names, in a pane to the right of its own. A worker is not a fork (the pane’s Fork, an exact copy that carries the conversation): it isn’t among the leader’s forks, and starts without the leader’s conversation or Personal Memory, with the leader’s definition (instructions, skills), Global Memory and, from the MCP server, the brief it is sent as the leader’s own message.- agent_
spend 🔒 - The pane card’s buttons for an agent that reached its daily spend cap (
agent.spend): raise the cap, or reset today’s figure (docs/specs/SPEC_ROUTE_AGENT_BRAKES_2026_11_10.mdsection 3.4). The operator’s window only: an agent usesAgents update spend_cap_usd, where a leader’s change is allowed and an agent’s own is lowered only. Each change is audited with the cap before and after. - agent_
tab_ 🔒default - Where a pane an agent opens goes when the agent does not say: a tab of its own pane group.
- agent_
watch 🔒 Agents watch(POST /api/v1/agent/watch): replay the recent transcript of an agent, then tail it, for a leader that supervises a worker without opening a pane (docs/specs/SPEC_ALWAYS_AVAILABLE_AGENTS_2026_10_27.md §5.1). It reads the same output file a pane reads, by the agent’s block, so an agent with no pane (parked, or stopped) can be watched too.- app_
update 🔒 app.update-status: what srv knows about newer AgentMux releases (backend::update::check), for a window that opens after the lastapp:updatestatusevent. Downloading the release it found (backend::update::download), restarting into it once agents are idle and stopping that wait (backend::update::restart) are the user’s clicks only: they come through the host (POST /api/v1/host/app_update), which agents, holding the instance auth key, can’t impersonate.app.upgrade-requests: agents’ requests waiting for the user (backend::upgrade_request); the user’s answer comes only through the host (POST /api/v1/host/upgrade_request), which agents can’t impersonate. And the agent’s side over HTTP: theApptool’sversion(GET /api/v1/app/update-status) andupgrade(POST /api/v1/agent/self/upgrade).- attachments 🔒
attachments.ingest/attachments.cancel/attachments.info— image attachments in the agent composer (docs/specs/SPEC_AGENT_PANE_IMAGE_ATTACHMENTS_2026_09_26.md §6). The work itself lives inbackend::attachments; these only adapt it to the RPC engine. Typed registration, sofrontend/types/rpc/gets the bindings.- audit_
query 🔒 audit.query(backend::audit_query): a page of the Audit view’s list. The window’s, not an agent API: the Audit is the operator’s view of every agent, so a connection registered as an agent is refused.- aws_
credentials 🔒 POST /api/v1/aws/credentials: the AWS credentials a container agent’s SDK gets throughcredential_process. Spec: docs/specs/SPEC_CONTAINER_AGENT_AWS_CREDENTIALS_2026_10_31.md §5.- aws_
grants 🔒 - The AWS grants a host shares with its container agents, as the broker has them:
GET /api/v1/aws/grantslists each grant with whether it is in force, when it was added and by which recorded change, andPOST /api/v1/aws/grants/decideanswers a grant that is new or wider than what was allowed (identity::aws_broker::record). - blockfile 🔒
- blockstats 🔒
blockstats.detail: a terminal’s stats badge and its tooltip (backend::blockstats_detail). The window’s, not an agent API: a connection registered as an agent is refused.- bookmarks 🔒
bookmarks.list/bookmarks.set— the browser pane’s saved-URL list. Deliberately a thin wrapper overbackend::bookmarks_store: noStore/ sqlite involvement, no per-agent scoping — seedocs/specs/SPEC_BROWSER_PANE_BOOKMARKS_AND_GO_ICON_2026_08_22.mdfor why this is a dedicatedshared_dirfile instead of the ABF/db_bundlespattern the rest of this directory mostly follows.- browser_
grants 🔒 browsergrants.*: the person’s standing browser grants (docs/specs/SPEC_BROWSER_WEB_TERMINAL_TYPING_2026_10_23.md §3), for the Settings screen: list them with the presets, give an agent powers on a site, switch a console preset on, change a grant’s powers, revoke one.- browser_
profiles 🔒 browser_profiles.list/.create/.update/.delete: the named browser profiles (docs/specs/SPEC_BROWSER_PANE_PROFILES_MENU_2026_10_09.md §3, §6), ashared_dirfile like the bookmarks. Deleting a profile closes its open tabs first, then the host drops its jar and its folder on the next owned-pane push. Only the window changes profiles: a connection registered as an agent may list them, never create, change or delete one.- browser_
start_ 🔒page browser_start_page.set— the browser pane’s configured start page. Write-only: the read side isGetFullConfig’sbrowserstartpagefield (crates/srv-core/src/backend/wconfig/types.rs), not a matching.gethere — seedocs/specs/SPEC_BROWSER_PANE_START_PAGE_2026_09_16.md§3.1 for why. Deliberately its own file rather than folded intobookmarks.rs: unlike bookmarks, this handler needsAppState’sconfig_watcher/event_busto update the live config and broadcast immediately, the same shapeCOMMAND_SET_CONFIGalready has (server/websocket.rs).- bundle 🔒
bundle.*MuxAPI handlers — the Armory Bundle Format (ABF) surface.- client_
terms 🔒 - Accepting the terms (
client.agreetos). It is the person’s own agreement, so only the AgentMux window makes it: an agent’s connection, or one that has not proven it is the window, is refused. The generic service route refuses it too (service::client), since a request on it cannot prove who made it. - connections 🔒
- The connection RPCs the frontend’s connection UI already calls
(
conntypeahead.tsx,blockframe.tsx’sConnStatusOverlay), which had no handler until now (P0 of SPEC_REMOTE_TERMINALS_AND_DURABLE_SESSIONS_2026_10_02.md). - connectivity 🔒
connectivity.status: each service’s reachability (connectivity), for a window that opens after the lastconnectivity:changedevent.- container_
caches 🔒 - A container agent’s cache volumes (a developer agent’s cargo registry and build output): how much they hold, and
clearing them.
Agents container_caches(POST /api/v1/agent/container/caches), and the window’sgetcontainercaches/clearcontainercaches, which shareviewandclear.docs/specs/SPEC_CONTAINER_AGENT_DEVELOPER_IMAGE_2026_10_29.mdsection 5. - container_
limits 🔒 - A container agent’s CPU and memory limits:
Agents set_container_limits(POST /api/v1/agent/container/limits), and the window’sagent.getContainerLimits/agent.setContainerLimits, which shareviewandset.docs/specs/SPEC_CONTAINER_AGENT_RESOURCE_LIMITS_2026_10_29.md§3, §4. - container_
update 🔒 - A container agent whose container runs an older agent image than this AgentMux: telling its
pane once, and updating the container when asked (a button in the pane, or
Agents update_container). Seebackend::container::driftfor what an update does.Agents update_containerwith acontainer_imagealso changes which of the two shipped images the agent runs. - desktop 🔒
- The routes behind
Desktop(docs/specs/SPEC_DESKTOP_DRIVING_2026_10_20.md §5.4–5.10, §6). srv is the single gate: the MCP tool asksauthorizebefore it looks at or touches a native app, and srv answers from the grants, the blocklist, the limits and the Stop flag inbackend::desktop_gate. The user’s answers (a prompt, Stop) come only through the host (/api/v1/host/desktop_request,/desktop_stop), which agents can’t impersonate. - desktop_
group 🔒 - Several apps asked for in one
Desktopcall. Each app is still its own sensitive request, with its own card, countdown, veto and grant, and nothing about one decides another. What the group changes is only what the agent is told: the notes for the requests of one call are held, and when every one has ended the agent gets a single note naming each app as allowed, declined, vetoed or not decided. - dev_
server 🔒 POST /api/v1/agent/dev_server/register— backs theRegisterDevServerMCP tool. See docs/specs/SPEC_NATIVE_CONTAINER_DEV_PROXY_2026_09_19.md.- dream_
exec 🔒 - Apply, reject and revert a personal-memory dream (docs/specs/SPEC_DREAMS_BACKGROUND_MEMORY_ORGANIZING_2026_11_27.md
§2.6, §9; build step 3). The plan, what each file must be like and what to do to it, is
memory::dream_apply; this runs it. - dream_
run 🔒 - Queueing and running a personal-memory dream (docs/specs/SPEC_DREAMS_BACKGROUND_MEMORY_ORGANIZING_2026_11_27.md
§3, §5, §10 step 2):
queue_dreamadds one to the record,run_nexttakes the queued dream the schedule says may run now and runs one pass over the agent’s memory files, andstart_loopcalls it once a minute. - editor_
pick 🔒 - Which Editor pane an agent’s open goes into, when a tab has several.
- fleet 🔒
- Fleet control — select, broadcast, and bulk-act on many agents at once. See docs/specs/SPEC_MULTI_AGENT_FLEET_CONTROL_2026_08_20.md.
- fleet_
check_ 🔒limits fleet.check-limits: look again, now, at agents marked out of quota (task #2648). The Swarm’s “Check now” calls it. Open to an agent as well as the window: it sends nothing in anyone’s name, it starts a small turn on each limited agent (limit_probe::check_limited).- fleet_
forward 🔒 - The receiving end of a Swarm broadcast forwarded between channels of one install, and the confirmation that decides how it is delivered.
- fleet_
pacing 🔒 - When each delivery of a broadcast starts (
fleet::fleet_broadcast_impl). - fleet_
result 🔒 - What a broadcast reports per target (
fleet::fleet_broadcast_impl): delivered, kept for an agent out of quota (person_hold), or failed. Each is recorded in the audit log as it happened. - floater_
place 🔒 - What an agent asked for a floating pane, checked here, resolved by the window (docs/specs/SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §2.1, §3).
- folder_
overlap 🔒 - A host agent that shares a folder with a container agent: which container agents, and the person going ahead
with one (
backend::folder_overlap). Anyone may ask which; only the AgentMux window goes ahead or says no to an agent’s ask for the go-ahead (folder_overlap_ask). A caller that is not the window, an agent’s connection or one that has not proven it is the window, is refused with what to do instead. Each answer is recorded as the person’s. - folder_
overlap_ 🔒ask Agents ask_go_ahead(POST /api/v1/agent/folder-overlap-ask): an agent that was refused for a host agent that shares a folder with a container agent asks the person to go ahead with that pair. srv keeps the ask (backend::folder_overlap_asks), the window shows it as a card in the asking agent’s pane, and the person answers with one click, which only their window can do (app_api::folder_overlap). Asking again says where the ask stands:askedwhile the person has not answered,chosenonce they went ahead,declinedafter a no.- github_
token 🔒 POST /api/v1/github/token: the GitHub token an agent’sgitandghuse.- global_
memory 🔒 - Global Memory MuxAPI bodies, moved out of app_api/mod.rs unchanged (SPEC_LARGE_FILE_MODULE_ANALYSIS_2026_09_30.md item 9).
- gpu_
panel 🔒 gpu.sample: the status bar’s GPU panel (backend::gpu; SPEC_STATUS_BAR_GPU_PANEL_2026_11_15.md).- history_
agents 🔒 - The History pane:
history.agentslists every agent whose history the global transcript store holds (backend::history_registry), andhistory.agent_sessionsone agent’s sessions from its record. The Agent History view’shistory.locatefinds the line to load up to for a time or a session’s end. The window’s, not agent APIs: a connection registered as an agent is refused. - history_
usage 🔒 history.usage: the history total in the status bar, and its panel. The window’s, not an agent API: a connection registered as an agent is refused. Measuring walks tens of thousands of files, so an answer is reused forFRESH_FORunless the request asks torefresh.- identity 🔒
- input_
history 🔒 agent.input-history*andagent.input-draft: what the user typed to an agent, kept with the agent (storage/agent_input_history.rs,docs/specs/SPEC_AGENT_INPUT_HISTORY_2026_10_18.md). For the UI: the composer’s ArrowUp recall and draft. No agent tool reads it.- jobs 🔒
- The Warden Jobs tab’s websocket RPCs (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §3.3):
- jobs_
edit 🔒 - The Jobs tab’s editor RPCs (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §3.3, §5.1 “Dry run”, §5.2, §5.4):
- kanban 🔒
- The operator’s side of the Kanban (docs/specs/SPEC_WARDEN_KANBAN_2026_10_20.md §6.4, §7.2), websocket RPCs from the Kanban pane:
- kanban_
rollup 🔒 kanban.tokens: what a board’s tasks spent in a range, rolled up (docs/specs/SPEC_TOKEN_ANALYSIS_PER_KANBAN_TASK_2026_11_22.md section 5.3): the median and 90th percentile per merged task, by kind, by stage, the cache hit rate, and the tasks that ended without merging apart. All counts.- kanban_
tokens 🔒 - The card’s
tokens.not_measured(docs/specs/SPEC_TOKEN_ANALYSIS_PER_KANBAN_TASK_2026_11_22.md section 4.8): the agents that held a task whose provider reports no usage srv reads, so a figure that leaves them out is not taken for the whole. It needs the agent definitions, which the board’s own store does not have, so the Kanban answer adds it. - layout 🔒
layout.save— write one window as anagentmux.layoutfile (docs/specs/SPEC_LAYOUT_FILES_2026_09_25.md §6.1). The walk and the per-view allowlist live inbackend::layout_file; this is the RPC shell.- layout_
intent 🔒 layout.applyIntent: a window’s layout edit, computed and stored by srv (service::layout_intents). SPEC_STRONG_REDUCER_AUTHORITY_LAYOUT_2026_06_30.md §4.- mcp 🔒
- MuxAPI handlers for the v1 standalone MCP Server primitive. mcp.list / mcp.get / mcp.upsert / mcp.delete / mcp.bind / mcp.unbind
- mcp_
actor 🔒 - Who may add, change, bind, unbind or probe an MCP server whose command would start on this computer.
- mcp_
health 🔒 agentmux-mcp doctor’s two calls (docs/specs/SPEC_AGENT_MCP_SELF_HEAL_2026_10_10.md §7): what srv knows about the caller’s ownagentmuxMCP server, and “repair it now”.- memory 🔒
- open_
tail 🔒 agent:open_tail: an agent pane’s first screen from one small read. The open-first-screen design (#5156), under #5141.- open_
updates 🔒 - Telling every window what an open made: the new objects as they are in the store now, in one batched frame
(
EventBus::broadcast_mux_obj_updates), so the renderer applies them in a single reactive flush and never paints a block without its tab or a tab without its layout. - other_
build_ 🔒layouts layout.otherBuilds/layout.restoreOtherBuild— the RPC shell overserver::service::session_other_builds.- pane 🔒
- pane_
open_ 🔒steps - The paths
pane.opentakes once it knows what to open, one function each.open_pane(pane.rs) calls them; the code is moved from it unchanged. - pane_
open_ 🔒tab - Which tab a
pane.openlands in (REPORT_ACTION_RESULTS_ALWAYS_VISIBLE_ACROSS_WINDOWS_2026_10_31.md§4, step 2). - pane_
singleton 🔒 - A management pane (Settings, Vault, Kanban…) is opened once per window
(
REPORT_ACTION_RESULTS_ALWAYS_VISIBLE_ACROSS_WINDOWS_2026_10_31.md§4, step 6b). Apane.openfor one that the window of the tab already has returns that pane withcreated: false, so an agent that opens Settings again and again leaves one pane, not a stack of them.new: trueasks for another on purpose. A pane in another window doesn’t count, and existing duplicates are left alone. - pane_
tabs 🔒 - The Pane Tab edit commands (
pane.moveTab,pane.moveTabs,pane.activateTab,pane.removeTab): resolve the block’s tab, dispatch the reducer command, publish, and queue the matching layout action for other views. Split out ofpane.rs, whichopen_paneand the other pane commands fill. - pin_ask 🔒
Agents ask_pin_change(POST /api/v1/agent/pin-ask): an agent asks the person to move or forget one pin, and the person answers with one click on a card in that agent’s own pane (backend::pin_asks).- pins 🔒
pins.list/pins.forget/pins.adopt: the keys and installs this machine has pinned to the names of agents that speak to it from elsewhere (the LAN name pin, and the WAN install pin), and the way to move one.- pr_
merge 🔒 POST /api/v1/github/pr-merge: a container agent’sgh pr merge, done by srv.- presence 🔒
- The cloud presence publisher’s status and “Publish now”
(
muxbus::wan_presence), for Settings’ “Cloud presence” line. - push_
scan 🔒 POST /api/v1/github/push-scan: a container agent’s push, judged by the host’s publish guard.- record_
read 🔒 GET /api/v1/app/record: this machine’s record of AgentMux’s own size over weeks, for theApptool’srecordaction and the panel (docs/specs/SPEC_LONG_RUNNING_ZERO_DEGRADATION_2026_11_16.md §6, task #47820). It reads the filesbackend::recordwrites; nothing is sent anywhere, and a line holds numbers and stable keys only (no names, titles or paths).- remote_
pane_ 🔒view Agents openwithhostandview: true(POST /api/v1/agent/open_view): puts a pane over an agent of another computer on the caller’s own window, through the same pathpane.opentakes for the caller (an agent’s pane goes in a tab of its own group, without the person’s focus). The pane opens watching: a block’s meta can’t turn driving on (driving is a person’s click in the pane, remote-pane-drive.ts), so an agent can put a view on its person’s screen and never drive it (docs/specs/SPEC_REMOTE_PANES_WATCH_AND_DRIVE_AN_AGENT_ON_ANOTHER_COMPUTER_2026_11_20.md §6, D4).- remote_
panes 🔒 - Remote panes on the viewing computer (
remotepane.*;backend::remote_panes, docs/specs/SPEC_REMOTE_PANES_WATCH_AND_DRIVE_AN_AGENT_ON_ANOTHER_COMPUTER_2026_11_20.md phase 2): the computers this one paired with to watch their agents, and the window’s panes showing one. - session 🔒
- shells 🔒
shell.list: the shells installed here, and which one a new local terminal starts with, for Settings’ default-shell picker (backend::shells).- skill 🔒
- MuxAPI handlers for the v1 standalone Skill primitive. skill.list / skill.get / skill.upsert / skill.delete / skill.bind / skill.unbind
- supervisor 🔒
supervisor.set-mode: the Swarm’s Supervisor control, for one row or a fleet selection. WS-RPC only, likefleet.broadcast: it is the user’s control in Swarm, and no MCP tool sets it, so an agent can’t put itself (or another agent) in Drive. docs/specs/SPEC_SWARM_SUPERVISOR_2026_10_16.md §3.1.- tower_
pane 🔒 - Tower, the read-only task manager pane (
backend::tower::sampler; SPEC_TOWER_TASK_MANAGER_PANE_2026_10_08.md):tower.sample. - viewer 🔒
- The desktop’s side of pairing a device with the viewer listener
(
backend::viewer, agentmux-mobile’s SPEC_AGENT_STATUS_AND_LIVE_PANE_FEED_2026_10_07 §13.2): the QR, the paired-devices list with Revoke, and an agent’s “hide from paired devices” flag. Reached over the full-key WebSocket only, like every RPC. - voice 🔒
voice.checkPath— live existence check for the local whisper.cpp CLI binary or GGML model file paths configured in Settings -> Recording.- workspace_
import 🔒 workspace.importuserworkspace: open a saved workspace file as a new workspace. Whether the file’s terminal commands run and its agents start is the person’s answer in the import preview, so only the person’s own window may call it (an agent’s connection, and any connection that is not the window, is refused). The HTTP service route no longer imports (service::user_workspace_files::handle_import): it cannot tell the window from any other caller. The tests are beside the import’s own, inservice/user_workspace_files_tests.rs.- workspace_
stop 🔒 - What an agent can do about a workspace that is going to stop (
Appworkspaceandkeep_running).
Structs§
- Editor
Found 🔒 - An Editor pane found in a tab for an agent’s open to reuse.
Functions§
- check_
s1 🔒 - S1: the caller may only act on itself.
- check_
s1_ 🔒resolved check_s1’s decision over plain strings, so it can be tested without constructing anRpcContext.- editor_
block_ 🔒named - An Editor the open names,
block_id(thePaneopentarget_id), intab_id: it must be an Editor onconnectionthat the tab holds. - find_
agent_ 🔒block - Find an existing agent block in a tab by agent ID.
- find_
editor_ 🔒block - Find the Editor-view block in
tab_idan agent’s open should reuse, onconnection(its metaconnection; absent andlocalare this computer), if any. Direct sibling offind_agent_blockabove, checkingmeta.view == "editor"instead ofmeta.agentId. An editor on another connection is never it: its reads and saves go there (remote terminals spec §6.3). - global_
output_ 🔒source - If the agent’s GLOBAL transcript zone (
agent:<defId>:current) hasoutput, return(global_store, agent_zone)— preferred even when this channel’s localoutputis non-empty. ReturnsNonewhen the block isn’t agent-anchored or is archived, there’s no global store, or the global zone is empty — callers then read the per-channel store keyed byblock_id. - global_
zone_ 🔒line_ count - Exact non-blank line count of the
outputfile inzone, computed via the same streaming index builderread_rangeuses (so the two endpoints always agree). ReturnsSome(0)for an empty file,Noneon read failure. - history_
damaged 🔒 - Whether the shared-store zone of the agent
block_idbelongs to was found corrupt in this process. The block’s history reads then come from its own copy, which holds only what this block wrote, so the pane tells the user earlier history may be missing. - member_
block_ 🔒ids - Every block a layout holds: each pane’s whole stack, shown or not.
- now_ms 🔒
- Milliseconds since the Unix epoch, as
i64. - parse_
seed_ 🔒zoom - Parse + validate a saved per-agent
ui:zoomcontent blob for seeding a new agent block’sterm:zoom. ReturnsSome(z)only for a parseable, non-default (≠ 1.0), in-[0.5, 2.0] zoom (the range the frontend enforces in term.tsx); anything else (default, out of range, garbage) returnsNoneso the new block opens at the default 1.0. See SPEC_AGENT_ZOOM_PERSISTENCE §4.2. - register_
app_ api_ handlers - Register all MuxAPI handlers on the RPC engine.
- resolve_
agent_ 🔒definition_ id - Resolve an S1-authenticated agent id (the slug — AGENTMUX_AGENT_ID /
bus:register id, e.g. “Agent3”) to the agent’s DEFINITION id, which is
what
db_agent_identity_links.agent_idstores (==AgentDefinition.id; seeidentity/resolver/inject.rs::resolve_bindings_for_instance). - resolve_
tab_ 🔒id - Resolve a tab ID: use the provided one, or fall back to the first workspace’s active tab.
- resolve_
tab_ 🔒id_ for_ block - Find which tab a given block currently belongs to, by scanning every
tab’s
blockids. Needed becauseresolve_tab_idonly resolves an explicit tab_id or “the active tab” — neither answers “which tab is MY OWN block in,” which a caller passing its own block id (e.g. an MCP tool’ssplit_reference_block_id) actually needs. - same_
pane_ 🔒connection - Whether two panes’ connections are one: absent and
localare this computer; otherwise the same host however it is spelled. - shown_
block_ 🔒ids - The blocks a tab’s layout shows: each pane’s active member (the tab in front of its stack), leaving out minimized panes, and every pane but the magnified one while one is magnified. A file pushed into an editor the user can’t see would look like nothing happened (SPEC_AGENT_PANE_TOOL_PEEK_ON_LINE_AND_MD_OPEN_IN_EDITOR_2026_10_11.md §2.2).