# witcheer's Wingtips #28: cron jobs & workdir

Written by [witcheer](https://x.com/witcheer) at Nous Research. Republished with credit.

Canonical: https://hermeswatcher.com/wingtips/28  
Published: 2026-07-23  
[Original](https://notwitcheer.github.io/hermes-recipes/wingtips/28-cron-jobs-workdir/) · [On X](https://x.com/witcheer/status/2080346485745676561) · [Full collection](https://notwitcheer.github.io/hermes-recipes/) · [Official docs](https://hermes-agent.nousresearch.com/docs/user-guide/features/cron)

[Source Markdown](https://raw.githubusercontent.com/notwitcheer/hermes-recipes/8653fb699a137a32e81936fa33cabacd3f4f2095/docs/wingtips/28-cron-jobs-workdir.md): use this file as the base for relative links in the verbatim text below.

Sources: [Hermes docs: Cron](https://hermes-agent.nousresearch.com/docs/user-guide/features/cron)


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.
