James' Growth Diary
Jun 15, 2026 · Backend Development
How Slash Commands Are Routed in the Hermes TUI Gateway
The article explains the design of Hermes' terminal UI gateway, detailing why the TUI does not import the Agent directly, how JSON‑RPC over stdio or WebSocket enables local and remote modes, and how slash commands are processed through a two‑layer routing system with a dedicated _SlashWorker subprocess and a pure‑function crash‑recovery plan.
Crash recoveryHermesJSON-RPC
0 likes · 16 min read
