Chapters

Chapter 48

Schedules

A schedule types a prompt into an agent on a timer: every 15 minutes, at fixed minutes past each hour, or at times of day.

On this page
  1. What a schedule is
  2. When it is typed
  3. Commands
  4. In a space file

A schedule types a prompt into an agent on a timer: every 15 minutes, at fixed minutes past each hour, or at times of day. It belongs to a workspace, or to this Mac, never to the session that added it. It goes on when the agent restarts, when the daemon restarts or is replaced at a login, and after an upgrade, and it never expires.

text
doz schedule add review --in team --to lead --at ":04,:19,:34,:49" --quiet-hours 20:00-06:00 --zone Australia/Sydney \
  --prompt-file ~/notes/review-loop.md
doz schedule ls
review  to lead  at :04,:19,:34,:49, quiet 20:00–06:00  Australia/Sydney  owner team  next 14:19  last: delivered

What a schedule is#

  • Its owner. --in W makes it a workspace's schedule, and --to names one of the workspace's agents. --mac makes it this Mac's, and --to names a session on this Mac. The workspace's page lists its schedules in a Schedules table, and doz workspace show W lists it under schedules (also in its --json).
  • When. --every 15m (or 2h, 1d) counts real time from when you added it. --at ":04,:34" is minutes past each hour, and --at "09:00,17:30" is times of day. These are clock times in the schedule's zone.
  • Its zone. --zone Australia/Sydney sets the zone for its clock times and its quiet hours. Without it, the zone is this Mac's. doz schedule ls and the plan always say which zone it is.
  • Its prompt. --prompt TEXT is typed as written. --prompt-file F is read each time it is sent, so when you edit the file, the next send uses the new text. doz schedule edit NAME --prompt … (or --at, --every, --quiet-hours, --zone, --to) changes the schedule. The next send uses the change, and nothing is restarted.

When it is typed#

  • Only when the agent is idle. For Claude Code, that means an empty prompt box, no spinner and no question on its screen. Dozable never types over your text and never interrupts a turn. It never answers one of Claude's questions either.
  • Never a queue. If a send comes due while the agent is working, it waits. If the next one comes due while the first still waits, the first is skipped and the new one waits instead. When the agent goes idle, the prompt is typed once. An agent that works through four sends gets one prompt when it finishes, not four.
  • Quiet hours. --quiet-hours 20:00-06:00 sends nothing between 20:00 and 06:00 in the schedule's zone. If a send is still waiting when quiet hours begin, it is skipped. The first send after the quiet hours is on time.
  • Daylight saving. A change of the clocks never doubles a run and never loses one. --every counts real time. A time of day that the clock skips runs just after the gap, and a time of day that the clock repeats runs once.
  • A stopped agent. While the agent is stopped or ended, each send is skipped, and the skip is said: in the schedule's last outcome, the daemon's log, the workspace's log, and the first time in a row in this Mac's Needs you (or, for a workspace's schedule, in its room). Nothing is saved up for later. The next send is at its next time.
  • A Mac that slept. A send whose time passed while the Mac slept, or while Dozable was not running, is sent once when it is back, never once for each time it missed.

Each send's outcome is kept: delivered, collapsed (typed once for several sends that came due while it worked), skipped-busy (replaced by a later send while it worked), skipped-quiet, agent-down, or prompt-missing (its prompt file could not be read). doz schedule show NAME lists the last due times, each with its outcome and newest first, by the time it was due. A skipped send also shows when it was decided, and a late one when it was typed. A send waiting for the agent now is listed as waiting.

Commands#

  • doz schedule ls [--in W] lists each schedule with its owner, agent, times, quiet hours, zone, next send and last outcome. doz schedule show NAME shows one in full.
  • doz schedule pause NAME stops it sending until doz schedule resume NAME. A resume starts from now, so the sends that came due while it was paused are not made.
  • doz schedule run-now NAME sends it now. Quiet hours and a pause do not hold it back, but it still waits until the agent is idle.
  • doz schedule rm NAME removes it. A workspace's delete removes its schedules. A run's finish removes a space file's schedule that lives: run.

On the workspace's page, the Schedules table has Pause, Resume and Run now. They work only in this Mac's own browser. Another computer sees the table.

In a space file#

In a doz: space/3.2 file, schedules: are added by up, or changed to what the file says when they are there already:

yaml
schedules:
  review: { to: lead, at: ":04,:19,:34,:49", quiet: "20:00-06:00", zone: Australia/Sydney, prompt_file: review-loop.md }
  morning: { to: lead, every: 1d, prompt: "Post the morning summary." }

A schedule's prompt_file: is read when you run doz workspace plan or up, beside the space file. To use an edited prompt file, run up again (nothing else is restarted), or add the schedule with doz schedule add --prompt-file, which reads the file at each send.

Edit this page on GitHub · Chapter 48 of 50