#644

mux-activity + agent-activity: one shared agent catalogue covering every popular coding CLI, under Rex, Herdr and Luvus

Openwiiiimmopened 10d ago

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_AGENTS in rex.rs, which is also the default for the agents setting). agy is 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"] in model.rs. Every other agent is invisible to it.
  • Name aliases: core/src/agent_work.rs is_named links cursor↔cursor-agent, claude-code↔claude and gemini-cli↔gemini, by stripping suffixes. Nothing links Herdr's antigravity-cli to the agy process.
  • 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 agents setting 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.

AgentCommand(s)Multiplexer kind / aliasNotes
Claude Codeclaudeclaude, claude-codealready supported
Codexcodexcodexalready supported
Gemini CLIgeminigemini, gemini-cliNode script
OpenCodeopencodeopencodealready supported
Antigravity CLIagyagy, antigravity, antigravity-clinative binary
PipipiNode script via launcher
Oh My Piompomp
Cursor Agentcursor-agent (also agent, verify)cursor
GitHub Copilot CLIcopilotcopilot
Droid (Factory)droiddroid
Devin CLIdevindevin
Grok CLIgrokgrok
Ampampamp
Kimi Codekimikimi
Kilo Code CLIkilo / kilocode (verify)kilo
Qwen Codeqwenqwen
Qoder CLIqodercliqodercli
Kiro CLIkiro-cli (also kiro)kiro
Cline CLIclinecline
Crushcrushcrush
Letta Codeletta (verify)letta
MastraCodemastracode (verify)mastracode
Makimaki (verify)maki
Muse Codeverifymuse
Command Codeverify
AideraiderPython script
Goosegoose
OpenHands CLIopenhands (verify)
Continue CLIcn (verify, generic)
Plandexplandex / pdx (verify)
Codebuffcodebuff
Auggieauggie
Roo Code CLIverify
Trae Agenttrae-cli (verify)
ForgeCodeforge (verify, collides with Foundry)
Mistral Vibevibe (verify, generic)
gptmegptme
Codewhalecodewhale
Claw Codeverify
Julesjulesalready 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 agents setting's default and help text, with config.example.json regenerated;
  • README and CONFIGURE corrections.

Out:

  • per-agent log or session readers for the new agents (state beyond "running");
  • Hermes.

Acceptance

  • An agy pane 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-cli row is matched to the agy process.
  • agent-activity lists a running agy, pi and gemini, 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 test passes, including check.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: the agents default.
  • widgets/src/widgets/mux-activity/herdr.rs and luvus_parse.rs: these take the multiplexer's agent field only.
  • widgets/src/widgets/agent-activity/model.rs: NAMES.
  • core/src/agent_work.rs: is_named(), product() (suffix stripping) and INTERPRETERS.

Seen on a dev machine:

  • agy is a native binary whose comm is agy.
  • pi is a shell launcher that execs Node with …/node_modules/.bin/pi.
  • hermes is a shell launcher that runs python3 -c, with the comm set to hermes.

Sources:

Activity

1
linear-code[bot]10d ago