Repository navigation
fix(tools): read the reserved agent-loop tool names from Hermes - #44
Merged
offendingcommit merged 2 commits intoOct 30, 2026
Conversation
The kit copied Hermes' intercepted tool names by hand as todo, memory, session_search and delegate_task. Hermes renamed todo to todo_list and rewrites the legacy names todo, cronjob, process, tour and tip before registry dispatch, so the kit let a plugin register todo_list or cronjob and Hermes would silently swallow it. validate_tool_name now reads model_tools._AGENT_LOOP_TOOLS and _LEGACY_TOOL_ALIASES from the host, falling back to a literal that matches v0.22.5 outside a host. A contract test pins the fallback to the deployed host's sets so the copy cannot drift again unnoticed. Claude-Session: https://claude.ai/code/session_01B6XeAU5Gn7ZaLQJVSg4AKC
…ol-names-from-hermes
offendingcommit
changed the base branch from
main
to
chore/pin-deployed-hermes-v0.22.5
October 30, 2026 19:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
validate_tool_namerefused a hand-copied list of the names the Hermes agent loop intercepts:todo,memory,session_search,delegate_task. Hermes v0.22.5 (and the v0.21.2 pin) interceptstodo_list, nottodo, and also rewrites the legacy namestodo,cronjob,process,tourandtipbefore dispatch. A plugin could registertodo_listorcronjoband Hermes would silently swallow it.Change
_agent_loop_tool_names()readsmodel_tools._AGENT_LOOP_TOOLS | _LEGACY_TOOL_ALIASESfrom the host. Outside a host it falls back to a literal matching v0.22.5.todo_list,cronjobandtipare rejected.Proof
just test: OK.just test-contract-pinned: OK, 18 tests.~/hermes-plugin-*registers any of the newly reserved names.https://claude.ai/code/session_01B6XeAU5Gn7ZaLQJVSg4AKC