Schedules
A schedule starts work at a time that you set. It can start one of three things:
- A chat session: a prompt for an agent, for example "Read my inbox and list the three most important items". The session shows in the sidebar like each other session.
- A workflow: a run of a workflow for a task, for example a review each night or a report each Monday.
- A team room: a run of a team in a new room, for example a plan for a task each morning.
Create a schedule
- Open the Schedulers area and select New schedule.
- Under Start, select Chat session, Workflow, or Team room.
- For a chat session, write the Prompt. Then select the Agent, the Model, the Effort, and the Permissions.
- For a workflow, select the Workflow and the Task. A workflow with variables shows one field for each variable. For a team room, select the Team. Optionally, select a Task and the Kind of work: Decide or Plan. Then write the Question or goal. Without a task, the team works on a goal. Each run opens a new room.
- Under Repeat, select when the schedule starts:
- Once: on a date at a time.
- Every day, Every weekday, or Every week: at a time.
- Every few minutes: after a number of minutes.
- Custom (cron): with one or more cron lines.
- Optional: write a Name. Without a name, the schedule uses the first line of the prompt or the name of the task file.
- Select Save schedule.
To change a schedule, select it in the list. The form opens with its values.
The chat and the run panel of a workflow also create a one-time schedule: a timer. The list shows a timer like each other schedule. See Chat and Runs.
Variables in the prompt
A prompt can hold variables. Write a variable as {{name}}, for example: "Review PR(s) {{pr_numbers}} in {{project}} project." A name holds letters, digits, and underscores.
The form shows each variable of the prompt under Variables, at the end of the form. For each variable, select its kind and its value:
- Text: a text that you write.
- Project: a project of the vault.
- Pull requests: one or more open pull requests. The list holds the pull requests of the project of a Project variable, so the prompt needs a project variable too.
- Task: a task of the vault. The prompt gets a link to the task file.
When the schedule starts, Opfold writes the values into the prompt. The agent gets the full text. You can only save the schedule when each variable has a value.
Use the list
Each row starts with the time of the next run in large digits. Below the time, the row shows the day of the run: today, tomorrow, or a date. A schedule that is off shows its time in grey with "Off". The second line names the rhythm and what the schedule starts, for example "Every weekday · Chat session with claude".
- The switch turns a schedule on or off.
- The play button starts the schedule now. The next due time does not change.
- The status of the last run opens that run: the chat session in the chat, or the workflow run in the Workflows area.
- The trash button deletes the schedule.
When a schedule runs
Opfold runs the schedules while it is open. The app checks for due schedules every 30 seconds.
- A schedule that was due while Opfold was closed runs one time at the next start.
- A schedule that runs Once turns off after its run.
- A chat session and a team room need the open app. The background process does not run them.
For workflows, a background process can also run the schedules while Opfold is closed. Turn on Run the workflow schedules also while Opfold is closed in the Schedulers area. The switch moves at once, and its knob turns until the background process runs or stops. The background process needs a computer that is on and awake.
Permissions of a scheduled session
Nobody watches a scheduled session. Select the permissions with care.
- Accept edits is the default. The agent changes files and asks before a command.
- A question of the agent waits in the session. Open the session in the sidebar and answer the question.
- YOLO accepts each permission without a question. Use it only for prompts that you trust.
See what a schedule did
- The sidebar shows each session that a schedule started, with a clock icon.
- The Today view shows the workflow runs of a schedule with the name of the schedule.
- The Inbox shows a failed run and a decision that waits.
- The morning brief lists the runs of the night.
Good to know
- A scheduled workflow run has no plan card, because no person is at the computer.
- A scheduled workflow run stops at a gate like each other run, and waits for you.
- Turn on Keep the computer awake in the settings, so the computer does not sleep during a run.