Skip to content

feat(agents): offer only supported agents that are installed - #994

Merged
devswha merged 1 commit into
mainfrom
feat/agent-list-supported-installed
Oct 13, 2026
Merged

devswha merged 1 commit into
mainfrom
feat/agent-list-supported-installed

Conversation

@devswha

@devswha devswha commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Change

New workspace, New tab and New worktree listed every agent herdr has a manifest for (25 on a current herdr), most of which this app shows as terminal text only and many of which are not installed on the PC.

The list now offers the agents of the guide's Supported agents table (shared/supported-agents.ts) whose command is on the server's PATH. GET /api/agents adds installed to each entry (Bun.which(kind); herdr's manifests name no executable), and the client filters on both. Filtering is on the client so a remote PC's older bridge, which sends every manifest and no installed, is still narrowed to the supported kinds. Any other program still starts from a pane's shell.

The constant has its own file: the browser imports the value, and shared/protocol.ts reads process.env as it loads, which broke the Bun-built browser fixtures.

Validation

  • bun run typecheck, and the i18n, conventions and changelog-fold unit tests: pass (macOS arm64, Bun 1.4.0).
  • Contract: server/api.contract.test.ts "lists agent kinds…" and "offers omo and gjc… exactly when they are on PATH" (now also asserts installed: true for a kind on PATH and installed: false for claude off PATH): 2 pass on an isolated herdr 0.9.3.
  • Browser: bun run check run --build bun scripts/chat-history-browser-qa.ts: 9 PASS (the fixture bundle that failed with "process is not defined" while the constant lived in protocol.ts).
  • Seen on a live session: the picker lists Shell, Claude Code, Codex, Gajae Code, grok, Oh My Pi, OmO and OpenCode on a PC with those eight installed.
  • Not run locally: the full integration and browser lanes.

The agent picker listed every agent herdr has a manifest for. /api/agents now says whether each kind's command is on the server's PATH, and the client offers the supported kinds that are installed; an older bridge's list is narrowed to the supported kinds.
@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d394d7e7-8212-4b77-a1d9-0c5e74f3ff07
📥 Commits

Reviewing files that changed from the base of the PR and between 8dc1774 and 4634d70.

📒 Files selected for processing: 6
  • changelog.d/agent-list-supported-only.md
  • server/api.contract.test.ts
  • server/index.ts
  • shared/protocol.ts
  • shared/supported-agents.ts
  • src/lib/api.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha
devswha merged commit cf19e3d into main Oct 13, 2026
36 of 41 checks passed
@devswha
devswha deleted the feat/agent-list-supported-installed branch October 13, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant