Hermes Agent Hooks are used to automate scripts or actions when specific events occur. It is suitable for notifications, audits, task completion reminders, failure alarms, and log archiving, rather than replacing cron for scheduled tasks.
Which scenarios are suitable for
- Long tasks are reminded at regular intervals.
- Send a Telegram or Slack notification when the task is over.
- Write logs when tool calls fail.
- Agent does a light audit after each step is executed.
How to write for novices
Start with the simplest notification script, and don't write complex hooks that modify files, make requests, and call production interfaces. The script of the hook should be repeatable, and failure should not affect the main task, so it is best to write the output to the log.
and cron
cron is "until time triggers task"; Hooks are "trigger actions when an event occurs". If you want to run a summary at 9 o'clock every day, use cron; If you want to automatically remind you when a task is completed, use Hook.
In a word: Hermes Hooks are good for event notifications and automated supplements, not scheduled tasks themselves.
Official open source address: https://github.com/NousResearch/hermes-agent; Official document entry: https://hermes-agent.nousresearch.com/.