Notizen aus der Praxis
My Hermes Agent Connected Itself
My Hermes agent installed its own connector to the Hayate WebUI. Hermes keeps its gateway, memory and history, and the dashboard only gets a door the agent opens from the inside.
ヘルメスが
内から叩く
冬の窓Hermes
knocks from the inside
on the winter window.
At 11:12 this morning I opened a new chat in the Hayate WebUI and typed "Hello". The agent that answered was Kalliope, my research and writing agent. Kalliope runs on Hermes, on a Mac mini in my homelab, and an hour earlier the WebUI had no way to talk to it.
Kalliope set up that connection on its own. I pasted one generated prompt, the agent installed its connector, and I clicked approve. The part I care about more is what we did not build: the WebUI does not turn Hermes into a model behind a chat box. Hermes keeps its gateway, its tools, its memory and its history, and the window talks to it through a door that Hermes opens from the inside.
Kalliope also wrote the first draft of this post, from inside that chat.
Hermes Keeps Its Gateway
The quick way to get Hermes into a web chat is to call it like a model through an OpenAI-compatible endpoint. The dashboard would then hold the conversation, and Hermes would be reduced to a text generator. The connector documentation rules that out in one line: this is not an OpenAI-provider integration1.
Hermes is a normal enrolled agent instead. A small connector runs on the same host, attaches to the Hermes gateway that is already running and opens one outbound AgentLink WebSocket to the dashboard. The gateway stays the owner of execution and history. No public Hermes port is created, and opening the browser does not start a second agent runtime1.
Our homelab gateways are older than the newer canonical gateway attach contract, so the connector has a second mode for them. It uses the sessions and runs API the running gateway already serves, with its event stream, steer, stop and approvals. Provider, memory, skills and credentials stay configured on the Hermes host, and the connector sends no model override1.
The Agent Does Its Own Setup
If the agent keeps its runtime, it should also do its own installation. In the WebUI I choose Agents, then Invite outbound agent, select Hermes as the agent type and copy the generated prompt into the agent2.
The prompt is a task, not homework for me. The agent clones the WebUI repository, builds it, finds its own profile and gateway from local runtime data, writes a private config file, pairs and installs a per-user service. The single-use invitation enters only through the input of the pairing process, with echo switched off, and never as a command-line argument or a file3. Then the connection shows up as incoming, and only I can approve it1.
The same invitation code knows three agent types today: Hayate, PI and Hermes3. The type picks the setup instructions and nothing else; it grants no extra authority1. PI agents use the same door, as described in yesterday's post Hayate's WebUI Also Drives PI Agents.
It Took Three Prompts
The first prompt went out at 07:15. Kalliope cloned the repository, looked for the Hermes adapter and did not find it, because the published snapshot did not contain it yet. Kalliope reported a version mismatch and stopped, and it did not try the PI commands as a substitute.
The adapter reached GitHub at 10:00. When I asked for a retry an hour later, the invitation had expired at 08:15, and the connector only said "Hermes connector failed". Kalliope compared the expiry time with the clock, named the expired code as the likely cause and stopped again, without a second attempt and without asking for another endpoint.
The third prompt worked. The agent enrolled at 11:11, the connector came up as a launchd service, I approved it, and one minute later I typed "Hello".
I like that morning more than a smooth demo. An agent that installs software on its own host has to stop when the facts do not fit, and Kalliope stopped twice for exactly the right reasons.
What the Connector Refuses
A connector that sends real work to a real agent needs firm limits, and most of what it does well is refusing.
It writes only into sessions it created itself. Kalliope also talks to me in Matrix, and those conversations stay where they are. Existing sessions can be shared, but only when they are listed explicitly, and then as read-only previews1.
A prompt carries an idempotency key, and before submission the connector writes an uncertainty marker to disk. If the answer gets lost, the prompt is not sent again, not even after a restart. The session stays read-only until I have looked at what happened in Hermes1.
A steer that arrives after a run has ended is refused, and it never turns into a new prompt. A finished turn does not tick off open todos, and a missing sub-agent is not reported as done. Features this mode cannot offer, such as the follow-up queue or media upload, are not shown in the UI at all1.
The Board Shows What Hermes Did
On the right side of the WebUI sits the same agent board that Hayate and PI agents use. For Hermes it shows the main run, the native todos, observed tool calls and the sub-agents with their goals and states1.
A test run against Kalliope had five tool executions and two real sub-agents, and both sub-agents finished. The agent's own todo list still had its second item in progress at the end, and the board renders it as open instead of declaring the plan complete1. That is the behavior I want from a dashboard: it shows what the agent reported, and it does not tidy up.
The Other Direction
The connector lets the WebUI drive Hermes. The Hayate plugins also have the reverse path: an MCP gateway through which Hermes, Claude Code or Codex can submit orders to a Hayate agent and poll their status. Such a client is never the operator, gets its own budget and conversation, and sees only its own orders4.
The Hermes adapter itself is small, at 929 lines in nine files, and it landed on GitHub today. Of its 29 unit tests, 28 pass on my machine and one is skipped.
Hermes did not have to change for any of this. It keeps its gateway, the WebUI keeps its distance, and the only thing between them is a connection the agent opened itself and I approved.