Skip to content

feat(hermesagent): follow Hermes Agent v0.23.4 hook events and MCP single_instance - #3959

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2414-hermes-hooks-mcp
Nov 25, 2026
Merged

dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2414-hermes-hooks-mcp

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Follows the gaps listed in the 2026-11-25 re-check comment on #2414 (Hermes Agent v0.23.3 / v0.23.4).

What changed

  • hooks: added on_session_prompt and on_session_prompt_settled to HERMESAGENT_NATIVE_HOOK_EVENTS. Verified against hermes_cli/plugins.py at v0.23.4: VALID_HOOKS now holds 50 entries and SHELL_UNSUPPORTED_HOOKS is still only transform_api_error_classification, so 49 are accepted. The unknown-event warning, JSDoc links and docs/reference/supported-tools.md are re-pinned from v0.23.2 to v0.23.4.
  • mcp: copyHermesAdvancedFields now copies single_instance as a boolean (same as skip_preflight), in both export and import. Verified in mcp-config-reference.md and tools/mcp_tool_server_run.py at v0.23.4. A canonical value now reaches config.yaml, and a hand-written value survives import and regenerate.
  • Docs (docs/reference/file-formats.md) and src/generated/docs-content.ts updated. New test covers export, import, and regenerate for single_instance. The hook test now includes the two new events.

Skipped

  • Nothing from the 2026-11-25 comment was skipped. Older open items (project-scope skills, project-scope commands, .hermes.md suppressing the AGENTS.md chain) still need a maintainer decision and are out of scope here.

Refs #2414

🤖 Generated with Claude Code

https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4

…d MCP single_instance

Add the on_session_prompt and on_session_prompt_settled shell-hook events
that Hermes Agent v0.23.4 added to VALID_HOOKS, so they no longer trigger
the undocumented-event warning, and re-pin the validated version to v0.23.4.

Copy the per-server MCP key single_instance (v0.23.3, boolean) in both
directions, so a canonical value reaches config.yaml and a hand-written
one is no longer dropped on import and clobbered on regenerate.

Refs #2414

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
@dyoshikawa
dyoshikawa merged commit 90f5571 into main Nov 25, 2026
11 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2414-hermes-hooks-mcp branch November 25, 2026 01:35
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