You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hermes plugin uses only part of Hermes's plugin interface; its hooks also run in the gateway #232
Hermes plugin hooks run in both the CLI and the gateway (event hooks: "CLI + Gateway"). plugin/hermes uses only part of that. It follows only classic CLI and one-shot sessions, so gateway sessions (Discord, Telegram, the API server), sub-agents and cron get no micro-skills or loop guard (docstring). Tool pruning, the repository map and /te are not ported (README).
Hermes documents an interface for each missing piece:
Tool pruning: llm_requestmiddleware can "replace effective provider kwargs before provider execution", and the request includes the tool definitions.
Repository map: the same pre_llm_call hook the plugin already uses for micro-skills.
Sub-agents: subagent_start passes parent_session_id and child_session_id.
/te: ctx.register_command "adds /name in CLI and gateway sessions" (plugins).
We ported this repository at 7042ea8 with these interfaces: DylDigitals/tokeneconomizer-for-hermes. It runs in gateway sessions and supports 39 of the 41 capabilities in its MATRIX.md, with 131 offline tests and real-session runs on Hermes 0.22.2. It cannot prune tools under the codex_app_server runtime or import old session history.
Related: #85. Would you take a PR that extends plugin/hermes, or would you rather link our adapter from its README section?
At current main (747b801, 2026-11-25) the coverage has widened since this was filed: GATEWAY_SOURCES now includes api_server, discord, telegram, slack, whatsapp, signal, matrix, mattermost, email, sms, webhook, and SCHEDULED_SOURCES includes cron. So gateway chat sessions and cron are followed now — worth updating the issue.
One gap remains, and it is a large one on desktop installs: desktop is in no source list. Hermes 0.23.5 classes it as a UI transport (agent/session_source.py:17: UI_TRANSPORT_SOURCES = frozenset({"tui", "desktop"})), and FOLLOWED_SOURCES = USER_SOURCES + GATEWAY_SOURCES + SCHEDULED_SOURCES, so every desktop session is dropped silently. On this install desktop is the main surface, so the plugin records nothing even when enabled and running.
Suggestion: add desktop (and tui, same class) to the followed set, or state explicitly that UI transports are out of scope. Note that hermes -z is a oneshot session and is already covered — that path has the separate row-timing problem tracked in #172.
Activity
rjsanjaymandal commentedon Nov 30, 2026
At current
main(747b801, 2026-11-25) the coverage has widened since this was filed:GATEWAY_SOURCESnow includesapi_server,discord,telegram,slack,whatsapp,signal,matrix,mattermost,email,sms,webhook, andSCHEDULED_SOURCESincludescron. So gateway chat sessions and cron are followed now — worth updating the issue.One gap remains, and it is a large one on desktop installs:
desktopis in no source list. Hermes 0.23.5 classes it as a UI transport (agent/session_source.py:17:UI_TRANSPORT_SOURCES = frozenset({"tui", "desktop"})), andFOLLOWED_SOURCES = USER_SOURCES + GATEWAY_SOURCES + SCHEDULED_SOURCES, so every desktop session is dropped silently. On this install desktop is the main surface, so the plugin records nothing even when enabled and running.Suggestion: add
desktop(andtui, same class) to the followed set, or state explicitly that UI transports are out of scope. Note thathermes -zis aoneshotsession and is already covered — that path has the separate row-timing problem tracked in #172.