Skip to main content

Module app_api

Module app_api 

Source
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 context and Agents 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, hide and unhide (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’s updateagent, setagentbundles and agentdefhide/agentdefunhide run.
agent_env 🔒
Agents env_get and Agents env_set: an agent, host or container, reads and edits the extra environment variables a definition launches with (its env content, 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, kind agent): 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_back clears the mark that keeps it from starting here, Agents move_status says 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 with history.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, detach and delete (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 Agents spawn action’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): plan reads and changes nothing, stop asks every pane running an affected agent to stop (each with its user’s 30 s override, and the answer says how long to wait), apply migrates, rollback undoes 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 but plan is 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.md section 7a). agent.model.panel says what the panel may offer for a pane’s agent and what cannot be picked, with the reason; agent.model.switch is 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 are remote_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 is Presence status with state waiting and until_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, the Agents tool’s open with agents (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.open for 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.open runs 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.open reaches 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: /shutdown in 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 with Agents 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.md section 5.1).
agent_runtime_pick 🔒
model and effort of Agents update for 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 with agent.setSeat (agent_handlers/seat.rs), and an agent does it here.
agent_spawn 🔒
POST /api/v1/agent/spawn, the Agents tool’s spawn (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.md section 3.4). The operator’s window only: an agent uses Agents 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 last app:updatestatus event. 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: the App tool’s version (GET /api/v1/app/update-status) and upgrade (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 in backend::attachments; these only adapt it to the RPC engine. Typed registration, so frontend/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 through credential_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/grants lists each grant with whether it is in force, when it was added and by which recorded change, and POST /api/v1/aws/grants/decide answers 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 over backend::bookmarks_store: no Store/ sqlite involvement, no per-agent scoping — see docs/specs/SPEC_BROWSER_PANE_BOOKMARKS_AND_GO_ICON_2026_08_22.md for why this is a dedicated shared_dir file instead of the ABF/db_bundles pattern 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), a shared_dir file 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 is GetFullConfig’s browserstartpage field (crates/srv-core/src/backend/wconfig/types.rs), not a matching .get here — see docs/specs/SPEC_BROWSER_PANE_START_PAGE_2026_09_16.md §3.1 for why. Deliberately its own file rather than folded into bookmarks.rs: unlike bookmarks, this handler needs AppState’s config_watcher/event_bus to update the live config and broadcast immediately, the same shape COMMAND_SET_CONFIG already 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’s ConnStatusOverlay), 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 last connectivity:changed event.
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’s getcontainercaches / clearcontainercaches, which share view and clear. docs/specs/SPEC_CONTAINER_AGENT_DEVELOPER_IMAGE_2026_10_29.md section 5.
container_limits 🔒
A container agent’s CPU and memory limits: Agents set_container_limits (POST /api/v1/agent/container/limits), and the window’s agent.getContainerLimits / agent.setContainerLimits, which share view and set. 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). See backend::container::drift for what an update does. Agents update_container with a container_image also 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 asks authorize before it looks at or touches a native app, and srv answers from the grants, the blocklist, the limits and the Stop flag in backend::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 Desktop call. 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 the RegisterDevServer MCP 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_dream adds one to the record, run_next takes the queued dream the schedule says may run now and runs one pass over the agent’s memory files, and start_loop calls 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: asked while the person has not answered, chosen once they went ahead, declined after a no.
github_token 🔒
POST /api/v1/github/token: the GitHub token an agent’s git and gh use.
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.agents lists every agent whose history the global transcript store holds (backend::history_registry), and history.agent_sessions one agent’s sessions from its record. The Agent History view’s history.locate finds 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 for FRESH_FOR unless the request asks to refresh.
identity 🔒
input_history 🔒
agent.input-history* and agent.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 an agentmux.layout file (docs/specs/SPEC_LAYOUT_FILES_2026_09_25.md §6.1). The walk and the per-view allowlist live in backend::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 own agentmux MCP 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 over server::service::session_other_builds.
pane 🔒
pane_open_steps 🔒
The paths pane.open takes 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.open lands 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). A pane.open for one that the window of the tab already has returns that pane with created: false, so an agent that opens Settings again and again leaves one pane, not a stack of them. new: true asks 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 of pane.rs, which open_pane and 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’s gh 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 the App tool’s record action and the panel (docs/specs/SPEC_LONG_RUNNING_ZERO_DEGRADATION_2026_11_16.md §6, task #47820). It reads the files backend::record writes; nothing is sent anywhere, and a line holds numbers and stable keys only (no names, titles or paths).
remote_pane_view 🔒
Agents open with host and view: 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 path pane.open takes 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, like fleet.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, in service/user_workspace_files_tests.rs.
workspace_stop 🔒
What an agent can do about a workspace that is going to stop (App workspace and keep_running).

Structs§

EditorFound 🔒
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 an RpcContext.
editor_block_named 🔒
An Editor the open names, block_id (the Pane open target_id), in tab_id: it must be an Editor on connection that 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_id an agent’s open should reuse, on connection (its meta connection; absent and local are this computer), if any. Direct sibling of find_agent_block above, checking meta.view == "editor" instead of meta.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) has output, return (global_store, agent_zone) — preferred even when this channel’s local output is non-empty. Returns None when 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 by block_id.
global_zone_line_count 🔒
Exact non-blank line count of the output file in zone, computed via the same streaming index builder read_range uses (so the two endpoints always agree). Returns Some(0) for an empty file, None on read failure.
history_damaged 🔒
Whether the shared-store zone of the agent block_id belongs 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:zoom content blob for seeding a new agent block’s term:zoom. Returns Some(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) returns None so 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_id stores (== AgentDefinition.id; see identity/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 because resolve_tab_id only 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’s split_reference_block_id) actually needs.
same_pane_connection 🔒
Whether two panes’ connections are one: absent and local are 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).