Skip to main content

Module app_tool

Module app_tool 

Source
Expand description

App: this AgentMux itself (docs/specs/SPEC_UPGRADE_FOR_USERS_AND_AGENTS_2026_10_15.md §5.1, phase 4). version says what is running and whether a newer release exists; upgrade asks for it. A tool of its own, like Stop, because an upgrade restarts every agent: a harness can gate it (SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.1).

Functions§

ago 🔒
“5 min” or “2 h 10 min” for the time from since_ms to now_ms.
ask 🔒
Run a read-only operation on host; an error carries the machine’s refusal in words.
ask_with 🔒
ask with the operation’s parameters.
call 🔒
contains_arg 🔒
logs’ contains, exactly as given: the text is searched for as written, so leading and trailing spaces are part of it (" store " does not match “storefront”) and a text of only spaces is a real filter. Only the empty string means no filter.
describe_disk 🔒
disk’s answer, from the report: volumes, the largest build folders, older versions.
describe_identity 🔒
An AgentMux in words, from its app.version answer: “AgentMux 0.60.22 (a release, build 0.60.22, data in channel local-main-b28b7a-0000000a, linux)”. What kind of build it is comes from the machine’s own build_kind, never from the channel’s name: an upgraded release keeps the channel of the build it replaced, and the channel only says where the data is. An AgentMux from before build_kind says nothing about its kind.
describe_logs 🔒
A log read in words: which log, what was asked of it, how many lines passed and how many came back.
describe_network 🔒
network’s answer, from srv’s ConnectivityStatus: one line per service, then what to make of it.
describe_outcome 🔒
upgrade’s answer, from srv’s outcome.
describe_reclaim 🔒
history_reclaim’s answer, from srv’s status of the request and the last reclaim.
describe_remote_request 🔒
A sensitive request’s state on another machine, from app.upgrade with a status.
describe_status 🔒
version’s answer, from srv’s AppUpdateStatus.
describe_volume 🔒
disk 🔒
disk: what AgentMux filled on another machine’s disk (app.disk.report), measured there and deleting nothing. With clean, ask that machine to clear its idle build folders (app.disk.cleanup), filed there as a sensitive request; with request_id, read where such a request stands.
gb 🔒
history_reclaim 🔒
history_reclaim: ask for the shared pane-history store’s free space to be given back at the next start, withdraw that, or read where it stands (/api/v1/agent/history/reclaim). srv records the request as this agent.
local_health 🔒
health on this machine, from the same report a remote call gets.
logs 🔒
logs: the last lines of AgentMux’s own srv or host log, on another machine (app.logs.tail) or, without a host, on this one (GET /api/v1/app/logs: through srv, so a container agent reads it too). level and contains are applied before the last lines are taken.
mb 🔒
network 🔒
not_confirmed_words 🔒
What a download says about the last restart into it that was asked for and not confirmed, as a sentence to add after “ready to restart into”: when and why (not_confirmed_at, not_confirmed); empty when there was none.
remote_health 🔒
health with a host: what a steward checks after an upgrade, on that machine.
remote_history_reclaim 🔒
history_reclaim with a host: the same request, withdrawal or read, on that machine.
remote_upgrade 🔒
upgrade with a host: ask that machine to upgrade itself. It is filed there as the sensitive request a local agent’s upgrade files: its super agent decides and the person at that machine can veto the countdown, so this never starts anything by itself. With request_id, read where an earlier request stands instead.
remote_version 🔒
version with a host: the AgentMux on that machine, from its own answer.
s 🔒
upgrade 🔒
version 🔒