witcheer's Wingtips #28: cron jobs & workdir

Republished in his own words, with credit.

Back to wingtips

#28 · cron jobs & workdir

· Scheduling & automation · CLI / Gateway

Hermes Wingtips #28: cron jobs & workdir

a cron job runs in a completely fresh session, detached from any repo: no AGENTS.md is loaded, and the terminal and file tools start from wherever the gateway happens to be running.

the fix is one flag:

(1) hermes cron create "every 1d at 09:00" "audit open PRs, summarise CI health" --workdir /home/me/projects/acme

(2) or from the chat directly, just tell Hermes which directory the job should run in (the cronjob tool takes workdir= the same way)

with workdir set, the job loads AGENTS.md from that directory and every file tool runs inside it. the path must be absolute and exist, or the create is rejected.

All tips are written by witcheer and collected here with credit. Card images stay on his X posts.

witcheer says each tip ran on a real Hermes box before it shipped. Hermes changes fast, so check your version and the linked doc.