feat(backend): add Hermes ACP agent support (#1090)#1117
Conversation
📝 WalkthroughWalkthroughAdds a Hermes ACP passthrough agent that integrates the Hermes CLI via ACP (stdin/stdout), a spec entry validating commands, registry registration so Hermes is available by default, and permits the ChangesHermes ACP Agent Support
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
|
Claude finished @jcfs's task in 3m 2s —— View job Code Review
FindingsSuggestion (recommended, doesn't block)
Summary
Verdict: Ready to merge The implementation is clean and follows the established native-binary ACP agent scaffold exactly. All six wiring points are correct: the agent file, SVG logos, registry entry, executor allowlist, and test coverage. The |
|
| Filename | Overview |
|---|---|
| apps/backend/internal/agent/agents/hermes_acp.go | New ACP agent for Nous Research Hermes; correctly uses WithCommandOutput regex to disambiguate from Meta's Hermes JS engine, follows scaffold pattern of peer agents. |
| apps/backend/internal/agent/agents/new_acp_agents_test.go | Adds Hermes to the shared spec table covering ID, display, all command surfaces, install script, logo non-emptiness, and display-order uniqueness. |
| apps/backend/internal/agent/registry/registry.go | Registers NewHermesACP() in LoadDefaults(); placement is consistent with the existing ordered list. |
| apps/backend/internal/agentctl/server/utility/acp_executor.go | Adds 'hermes' to allowedProbeCommands so CodeQL-safe exec.Command allowlist accepts the new binary for probe/inference. |
| apps/backend/internal/agent/agents/logos/hermes_acp_light.svg | SVG logo for light-mode display (dark card, light stroke); correctly paired with _dark.svg variant. |
| apps/backend/internal/agent/agents/logos/hermes_acp_dark.svg | SVG logo for dark-mode display (light card, dark stroke); correctly paired with _light.svg variant. |
Reviews (3): Last reviewed commit: "fix(backend): tighten Hermes ACP detecti..." | Re-trigger Greptile
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/backend/internal/agent/agents/hermes_acp.go`:
- Around line 28-29: Update the top-of-file installer comment that currently
states "hermes is installed via the upstream curl|bash script which puts the
`hermes` Python entry point on PATH" to reflect the current install flow
described later in the file (the multi-step Python/uv setup and docs-based
guidance around the `hermes` entry point). Replace the stale curl|bash
instruction with a brief, accurate summary of the documented installation steps
and point readers to the project docs/README for the full multi-step
Python/virtualenv installation instructions; ensure the comment mentions the
`hermes` Python entry point and the docs link so future maintainers follow the
current flow.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: eb4116ce-5577-4c12-9433-bbb9266dd3df
⛔ Files ignored due to path filters (2)
apps/backend/internal/agent/agents/logos/hermes_acp_dark.svgis excluded by!**/*.svgapps/backend/internal/agent/agents/logos/hermes_acp_light.svgis excluded by!**/*.svg
📒 Files selected for processing (4)
apps/backend/internal/agent/agents/hermes_acp.goapps/backend/internal/agent/agents/new_acp_agents_test.goapps/backend/internal/agent/registry/registry.goapps/backend/internal/agentctl/server/utility/acp_executor.go
There was a problem hiding this comment.
1 issue found across 6 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Address PR #1117 review feedback: - IsInstalled now matches the Nous Research version banner ("Hermes Agent v…") via WithCommandOutput instead of a bare LookPath, so a stray `hermes-engine` (Meta's Hermes JS engine, common in React Native setups) on PATH no longer falsely reports the ACP agent as available. - Struct comment now describes the multi-step Python/uv install flow that matches what InstallScript returns, instead of the stale curl|bash line.
|
Claude finished @jcfs's task in 2m 55s —— View job Code Review
FindingsAll prior review comments confirmed addressed in
One observation (non-blocking):
Test coverage note (non-blocking):
Summary
Verdict: Ready to merge. The scaffold is correct and consistent with peers. Both previously flagged issues are cleanly addressed. No new logic, security, or correctness problems introduced. |
Adds Nous Research Hermes as a selectable ACP agent. Hermes ships an ACP stdio adapter (hermes acp), so it slots into the existing native-binary scaffold alongside Kimi/Cursor/Kiro/Trae/Omp. InstallScript points at the upstream docs URL instead of a curl|bash recipe: Hermes uses a multi-step Python/uv installer that may need system packages and a follow-up `hermes setup`, so it isn't a clean one-shot like `npm install -g`.
Address PR #1117 review feedback: - IsInstalled now matches the Nous Research version banner ("Hermes Agent v…") via WithCommandOutput instead of a bare LookPath, so a stray `hermes-engine` (Meta's Hermes JS engine, common in React Native setups) on PATH no longer falsely reports the ACP agent as available. - Struct comment now describes the multi-step Python/uv install flow that matches what InstallScript returns, instead of the stale curl|bash line.
b9935e7 to
133b0d8
Compare
|
Actionable comments posted: 0 |
|
Claude finished @jcfs's task in 2m 15s —— View job Code Review
FindingsNo new blockers or actionable issues found. Both previously flagged items from the first review cycle are confirmed fixed:
All six wiring points are correct and consistent: Two pre-existing, non-blocking observations (flagged in prior round, no change needed):
Summary
Verdict: Ready to merge. |
Adds Nous Research Hermes as a selectable ACP agent so users can pick it from the agents list — fulfils #1090. Hermes ships an ACP stdio adapter (
hermes acp), so it drops into the existing native-binary scaffold alongside Kimi/Cursor/Kiro/Trae/Omp without needing a new protocol path.Important Changes
InstallScript()returns a docs URL instead ofcurl | bash. Hermes uses a multi-step Python/uv installer that may need system packages and a follow-uphermes setup— not a clean one-shot likenpm install -g, so a runnable install button would be misleading. Matches the Kimi/Cursor pattern for native-binary agents that aren't on npm.\"hermes\"toallowedProbeCommandsinacp_executor.go— required so the host-utility probe's CodeQL-safeexec.Commandallowlist accepts the new binary.Validation
make fmtgo build ./...make test(all packages green, includingTestNewACPAgents_*andTestProbeAllowlist_CoversEveryEnabledInferenceAgent)make lint(0 issues)Checklist
Closes #1090
Preview Environment
133b0d8