Skip to content

feat: add boot-md example hook — run BOOT.md on gateway startup#3733

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-ab59de22
Mar 29, 2026
Merged

feat: add boot-md example hook — run BOOT.md on gateway startup#3733
teknium1 merged 1 commit intomainfrom
hermes/hermes-ab59de22

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Summary

New example hook that runs a ~/.hermes/BOOT.md checklist on every gateway startup. Inspired by OpenClaw's boot.md feature, implemented as a copyable example hook rather than built-in behavior.

Install:

cp -r gateway/example-hooks/boot-md ~/.hermes/hooks/boot-md

Create ~/.hermes/BOOT.md:

# Startup Checklist
1. Check if any cron jobs failed overnight
2. Send a message to Discord #general saying 'Gateway restarted'
3. Check /opt/app/deploy.log for errors

The agent runs in a background thread so it doesn't block gateway startup. If nothing needs attention, it replies with [SILENT] to suppress delivery.

Files

File Description
gateway/example-hooks/boot-md/HOOK.yaml Hook manifest
gateway/example-hooks/boot-md/handler.py Handler with boot prompt, background thread, error handling
gateway/example-hooks/README.md Index of available example hooks
website/docs/user-guide/features/hooks.md Boot-md added as first example with install instructions

Tests

Handler loads correctly, skips missing/empty BOOT.md, runs without error on valid content, prompt includes [SILENT] instruction.

The gateway now ships with a built-in boot-md hook that checks for
~/.hermes/BOOT.md on every startup. If the file exists, the agent
executes its instructions in a background thread. No installation
or configuration needed — just create the file.

No BOOT.md = zero overhead (the hook silently returns).

Implementation:
- gateway/builtin_hooks/boot_md.py: handler with boot prompt,
  background thread, [SILENT] suppression, error handling
- gateway/hooks.py: _register_builtin_hooks() called at the start
  of discover_and_load() to wire in built-in hooks
- Docs updated: hooks page documents BOOT.md as a built-in feature
@teknium1 teknium1 force-pushed the hermes/hermes-ab59de22 branch from 8895e81 to 4e86271 Compare March 29, 2026 15:48
@teknium1 teknium1 merged commit 95f99ea into main Mar 29, 2026
3 of 4 checks passed
jecruz pushed a commit to jecruz/hermes-agent that referenced this pull request Mar 29, 2026
…earch#3733)

The gateway now ships with a built-in boot-md hook that checks for
~/.hermes/BOOT.md on every startup. If the file exists, the agent
executes its instructions in a background thread. No installation
or configuration needed — just create the file.

No BOOT.md = zero overhead (the hook silently returns).

Implementation:
- gateway/builtin_hooks/boot_md.py: handler with boot prompt,
  background thread, [SILENT] suppression, error handling
- gateway/hooks.py: _register_builtin_hooks() called at the start
  of discover_and_load() to wire in built-in hooks
- Docs updated: hooks page documents BOOT.md as a built-in feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant