The CLI notices one ResolveCli call can put in its pane
(backend::cli_notice, SPEC_LAUNCH_CONTEXT_WORKSPACE_RULE_AND_STARTUP_FILES_2026_09_30.md
§6.3). A probe with no block_id (the picker, the Toolchain pane) puts
nothing anywhere.
Steps 1 and 2 of resolvecli: already there? A provider in the registry goes
through the one lookup (locate_provider_cli): AgentMux’s
install, else the user’s own copy only when the registry says
AgentMux doesn’t install it. A core tool (git, node, …) isn’t
in the registry: its install dir, else PATH when the caller
sent no package.
The CLI a launch of provider_id would run, without installing anything:
AgentMux’s own install, for every provider. The person’s own copy on PATH
or in its installer’s folder only when they listed the provider in
cli:usepath (“Use the CLI on my PATH”), and then it comes first. Never
otherwise, so a copy on PATH can’t make a missing install read as “found”.
The one lookup behind install.check, resolvecli, the launch
(agent.open) and the ambient calls, so the agent picker and the Toolchain
pane can’t disagree (SPEC_AGENT_PICKER_INLINE_CREATE_2026_10_18.md §1).
None for an unknown provider.
A CLI that was not found and that resolvecli must not install: AgentMux doesn’t
install it (say how to), or the caller sent no package (a look, not an install request).
resolvecli for a provider that is a release download (Grok, Muse), not an npm
package: the pinned file, its hash checked, unpacked under the install lock
and marked complete (backend::cli_download).
The person’s own copy of a CLI: on PATH, else in the folder its own installer
uses (crate::backend::providers::known_install_paths), which may not
be on this process’s PATH until AgentMux restarts.
Run the provider auth-check CLI against auth_env and parse the verdict.
Returns (authenticated, email, auth_method, raw_output). Extracted so the
stale-credential self-heal can re-run the exact same check after refreshing.
One install routine for this and the startup warm-up
(cli_install::install_pinned_cli): cross-instance lock
held for npm’s whole lifetime — inside the blocking task,
so a timed-out RPC can’t release it early — reuse of an
install another instance finished while we waited, and
the completion marker only after the shim is verified.
The pane says it’s installing, then how it went: a pane
restored at startup otherwise just starts slower.
The lines of where/which output a spawn can use. On Windows that is
the ones make_cli_cmd can run (.exe / .cmd / .bat), skipping e.g. the
extensionless npm shell script; elsewhere which prints one path.