Expand description
What kind of process each Tower row is (TowerProcess::kind;
SPEC_TOWER_THEME_SURFACE_AND_COLOR_2026_10_17.md §3.2).
The first rule that matches wins:
- AgentMux’s own: its task, a process it described, or an AgentMux name.
- The main process of an agent pane: an agent, whatever its executable.
- The main process of a terminal pane: a shell.
- A generic runtime (
node,python, …) inside a pane’s task, by its command line: a package manager or build tool, or an agent CLI’s package. Read here, never sent: only the kind leaves srv. - The name, in one table: every provider’s CLI, then known names, then known prefixes.
- Anything else is an app.
Another machine’s rows carry names only, so they get rules 1 (by name)
and 5 (fill_missing).
Structs§
- Context
- Where a process sits, for rules 1–3.
Functions§
- by_
command_ line - What a generic runtime’s command line says (rule 4):
Nonekeeps it a runtime. Only what it runs counts, never any word of a path: the script’s package directory, a.binshim, Python’s-mmodule or script name, a JVM’s launcher class,dotnet’s verb. Pure: the caller reads the command line. - by_name
- What
namealone says (rules 1 by name, and 5). - classify
- The kind, from where the process sits (rules 1–3), else
named: what its name, or its command line, said (by_name,by_command_line). - fill_
missing - Fill the kind of every row that has none: another machine’s frame (names only), or a paired computer’s AgentMux that predates kinds, whose tasks still say what each process is to its pane, so rules 1–3 apply there too.
- is_
generic_ runtime - A runtime whose command line says more than its name (rule 4).
- normalize
- A name as the table knows it: lower case, without
.exe, without a version after a dash (agentmux-srv-0.59.30-windows.x64→agentmux-srv) or glued on (python3.12→python,idea64→idea).