Repository navigation
Scheduled tasks: run a script, a prompt, or both #25056
zachtjohnson01
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Request
Let a scheduled task run a script (a shell command in the project folder) as well as, or instead of, a prompt:
Triggers stay the same (interval, time of day, webhook).
Why
Many recurring jobs are fixed steps that need no judgment: check a queue, read machine load, start the next item. Today each run of those jobs wakes an agent just to call one tool, which costs model usage on every tick. An OS scheduler (launchd, systemd) avoids that but ties the job to one machine, and it isn't visible in T3.
The "both" mode also helps judgment jobs (sweeps, triage): a cheap script checks whether anything changed, and the agent runs only when it did.
A script can already change its own next run time by calling the existing schedule-update tool, so that doesn't need to be part of this.
Related
All reactions