opencove icon indicating copy to clipboard operation
opencove copied to clipboard

feat: add Hermes agent provider integration

Open UbiStaff opened this issue 6 months ago • 0 comments

Change Scope

  • [ ] Trivial / Typo
  • [x] Small (single feature, focused PR)
  • [ ] Large (architectural, cross-cutting changes)

What Does This PR Do?

Integrate Hermes CLI as a native agent provider, alongside the existing Claude Code, Codex, OpenCode, and Gemini CLI providers.

Users can configure their Hermes CLI executable path in Settings → Agent Providers and spawn Hermes agent nodes directly on the canvas.

Modifications

  • Settings panel: new hermes provider entry with configurable executable path
  • Agent nodes on canvas: create Hermes agent nodes that launch interactive terminal sessions
  • Command modes: hermes chat (interactive), hermes chat -q <prompt> (one-shot), hermes chat --resume <id> (session resume)
  • Session auto-discovery: read session inventory from ~/.hermes/sessions/sessions.json
  • Type system: extend AgentProviderId, AgentModelCatalogSource, and all related union types
  • IPC validation gates: update all provider normalization/validation paths
  • Frontend UI: layered diamond SVG icon, teal accent color, i18n labels (EN/ZH)
  • Tests: update 3 unit suites for provider order and defaults

Delivery Checklist

  • [x] Code builds cleanly (pnpm typecheck + pnpm build)
  • [x] Tests pass (pnpm test)
  • [x] Formatting / lint passes (pnpm format:check + pnpm lint)
  • [x] Agent spawn and terminal interaction verified manually
  • [x] No regressions introduced to existing agent providers

UbiStaff avatar Jun 03 '26 09:06 UbiStaff