Skip to main content

Module kind

Module kind 

Source
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:

  1. AgentMux’s own: its task, a process it described, or an AgentMux name.
  2. The main process of an agent pane: an agent, whatever its executable.
  3. The main process of a terminal pane: a shell.
  4. 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.
  5. The name, in one table: every provider’s CLI, then known names, then known prefixes.
  6. 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): None keeps it a runtime. Only what it runs counts, never any word of a path: the script’s package directory, a .bin shim, Python’s -m module or script name, a JVM’s launcher class, dotnet’s verb. Pure: the caller reads the command line.
by_name
What name alone 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).