Skip to content

Scheduled tasks: run a script, a prompt, or both #24947

Closed

Description

@zachtjohnson01

Request

Let a scheduled task run a script (a shell command in the project folder) as well as, or instead of, a prompt:

  • Prompt only: what exists today.
  • Script only: the command runs on the trigger and its output is posted to the task's thread. No agent turn.
  • Both: the script runs first and its output is passed into the prompt. If the script exits without output (or with a chosen exit code), the agent turn is skipped.

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

Activity

  1. locked and limited conversation to collaborators on Oct 25, 2026
  2. converted this issue into a discussion #25056 on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions