Scheduled agent: how to change what it does
In the project "‹project name›" one agent works by itself on a schedule. This page says what lies where and how to change it.
What is where
| What | Where |
|---|---|
| The agent: what it does, on which harness and model, which rights | /agents/tasks-digest.md |
| When it works and how many times | /automations/tasks-digest-daily.md |
| What it writes | /notes/open-tasks.md |
| The run log: when, how it ended, the log | /runs |
Change the agent's work
The agent's work is the text of its page below the header. Rewrite it in your own words: what to read, what to write, into which file. Example: "Read notes/ for the week and write notes/week.md, the results of the week".
- The agent can write only inside the project.
access: readmeans read only. - If it needs the internet, set
network: true. Claude Code gets web search and page reading. - For longer than 5 minutes, set
limits: {minutes: 15}. - A long instruction can be kept on a separate page:
instructions: /agents/prompts/digest.md.
Change the harness or the model
The fields runtime and model in the agent page. Harnesses: claude (Claude Code), codex, opencode, dsh, hermes. The harness package must be installed in the project: shtuk install harness-codex. The default Claude Code model is haiku, the cheap one.
Change the time
In the automation: trigger: {kind: clock, at: "07:00", tz: UTC}. Several times a day: trigger: {kind: schedule, cron: "0 9,18 * * *"} and limits.perDay: 2. To stop: mode: manual.
Check and run by hand
shtuk check # is everything written correctly
shtuk run harness ask --agent /agents/tasks-digest.md --dry-run # which command the harness will build
shtuk run harness ask --agent /agents/tasks-digest.md # run now
shtuk run schedule tick --now 2026-11-29T07:00:00Z # a tick with the time set
Turn the schedule on
The schedule package turns nothing on by itself. shtuk run schedule cron prints a line for crontab -e, shtuk run schedule launchd writes a plist to .shtukbase/schedule/. You turn it on.
/README.md.Source text