Skip to content

fix(tools): read the reserved agent-loop tool names from Hermes - #44

Merged
offendingcommit merged 2 commits into
chore/pin-deployed-hermes-v0.22.5from
fix/reserved-tool-names-from-hermes
Oct 30, 2026
Merged

offendingcommit merged 2 commits into
chore/pin-deployed-hermes-v0.22.5from
fix/reserved-tool-names-from-hermes

Conversation

@offendingcommit

Copy link
Copy Markdown
Owner

Problem

validate_tool_name refused 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) intercepts todo_list, not todo, and also rewrites the legacy names todo, cronjob, process, tour and tip before dispatch. A plugin could register todo_list or cronjob and Hermes would silently swallow it.

Change

  • New _agent_loop_tool_names() reads model_tools._AGENT_LOOP_TOOLS | _LEGACY_TOOL_ALIASES from the host. Outside a host it falls back to a literal matching v0.22.5.
  • Unit test: todo_list, cronjob and tip are rejected.
  • Contract test: the fallback and the host lookup both equal the deployed host's sets.

Proof

  • just test: OK. just test-contract-pinned: OK, 18 tests.
  • Falsifier: restoring the old four-name list fails both new tests: 3 unit subtests, plus the contract test.
  • No consumer plugin under ~/hermes-plugin-* registers any of the newly reserved names.

https://claude.ai/code/session_01B6XeAU5Gn7ZaLQJVSg4AKC

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
@offendingcommit
offendingcommit changed the base branch from main to chore/pin-deployed-hermes-v0.22.5 October 30, 2026 19:23
@offendingcommit
offendingcommit added this pull request to stack #47 October 30, 2026 19:23
@offendingcommit
offendingcommit merged commit 369c388 into main Oct 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant