ShtukbaseStandard
package page→ /README.md

pages/README.md

46 lines, 2.3 KB. As a page.

  1. ---
  2. type: Page
  3. title: "Scheduled agent: how to change what it does"
  4. icon: "🛠️"
  5. ---
  6. In the project "{{name}}" one agent works by itself on a schedule. This page says what lies where and how to change it.
  7. ## What is where
  8. | What | Where |
  9. |---|---|
  10. | The agent: what it does, on which harness and model, which rights | [/agents/tasks-digest.md](/agents/tasks-digest.md) |
  11. | When it works and how many times | [/automations/tasks-digest-daily.md](/automations/tasks-digest-daily.md) |
  12. | What it writes | [/notes/open-tasks.md](/notes/open-tasks.md) |
  13. | The run log: when, how it ended, the log | [/runs](/runs.md) |
  14. ## Change the agent's work
  15. 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".
  16. - The agent can write only inside the project. `access: read` means read only.
  17. - If it needs the internet, set `network: true`. Claude Code gets web search and page reading.
  18. - For longer than 5 minutes, set `limits: {minutes: 15}`.
  19. - A long instruction can be kept on a separate page: `instructions: /agents/prompts/digest.md`.
  20. ## Change the harness or the model
  21. 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.
  22. ## Change the time
  23. 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`.
  24. ## Check and run by hand
  25. ```
  26. shtuk check # is everything written correctly
  27. shtuk run harness ask --agent /agents/tasks-digest.md --dry-run # which command the harness will build
  28. shtuk run harness ask --agent /agents/tasks-digest.md # run now
  29. shtuk run schedule tick --now 2026-11-29T07:00:00Z # a tick with the time set
  30. ```
  31. ## Turn the schedule on
  32. 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.