Skip to content

Scheduler

With /loop, you can send a prompt automatically at a fixed interval or at a set time. In “Scheduler” in the sidebar, you can list loops and open, edit, pause, resume, and stop them.

Use it when you want to ask the Agent to do the same check or task regularly. For example, you can ask it to run the tests at a fixed interval, or to summarize the previous day’s status at the same time every day.

Type one of the following formats in the input box and send it.

  • /loop 10m <message>: Sends at a fixed interval. The units are s, m, and h, and the interval must be between 1m and 24h. The first message is sent right after the loop starts.
  • /loop 9:00 <message>: Sends at the same time every day. It does not send right after the loop starts; it sends at the specified time.

If you type in any other way, the schedule is interpreted before the loop starts. The schedules that can be interpreted are interval, daily, weekly, and once. Daily, weekly, and once loops do not send right after they start; they send at the specified time. If the schedule cannot be interpreted, a message asks you to specify it again. The Sub Model is used to interpret schedules written in text.

/loop cannot run in the following cases.

  • During a response
  • When there are attachments
  • When it specifies repeating an app command (/new, /compact, /steer, /loop)
  • When the schedule or the message is missing

The number of loops is as follows.

  • In a normal worktree and in the Super Secretary, you can have only one loop. Running a new /loop stops the existing loop and replaces it.
  • In a Bot’s dedicated chat, new loops are added without stopping the existing ones, and you can have several.

Loops do not run while the app is closed. While a loop is running, its status (schedule, next run time, and message) is shown above the input box.

  • Send /loop stop to stop all loops of that worktree.
  • “Stop” on a row in the Scheduler stops only that loop.
  • Sending /new also stops the loops of that worktree (including paused loops).
  1. Press “Scheduler” in the sidebar. The list of loops appears. Paused loops are also shown.
  2. Use the buttons on each row.
  • Open: Opens the chat of that loop.
  • Edit: Edits the loop’s prompt.
  • Pause: Pauses the loop. On a paused row, “Pause” changes to “Resume”.
  • Stop: Stops the loop.

The list shows the schedule, start time, and number of runs. The next run time is also shown, but it may not appear on paused rows, or while an interval loop is running or waiting to run.

The Scheduler listing two Ready loops and two Paused loops