Cocobox

Schedules

A schedule is a saved prompt that runs on a timer: hourly, every few hours, daily, on weekdays, or once. Each run gets a fresh worktree and its own tab, and runs unattended: it may edit its own worktree and run the commands you list, and everything else it asks for is refused with a note. Schedules run while Cocobox is open and your Mac is awake.

See your schedules

  1. Open the right panel and pick Schedules. Each schedule shows its space, agent and timing, its recent runs with what each did, and Run now and Edit. The tick box at the top right of a card turns it on or off.

    The Schedules panel with four schedules: their timing, recent runs and Run now and Edit buttons
    open goes to a run's tab; a quiet run is archived.
  2. In the sidebar, each schedule sits under its space with its runs nested below it. Click a schedule's row to edit it in a sheet.

    The Agents sidebar: two schedules with their runs nested under them, one skipped

Make a schedule

  1. Click New schedule. Give it a Name, pick the Space and Agent (and a Model, or leave the agent's default), and write the Prompt: what the agent does each run.

    The New schedule form filled in: Weekly audit, Weekdays at 07:15, npm test allowed
  2. Under When, pick Hourly, Every N hours (2 to 12, counted from midnight), Daily or Weekdays and a time, or Once and a date and time.

    When: Once selected, with a date and time field
  3. Under Commands it may run unattended, list the commands a run may use, one per line, or click a suggestion. These are exact prefixes: npm test allows npm test -- auth, not npm testx. Pushes, network, installers, database clients, paths outside the worktree and shell operators like ; & | are never allowed.

  4. Leave Skip when the base branch hasn’t moved since the last run ticked to save runs: no agent starts, and the run shows as "skipped: nothing changed".

  5. Click Create.

A scheduled run can edit its own worktree if its agent supports unattended edits. The editor warns you if the agent will be unable to edit.

What a run does

  1. At its time, the schedule opens a new tab in the background, in a fresh worktree of its own, and sends the prompt. Its edits stay in that worktree. The tab is named after the schedule and the time.

  2. The run's tab has a strip with the result so far and an unattended tag. Anything the run was refused shows in the chat. Edit job opens the schedule; Run again runs it now.

    A scheduled run's tab: the strip with 3 files changed and 2 refused, the transcript, and a refused git push
  3. Type in a run's tab to take it over: the tag changes to interactive and it asks you like any tab.

  4. A run that changed nothing is archived quietly. A run with changes, or one that failed, notifies you once.

Missed runs

If Cocobox was closed or the Mac asleep at the time, one missed run from the last 24 hours is made up when Cocobox can, marked as a catch-up. A Once schedule always runs when Cocobox can, however late, then reads "Ran on" with the date.

Spend cap per run

Every scheduled run has a spend cap, $5 a run by default. Change it in Settings › Safety & spend › Spend caps › Scheduled runs, in dollars or tokens. A run over its cap stops, is marked failed, and notifies you. See Spend caps.

Ask an agent to schedule something

  1. Tell an agent "every morning at 8, triage new issues" or "tomorrow at 8am, once". It creates the schedule in Cocobox, not in its own scheduler.

  2. If the tab is allowed to edit, the schedule is saved straight away and announced at the bottom of the window, with Open and Delete (Delete asks "sure?" first). The panel marks it by agent-7.

    agent-7 created schedule “Morning standup notes” (daily at 08:00), with Open and Delete
  3. If the tab asks before each change, the agent proposes instead: the New schedule form opens filled in, and nothing is saved until you click Create.

    A New schedule form an agent proposed, filled in, waiting for Create

An agent can change or delete only the schedules it made itself. Runs are unattended whoever made the schedule.

Share or import a schedule

In the Schedules panel, Share… on a schedule gives you its file, with secrets, emails and your own paths replaced by placeholders. Import… brings one in. An imported schedule arrives off: turn it on once you have read it.