mux-activity and agent-activity miss coding agents that are running right in front of them. Antigravity's CLI (agy) in a Rex pane is shown as a plain program, and agent-activity finds only Claude Code, Codex and OpenCode.
Problem
Agent detection is spread across three places, and each one knows a different list.
- mux-activity under Rex: only names in its own list count (
DEFAULT_AGENTSinrex.rs, which is also the default for theagentssetting).agyis not on it, so an Antigravity pane is drawn as an ordinary program. - mux-activity under Herdr and Luvus: these use only the multiplexer's own agent list. There is no fallback, so a program the multiplexer does not recognise is never an agent row.
- agent-activity:
NAMES = ["claude", "codex", "opencode"]inmodel.rs. Every other agent is invisible to it. - Name aliases:
core/src/agent_work.rsis_namedlinkscursor↔cursor-agent,claude-code↔claudeandgemini-cli↔gemini, by stripping suffixes. Nothing links Herdr'santigravity-clito theagyprocess. - Docs: the mux-activity README says Herdr recognises "antigravity", but no code here backs that up.
Proposed design
One agent catalogue in core (tc::agent_work). Each entry holds:
- the display name;
- the command names its process goes by;
- the aliases multiplexers report it under;
- any subcommands that are background services rather than agent sessions.
Everything reads from that catalogue:
- Rex: it becomes the default list. The
agentssetting can still add to it. - Herdr and Luvus: a pane whose foreground program is in the catalogue becomes an agent row even when the multiplexer does not name it. A row Herdr or Luvus names is matched to its process through the aliases.
- agent-activity: it finds every agent in the catalogue. For agents beyond Claude, Codex and OpenCode, that is the process and its child shells only, until someone adds a log reader for them.
- Agents that do not report their state: they appear as running, with state unknown, and the row says so rather than guessing.
Catalogue
Herdr's documented agents form the base, plus the popular CLIs Herdr does not cover. Command names marked verify must be checked against the tool's own docs or a real install before they ship.
A short command name can collide with an unrelated program (forge is also Foundry; agent, cn, vibe and pool are generic). Such a name matches only together with a second clue: the install path, the script an interpreter runs, or a multiplexer report.
| Agent | Command(s) | Multiplexer kind / alias | Notes |
|---|---|---|---|
| Claude Code | claude | claude, claude-code | already supported |
| Codex | codex | codex | already supported |
| Gemini CLI | gemini | gemini, gemini-cli | Node script |
| OpenCode | opencode | opencode | already supported |
| Antigravity CLI | agy | agy, antigravity, antigravity-cli | native binary |
| Pi | pi | pi | Node script via launcher |
| Oh My Pi | omp | omp | |
| Cursor Agent | cursor-agent (also agent, verify) | cursor | |
| GitHub Copilot CLI | copilot | copilot | |
| Droid (Factory) | droid | droid | |
| Devin CLI | devin | devin | |
| Grok CLI | grok | grok | |
| Amp | amp | amp | |
| Kimi Code | kimi | kimi | |
| Kilo Code CLI | kilo / kilocode (verify) | kilo | |
| Qwen Code | qwen | qwen | |
| Qoder CLI | qodercli | qodercli | |
| Kiro CLI | kiro-cli (also kiro) | kiro | |
| Cline CLI | cline | cline | |
| Crush | crush | crush | |
| Letta Code | letta (verify) | letta | |
| MastraCode | mastracode (verify) | mastracode | |
| Maki | maki (verify) | maki | |
| Muse Code | verify | muse | |
| Command Code | verify | ||
| Aider | aider | Python script | |
| Goose | goose | ||
| OpenHands CLI | openhands (verify) | ||
| Continue CLI | cn (verify, generic) | ||
| Plandex | plandex / pdx (verify) | ||
| Codebuff | codebuff | ||
| Auggie | auggie | ||
| Roo Code CLI | verify | ||
| Trae Agent | trae-cli (verify) | ||
| ForgeCode | forge (verify, collides with Foundry) | ||
| Mistral Vibe | vibe (verify, generic) | ||
| gptme | gptme | ||
| Codewhale | codewhale | ||
| Claw Code | verify | ||
| Jules | jules | already in Rex list |
Out: Hermes Agent. Its long-running gateway and dashboard processes would read as agent sessions.
Scope
In:
- the catalogue in core, with its tests;
- Rex, Herdr and Luvus reading it;
- the alias matching;
- agent-activity reading it;
- the
agentssetting's default and help text, withconfig.example.jsonregenerated; - README and CONFIGURE corrections.
Out:
- per-agent log or session readers for the new agents (state beyond "running");
- Hermes.
Acceptance
- An
agypane under Rex is an agent row, with its state shown as unknown. - Under Herdr and Luvus, a catalogue program the multiplexer did not report is an agent row. A multiplexer-reported
antigravity-clirow is matched to theagyprocess. - agent-activity lists a running
agy,piandgemini, with their child shells. - A generic command name (
forge,vibe,cn,agent) on an unrelated program is not an agent row (tests). - Every catalogue entry marked verify is checked, or left out with the reason in the PR.
-
cargo testpasses, includingcheck.rs.
Agent notes
Code on origin/main:
widgets/src/widgets/mux-activity/rex.rs:DEFAULT_AGENTS.widgets/src/widgets/mux-activity/rex_parse.rs:identities(),app_matches(),agent_command(). The script,argv0, path and name are all already read.widgets/src/widgets/mux-activity/settings.json: theagentsdefault.widgets/src/widgets/mux-activity/herdr.rsandluvus_parse.rs: these take the multiplexer'sagentfield only.widgets/src/widgets/agent-activity/model.rs:NAMES.core/src/agent_work.rs:is_named(),product()(suffix stripping) andINTERPRETERS.
Seen on a dev machine:
agyis a native binary whose comm isagy.piis a shell launcher that execs Node with…/node_modules/.bin/pi.hermesis a shell launcher that runspython3 -c, with the comm set tohermes.
Sources:
OPS-300