feat: add Hermes Agent support — configs, plugin, README#425
feat: add Hermes Agent support — configs, plugin, README#425tayuLuc wants to merge 1 commit intomksglu:nextfrom
Conversation
07de05b to
a4b5daa
Compare
a4b5daa to
41f6579
Compare
|
Why is it py? |
It's dictated by the Hermes runtime. Hermes Agent is a Python-based application, and its plugin system ( To hook into the agent's tool selection process (e.g., intercepting a This is analogous to the existing plugins in this repo: Cursor's |
What / Why / How
Adds Hermes Agent support to context-mode — the first upstream integration for this platform.
What: Configuration files, plugin, and README updates to support context-mode on Hermes Agent.
Why: Hermes Agent is an open-source AI agent framework by Nous Research with 130k+ GitHub stars, running across CLI, Telegram, Discord, and other platforms. It natively supports MCP servers and has a Python plugin system — making it a natural fit for context-mode.
How:
configs/hermes/AGENTS.md— routing rules for Hermes (same pattern as OpenClaw/OpenCode configs)plugins/context-saver/— Hermes Agent plugin withpre_tool_callandpre_llm_callhooks that enforce context-mode routingNo dependency on context-mode's npm package — the plugin uses Hermes' native
execute_codeas the sandbox, making it zero-dependency.Affected platforms
Test plan
hermes mcp add context-mode -- npx -y context-mode~/.hermes/plugins/context-saver/plugins.enabled: [context-saver]hermes gateway restartpre_tool_callblockscurl— model redirects toctx_executectx stats/ctx doctorutility commands work via MCPChecklist
npm testpasses (no JS/TS changes — Python plugin only)npm run typecheckpassesnextbranch (unless hotfix)Cross-platform notes
The plugin is pure Python 3.9+ — no native dependencies. Hermes Agent runs on macOS, Linux, and Windows (WSL).