Skip to main content

Module hermes

Module hermes 

Source
Expand description

Hermes coding-agent adapter (Phase 42).

Launches hermes -z "<prompt>" --yolo --accept-hooks in headless-safe oneshot mode. The prompt is passed via -z. Environment variable HERMES_ACCEPT_HOOKS=1 is injected to avoid interactive prompts on shell hooks.

Slash commands (/gsd-*) are rendered via standard claude-style prompt rendering. Subagent dispatch capability is dynamically probed via hermes tools list checking for the enabled delegation toolset.

Structs§

HermesDriver
The modular driver for Hermes (Phase 42): headless -z oneshot launch, HERMES_ACCEPT_HOOKS=1 environment, standard claude-style prompt rendering, and dynamic delegation subagent dispatch probing.

Functions§

hermes_subagent_dispatch_available
Dynamically probe whether Hermes has the delegation toolset enabled.
hermes_subagent_dispatch_available_with
Inner helper parameterized on output function for unit testing without invoking real CLI.
parse_hermes_tools_list_for_delegation
Parse hermes tools list stdout to check if delegation toolset is enabled.