Closes OPS-300 Closes #668
Summary
Consolidate coding-agent CLI detection across opscope-core (tc::agent_work), mux-activity (Rex, Herdr, and Luvus), and agent-activity into one shared catalogue in core/src/agent_work/catalogue.rs.
- Shared catalogue (
tc::agent_work):- Group 1 (24 confirmed defaults):
claude,codex,gemini,opencode,agy,pi,omp,cursor-agent,copilot,droid,devin,grok,kimi,qwen,qodercli,kiro(processkiro-clionly; barekirois the Kiro IDE launcher, and Herdr'skiroresolves as an alias),cline,crush,aider,codebuff,auggie,gptme,codewhale, andjules. Every entry carries a confirmation note citing local installs and/or official CLI docs. - Group 2 (entries whose command another program shares; each needs a second clue and is switched on by its own name in
agents):forge→forgecodeonly with/forgecode/or/@antinomyhq/forge/(never Foundry'sforge).agent→cursor-agentonly with/cursor-agent/(handles Cursor'sexec -aNode wrapper while ignoring unrelatedagentbinaries).cn→continueonly with/@continuedev/or/continuedev/.vibe→vibeonly with/mistral-vibe/or/mistral_vibe/.goose→ Block's agent only by its Homebrew path (/block-goose) or by how it was run: bare,session,sorrun. pressly/goose (goose up,goose postgres … status) never matches. Rex reports no arguments, so there the catalogue needs the path; a goose that reports itself to Rex (current versions do) shows regardless, with its own state — confirmed live: a script-installedgooseunder Rex appeared under AGENTS asidle.
- Group 3 & exclusions: Sourcegraph's Amp is out of the defaults:
ampis also a terminal text editor, and an npm install runs asnode /usr/local/bin/amp, so no clue separates them. Herdr reports Amp itself, and addingamptoagentsmatches it unconditionally. Unconfirmed CLIs (letta,mastracode,maki,kilo/kilocode,plandex,openhands,trae-cli, etc.) stay out ofDEFAULT_AGENTSuntil confirmed from official docs or an install, while still showing under Herdr/Luvus whenever the multiplexer reports them. Hermes Agent is excluded entirely, as are background service subcommands (opencode serve/acp,agy acp/mic-serve,claude gateway/mcp serve,codex app-server,devin acp,copilot --acp,kimi web,goose mcp, etc.).
- Group 1 (24 confirmed defaults):
mux-activity(Rex, Herdr, Luvus):- Rex reads
tc::agent_work::DEFAULT_AGENTSand shared foreground/report classifiers; anagypane under Rex is an agent row withunknownstate (no status reported). - Herdr and Luvus read
agentsfrom settings (DEFAULT_AGENTSfallback), promote panes running configured/catalogue agents that the multiplexer did not list asunknown(no status reported), and resolve multiplexer aliases such asantigravity-cli↔agyandkiro↔kiro-clito their process and child shells.
- Rex reads
agent-activity:- Discovers every running agent in
tc::agent_work::DEFAULT_AGENTS(plus disambiguated Group 2 matches) with itsvia processchild shells, while limitingvia logsession-store reads to Claude Code, Codex, and OpenCode and statingno session-log reader for this agenton rows without one.
- Discovers every running agent in
- Settings & docs:
- Regenerated
config.example.json(UPDATE_CONFIG_EXAMPLE=1 cargo test) and updatedsettings.json,README.md,CONFIGURE.md, andhelp.txtformux-activityandagent-activity.
- Regenerated
Verification
-
UPDATE_CONFIG_EXAMPLE=1 cargo testand full workspacecargo testpassed acrossopscope-core, all 22 binaries, and all 73 invariants inwidgets/tests/check.rs - Unit tests for Group 1 provenance notes, alias resolution (
antigravity-cli→agy,kiro→kiro-cli), background service subcommand exclusion, shebang shell wrappers on Linux and macOS, and narrowed/customagentslists (core/src/agent_work/catalogue.rs,core/src/agent_work.rs) - Negative and second-clue tests for Group 2 generic names (
forge,vibe,cn,agent,goose) - Programs sharing an agent's name are not agents:
goose up,goose postgres … status,amp notes.txt,kiro .; a baregooselabel or Rex foreground proves nothing - Removing one default (
jules) leaves Cursor'sagentlauncher and Continue matching; removingcontinueswitches off only Continue - Full workspace
cargo testafter the fix: 2621 passed, 0 failed (e8e955f) - Rex
agypane rendered inAGENTSwithunknownstate andno status reported(mux-activity/rex.rs,rex_parse.rs) - Herdr and Luvus gap-filling with
unknown(no status reported),antigravity-cli→agyprocess/shell matching, and user-addedagentsentries (mux-activity/herdr.rs,luvus.rs) -
agent-activitylistingagy,pi, andgeminiwith their child shells while excluding unrelated generic commands (agent-activity/model.rs)
Activity
48Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review | Status | Commit | Review trigger |
|---|---|---|---|
| 📝 Code Review | ✅ Completed 2026-11-18T15:04:45.389024Z | 066a751 | Manual request |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e8e955f25d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review
Codex Review: Didn't find any major issues. Delightful!
Reviewed commit: 066a7511a1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary by CodeRabbit
Walkthrough
A shared catalogue now classifies coding-agent processes and aliases. Agent-activity uses it to discover agents and child-shell work. Rex, Herdr and Luvus use the catalogue and configured names to identify agents, including rows with unknown state when no status is reported.
Changes
Shared coding-agent discovery
core/src/agent_work/catalogue.rs,core/src/agent_work.rscore/src/agent_work/logs.rs,widgets/src/widgets/agent-activity/*,README.mdwidgets/src/widgets/mux-activity/settings.json,config.example.json,widgets/src/widgets/mux-activity/CONFIGURE.md,widgets/src/widgets/mux-activity/README.md,widgets/src/widgets/mux-activity/main.rs,widgets/src/widgets/mux-activity/rex.rs,widgets/src/widgets/mux-activity/rex_parse.rswidgets/src/widgets/mux-activity/herdr.rs,widgets/src/widgets/mux-activity/help.txt,widgets/src/widgets/mux-activity/README.mdwidgets/src/widgets/mux-activity/luvus.rs,widgets/src/widgets/mux-activity/help.txt,widgets/src/widgets/mux-activity/README.mdEstimated code review effort: 4 (Complex) | ~45 minutes
Change: Feature · Severity of issue fixed: Medium
Sequence Diagram(s)
Possibly related issues
Possibly related PRs
Suggested reviewers:
greptile-appsMerge Risk: Moderate · previous review
dd294The change broadens agent discovery across the activity widgets and multiplexer clients. Several classification and display edge cases remain open. In Herdr, a pane whose agent is replaced by a matching background job can no longer be focused with Enter. In Luvus, a promoted agent can show another project's session work. These should be addressed or explicitly accepted before merge.
Security architecture risk: Minimal · up to
dd294The inspected changes broaden discovery while retaining separate controls for supported log readers, local-process access, and reported job state. No introduced or worsened security, ownership, rollback, or failure-containment risk was established.
Retained concerns No architecture-level concerns identified.
Security review details
Security Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Pre-merge checks: 4
#668] Shared catalogue:core/src/agent_work/catalogue.rsat the reviewed head definesCATALOGUEwith 24 Group 1 entries (second_cluesandsession_argsempty). Each entry has anotethat nam…#668and OPS-300.core/src/agent_work/catalogue.rsandcore/src/agent_work.rsimplement the shared catalogue and its matching helpers. Themux-activityand `agent-activit…Full details: Title check
Explanation
The title names the main change: a single coding-agent catalogue shared by mux-activity and agent-activity. The changeset adds the shared catalogue in core/src/agent_work/catalogue.rs and switches Rex, Herdr, Luvus and agent-activity to it, so the title matches the primary change.
Full details: Description check
Explanation
The description is detailed and directly describes the changeset. It covers the shared catalogue in core/src/agent_work/catalogue.rs, Group 1 and Group 2 entries, the mux-activity (Rex, Herdr, Luvus) and agent-activity changes, settings and docs updates, and test results.
Full details: Linked Issues check
Explanation
[
#668] Shared catalogue:core/src/agent_work/catalogue.rsat the reviewed head definesCATALOGUEwith 24 Group 1 entries (second_cluesandsession_argsempty). Each entry has anotethat names its confirmation source. [#668] Group 2 entries (forgecode,cursor-agentviaagent,continueviacn,vibe) require a path or script clue. The catalogue tests cover the negative cases, per the PR description. [#668] Hermes is not in the catalogue. Amp is excluded, and the catalogue comment gives the reason. Goose uses a disambiguated entry with path or argument clues, not plain Group 1 matching. The PR states this deviation and the reason, which the issue allows for unconfirmed or ambiguous names. [#668] Rex readsDEFAULT_AGENTS, so anagypane renders as an agent row withunknownstate, per the PR description and the previous assessment. [#668] Herdr and Luvus promote unreported catalogue or configured panes asunknown, and resolveantigravity-clitoagyandkirotokiro-cli. [#668]agent-activityiteratescatalogue_agents(), soagy,piandgeminiappear with child shells. Session-log reads stay limited to Claude Code, Codex and OpenCode throughhas_log_reader. [#668] Theagentssetting applies under all three multiplexers, andconfig.example.jsonandsettings.jsonare updated. Limits: I could not read the incremental diff from the previous reviewed heads, because the changed blobs are missing from the checkout. The Herdr and Luvus background-job hunks (commit-message follow-up) therefore rest on the summary only. I did not run tests at the reviewed head. The 2621-pass result is the author's report at e8e955f.Full details: Out of Scope Changes check
Explanation
The changes stay within
#668and OPS-300.core/src/agent_work/catalogue.rsandcore/src/agent_work.rsimplement the shared catalogue and its matching helpers. Themux-activityandagent-activityedits implement the Rex, Herdr, Luvus and agent-activity requirements. Thesettings.json,config.example.json, README, CONFIGURE and help changes fall within the issue's listed documentation and configuration scope. Thecore/src/agent_work/logs.rschange adds case-insensitive matching and theclaude-cliandcodex-clialiases to the existing Claude and Codex readers. It adds no reader for a new agent, so it stays within the issue's exclusions. No change adds Hermes or another excluded agent. Limit: the incremental hunks since e8e955f and e3ccb7f were not readable, so this verdict relies on the summarised scope for those hunks.Finishing Touches
Generate unit tests (beta)
Simplify code
A rabbit checks the process trail,
Finds agents by command and name.
The child shells join the board,
While unknown states stay unknown.
Three readers scan their session logs,
And Rex, Herdr, Luvus share the list.