The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(hooks): resync skip warning names the profile allowlist too; docs say services never prompt
Tekniumafb53eb3330c
diff --git a/agent/shell_hooks.py b/agent/shell_hooks.pyindex c49bb479b9c..fff843cd67a 100644--- a/agent/shell_hooks.py+++ b/agent/shell_hooks.py@@ -206,9 +206,9 @@ def sync_from_config(load_cfg: Callable[[], dict[str, Any]]) -> None:wanted.append(spec)elif (home_key, spec.event, spec.command) not in _skip_logged: # once per process, not per open_skip_logged.add((home_key, spec.event, spec.command))- logger.warning("shell hook for %s (%s) not allowlisted — skipped. Approve it at a CLI prompt, "- "or use --accept-hooks / HERMES_ACCEPT_HOOKS=1 / hooks_auto_accept: true.",- spec.event, spec.command)+ logger.warning("shell hook for %s (%s) not allowlisted in %s — skipped. Approve it at a CLI "+ "prompt for this profile, or use --accept-hooks / HERMES_ACCEPT_HOOKS=1 / "+ "hooks_auto_accept: true.", spec.event, spec.command, allowlist_path())manager = get_plugin_manager()with _registered_lock:_wire(manager, home_key, wanted)diff --git a/website/docs/user-guide/features/hooks.md b/website/docs/user-guide/features/hooks.mdindex 802d78fda99..0c42653be2d 100644--- a/website/docs/user-guide/features/hooks.md+++ b/website/docs/user-guide/features/hooks.md@@ -2023,7 +2023,7 @@ Three escape hatches bypass the interactive prompt — any one is sufficient:2. `HERMES_ACCEPT_HOOKS=1` environment variable3. `hooks_auto_accept: true` in `~/.hermes/config.yaml`-Non-TTY runs (gateway, cron, CI) need one of these three — otherwise any newly-added hook silently stays un-registered and logs a warning. `hermes gateway run --accept-hooks` (like `HERMES_ACCEPT_HOOKS=1` on the gateway) approves the hooks of every profile that gateway serves, including hooks added after it started.+Only a foreground `hermes chat` (or `hermes rl`) ever asks. The gateway, cron, `hermes mcp serve`, `hermes acp` and CI never prompt, even when stdin looks like a terminal (a hidden console from a Windows login-item launcher does), so they need one of these three or an allowlist entry. Otherwise a newly-added hook stays un-registered and a warning names the profile's allowlist file it is missing from (`profiles/<name>/shell-hooks-allowlist.json` for a non-default profile). `hermes gateway run --accept-hooks` (like `HERMES_ACCEPT_HOOKS=1` on the gateway) approves the hooks of every profile that gateway serves, including hooks added after it started.**Script edits are silently trusted.** The allowlist keys on the exact command string, not the script's hash, so editing the script on disk does not invalidate consent. `hermes hooks doctor` flags mtime drift so you can spot edits and decide whether to re-approve.