Skip to content

Command Schedule

Manage scheduled prompts for this session.

Request: $ARGUMENTS

Use the schedule tools in the opencode namespace. They only see this session’s schedules.

  • To schedule something, call schedule_create. Choose when ({ in: "20 minutes" }, { at: "2026-10-27T09:00" }, { every: "1 hour" } or { cron: "0 9 * * 1-5" }, optional with until which defaults to every 30s). Add until (wake once then stop, 24h default timeout; matches immediately if already true) or if (gate each recurring slot with no model call; baselines state at creation without waking) using either { run: "..." } for a shell check or { code: "..." } for a Code Mode JavaScript check calling tools.<path>(...) statically (no fetch, 30s / 20 calls / 32 KB caps) and returning a boolean or { wake, state?, message? }. Code checks run once at creation with state = null and fail schedule_create if they throw. To stop a repeating schedule, add ends: { after: "8 hours" }, { at: "..." } or { times: 3 }. Write prompt as the instruction you will receive when it wakes, with enough context to act on it without this conversation.
  • To pause, resume or delete one, find its id with schedule_list, then call schedule_pause, schedule_resume or schedule_delete.
  • If the request is empty, call schedule_list and show this session’s schedules: name, when, status and next run.

Reply in one line: what changed and when it next fires.