Skip to content

docs(cron): worked recipes for the wakeAgent pre-run gate#26229

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-ac3adf17
May 15, 2026
Merged

docs(cron): worked recipes for the wakeAgent pre-run gate#26229
teknium1 merged 1 commit into
mainfrom
hermes/hermes-ac3adf17

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Lands the use cases from #2654 (sql / file_changed / command triggers) as documentation against the existing script + wakeAgent gate, instead of adding a parallel trigger subsystem.

The cron scheduler already ships a $0 pre-run gate: a job's script parameter runs before the LLM, and if its last stdout line is {"wakeAgent": false} the agent run is skipped entirely. All three of #2654's proposed trigger types reduce to a one-line script using this gate.

Changes

  • website/docs/user-guide/features/cron.md — extends the existing wakeAgent section with three worked recipes (file-change, external-flag, SQL-count), plus a tip warning users away from querying Hermes's internal state.db schema, plus credit to @iankar8 for prompting the writeup.

Validation

Markdown only; isolated from the broken builds on main (unrelated rl-training.md link warning + missing generated skills.json).

cc @iankar8 — thanks for surfacing the use cases on #2654.

Adds three pre-run gate recipes to the cron docs:
- file-change gate (stat + mtime + state file)
- external-flag gate (file presence)
- SQL-count gate (user's own database, not state.db)

These are the use cases @iankar8 proposed adding as a parallel
'trigger' subsystem in #2654. The existing `script` + `wakeAgent`
gate already covers all three at $0 — this lands the patterns as
documentation so users can find them, instead of adding a second
gating mechanism to the cron subsystem.
@teknium1 teknium1 merged commit 05d9f64 into main May 15, 2026
8 checks passed
@teknium1 teknium1 deleted the hermes/hermes-ac3adf17 branch May 15, 2026 08:34
@alt-glitch alt-glitch added type/docs Documentation improvements P3 Low — cosmetic, nice to have comp/cron Cron scheduler and job management labels May 15, 2026
DIZ-admin pushed a commit to DIZ-admin/hermes-agent that referenced this pull request May 16, 2026
…ch#26229)

Adds three pre-run gate recipes to the cron docs:
- file-change gate (stat + mtime + state file)
- external-flag gate (file presence)
- SQL-count gate (user's own database, not state.db)

These are the use cases @iankar8 proposed adding as a parallel
'trigger' subsystem in NousResearch#2654. The existing `script` + `wakeAgent`
gate already covers all three at $0 — this lands the patterns as
documentation so users can find them, instead of adding a second
gating mechanism to the cron subsystem.
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…ch#26229)

Adds three pre-run gate recipes to the cron docs:
- file-change gate (stat + mtime + state file)
- external-flag gate (file presence)
- SQL-count gate (user's own database, not state.db)

These are the use cases @iankar8 proposed adding as a parallel
'trigger' subsystem in NousResearch#2654. The existing `script` + `wakeAgent`
gate already covers all three at $0 — this lands the patterns as
documentation so users can find them, instead of adding a second
gating mechanism to the cron subsystem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cron Cron scheduler and job management P3 Low — cosmetic, nice to have type/docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants