Repository navigation
Add Hermes Agent to the terminal agent providers (one-line runner.py allow-list entry) #34444
Replies: 1 comment
|
@willkennedy78 Alex, you nailed the core issue: mapping 'hermes' to 'acp.run' is the exact fix needed to avoid the 'Unsupported terminal agent' error. Currently, forcing Hermes into the 'opencode' slot creates a semantic mismatch—the UI labels it as OpenCode, which confuses users and blocks the native OpenCode provider slot. This isn't just a naming convention; it's about ensuring the agent selection logic correctly routes the ACP handshake. Since your test confirmed that streaming, session control, and permission prompts all function identically on the shared 'acp.run' path, adding the explicit 'hermes' entry eliminates the workaround without introducing new latency or security overhead. The one-line change aligns the provider name with its actual implementation, making the agent bridge more robust for users running Hermes locally. |
Uh oh!
There was an error while loading. Please reload this page.
Open Terminal's agent bridge works well with ACP agents. I'd like to propose adding Hermes Agent (MIT, ACP v1 via
hermes acp) as a provider.Open Terminal side: open-webui/open-terminal#244 adds
hermesto its provider list, session router and README. It reuses the shared ACP adapter, like Gemini CLI, Cline and OpenCode.Open WebUI side:
backend/open_webui/utils/agents/runner.pyhas its ownPROVIDERSallow-list. With only the Open Terminal change,hermes/<model>appears in the model selector, but sending a message fails withUnsupported terminal agent. The change needed is one line:What I tested: Open WebUI 0.13.3 with Open Terminal 0.17.8, running Hermes Agent 0.23.1 through the
opencodeprovider slot (OPEN_TERMINAL_OPENCODE_COMMANDpointing athermes acp). This is the sameacp.runpath the new entry would use. Streaming replies, Stop, continuing a conversation, andsession/request_permissionwith "Ask for approval" all work: Allow runs the command and Deny refuses it. Theopencodeslot works as a stopgap, but it mislabels the agent and takes over a slot that people may want for OpenCode itself.Would you be open to adding
'hermes': acp.run? Happy to provide more test detail.All reactions