Skip to main content

Module cli_uninstall

Module cli_uninstall 

Source
Expand description

Toolchain’s Uninstall: remove AgentMux’s own copy of one agent CLI, <shared>/cli/<provider>/<pin>/, and nothing else. The person’s own copy on PATH, the CLI’s sign-in state and every other pin are never touched (docs/specs/SPEC_ISOLATED_INSTALL_FOR_NON_NPM_CLIS_2026_11_05.md §4).

Unlike a prune this is the person’s own click, so disuse is not asked; the guards that stay are the ones that protect a running agent: the install lock, and no open pane that runs the CLI and no running process using the folder. The pane check does not depend on the process scan, which cannot run on Windows: a pane records its CLI as a bare name or as a path, so both count.

Enums§

Uninstalled

Functions§

uninstall
Remove <shared>/cli/<provider_id>/<pin>/. in_use is what runs now (super::cli_prune::gather_in_use); a folder one of its commands mentions, or an open pane that runs cli_name, leaves it alone and the error says why.