Schedule work
Scheduled tasks
A scheduled task runs a prompt for you once at a later time, or repeatedly on a schedule. Tasks only run while the worker is running. You can read the results in your terminal, or have them posted through a messaging gateway, such as Discord or Slack. Connect a provider through getting started first.
Create your first task#
To try it out, schedule a task one minute from now and start the worker:
poppet tasks add summary --in 1m "Summarize my recent conversations"
poppet worker runThe worker prints a line each time a task starts and finishes. Leave it running, and in a second terminal, check the result:
poppet tasks list
poppet tasks show <task-id>tasks show lists each time the task was due, what happened, and the answer. Poppet calls each scheduled time an occurrence, and the commands below use that word.
Choose when a task runs#
Every task needs one of these:
| Option | Runs | Example |
|---|---|---|
--in | Once, after a delay in seconds, minutes, hours, or days | --in 30m, --in 2d |
--at | Once, at a date and time | --at 2099-10-22T09:00:00+01:00 |
--cron | Repeatedly, on a cron schedule in a time zone | --cron "0 9 * * *" --tz Europe/London |
For --at, include a time zone offset such as +01:00, or Z for UTC. For --tz, use a time zone name such as Europe/London or America/New_York.
Repeating tasks need a time zone. If you set timeZone in config.json, you can leave out --tz. Pass --tz to use a different time zone for one task.
A cron schedule has five parts: minute, hour, day of the month, month, and day of the week. For example, 0 9 * * * means 09:00 every day, and 30 8 * * 1-5 means 08:30 on weekdays.
poppet tasks add daily-summary --cron "0 9 * * *" --tz Europe/London "Summarize my recent conversations"A repeating task keeps the same local time when the clocks change for daylight saving. If the clocks skip its time, it runs at the next valid time. If a time happens twice, it runs once.
Each task remembers the provider and model from config.json when you create it, and keeps using them even if you change config.json later.
Each run starts a new conversation. It can read your profile and saved facts, search past conversations, and read web pages. A scheduled task cannot change memory or other tasks.
End a repeating task#
Add --until to stop a repeating task after a date and time:
poppet tasks add release-watch --cron "0 9 * * *" --tz Europe/London --until 2099-10-29T09:00:00+00:00 "Tell me only if the release page changed"In this example, the 09:00 run on 29 October is the last one. --until takes a future date with a time zone offset, and only works with --cron.
Once there are no runs left, tasks list shows the task as ended. It keeps its history. To start it again, set a later end time or remove it:
poppet tasks edit <task-id> --until 2099-11-30T18:00:00+00:00
poppet tasks edit <task-id> --until noneThe task picks up from now, without making up the runs it skipped.
Edit a task#
Change a task without losing its ID or history:
poppet tasks edit <task-id> --name "Morning review"
poppet tasks edit <task-id> --prompt "Summarize open decisions from recent conversations."
poppet tasks edit <task-id> --cron "30 8 * * 1-5" --tz Europe/London
poppet tasks edit <task-id> --at 2099-10-22T09:00:00+01:00An edit changes only what you give it. A new cron schedule needs --cron, plus --tz unless you set timeZone in config.json. Changing timeZone later does not change existing tasks. The provider, model, skill, and destination cannot be changed. To change those, create a new task. Editing a paused task keeps it paused.
If you change the prompt or schedule before the next run starts, Poppet cancels that run and plans the next one with your changes. You cannot edit a task while it is running. To run a finished one-off task again, give it a new time with --at.
Pause, skip, or run a task now#
poppet tasks pause <task-id>
poppet tasks resume <task-id>
poppet tasks run <task-id>| Action | What it does |
|---|---|
tasks pause | Stops the task until you resume it, and cancels its next run |
tasks resume | Starts scheduling the task again |
tasks run | Runs the task now, without changing its schedule |
| Skip, from chat | Skips only the next run |
| Snooze, from chat | Moves the next run to a later time |
Skipping and snoozing have no commands. Ask Poppet in a chat instead, such as “Skip the next run of my daily summary.”
You can keep up to 64 tasks by default, including paused and ended ones. Change this with limits.tasks.
Manage tasks from chat#
Ask Poppet in any chat, including a gateway conversation, to create, list, change, pause, resume, skip, snooze, run, or delete a task:
Every Friday at 09:00 Europe/London, summarize my recent conversations and deliver the result here.
End task <task-id> at 2099-10-29T09:00:00+00:00.
List my scheduled tasks.
Pause task <task-id>.
Delete my daily summary task.With timeZone set, Poppet uses your local time when you leave out a time zone. Poppet asks when a time, time zone, or task is unclear. A change is saved even if the rest of the reply fails, so check poppet tasks list before you ask again.
Some limits apply to tasks managed from chat:
- Poppet can create up to five tasks per message by default. Set
limits.chatTaskCreatesPerRunto change this, or to0to stop chat from creating tasks. - By default, a repeating task must leave at least five minutes between runs, including across the end of an hour. Change this with
limits.chatTaskIntervalMinutes. - To edit, skip, snooze, resume, run, or delete a task that posts to a gateway, ask from a place where Poppet can post to that destination. From the terminal or web chat, you can only do those things for tasks that stay on your computer. You can still list, view, or pause any task from any chat.
- Use the
poppet taskscommands to change or delete a task that uses a manual-only skill. You can still view or pause it from chat. - Retrying and cancelling runs need the
poppet taskscommands. - Deleting a task removes it and its history, but keeps your conversations and saved facts. Wait for a running task to finish, or cancel it with
poppet tasks cancel, before you delete it. See remove tasks.
Send results to a gateway#
After you set up a messaging gateway, add --to with the gateway’s name when you create a task:
poppet tasks add daily-summary --cron "0 9 * * *" --tz Europe/London --to discord "Summarize my recent conversations"| Option | Posts to |
|---|---|
--to <gateway> | The gateway’s home channel, such as --to discord |
--to <gateway>:<destination> | Another channel or thread, such as --to slack:C123 |
Each gateway’s guide lists the destinations it supports.
Poppet checks that it can post there when you create the task, and again before each post. It never posts results anywhere else. A task without --to keeps its results on your computer.
Results appear as new messages. They do not start or continue a conversation in that channel.
tasks show shows whether each result was posted. If Poppet cannot tell whether a post went through, it does not try again, to avoid posting twice. Check the channel, and post the saved answer yourself if needed.
To hold posts overnight, set quiet hours. Results ready during quiet hours wait until they end, and tasks show shows when they will be posted.
Stay quiet when there is nothing to report#
Write the prompt so it only reports when something happens, such as “Tell me only if the page changed.” When there is nothing to report, Poppet answers with exactly NO_REPLY and posts nothing. The run still counts as complete, and tasks show shows no action.
An answer that mentions NO_REPLY alongside other text is posted as usual. To compare with the previous run, keep a note.
Failure notices#
When a task that posts to a gateway fails, Poppet posts a short notice in the same place:
Scheduled task "<name>" failed (<reason code>). Inspect it with: poppet tasks show <task-id>The notice never includes the answer or error details. Run the command it shows to see what went wrong.
If a task keeps failing, Poppet posts only the first notice. It posts again after the task next succeeds and then fails. Poppet does not post notices for runs you cancelled, runs that were interrupted, or failures more than 24 hours old. Notices follow quiet hours like any other post.
Keep a note between runs#
A task can keep one note between runs, up to 4 KiB. This lets a repeating task remember what it saw last time:
poppet tasks add release-watch --cron "0 9 * * *" --tz Europe/London "Read https://example.com/releases and find the newest release version. Compare it with the task note. If there is no note or the version differs, save the new version as the note and report it. Otherwise reply NO_REPLY."Replace the example address with the page you want to watch. Add --to <gateway> before the prompt to post the results.
Each run sees the current note and can replace or clear it. The new note is saved only if the run completes. A failed or cancelled run leaves the note as it was. Editing the task keeps its note. Notes are separate from your saved facts.
To see or clear a note:
poppet tasks show <task-id>
poppet tasks clear-note <task-id>tasks show displays the note and when it last changed. You cannot clear a note while the task is running.
Choose a skill#
Add --skill <name> before the prompt to have the task follow a skill. The task keeps a copy of the skill from when you created it. To use an edited skill, create a new task. Writing $name in a task prompt does not load a skill.
Read web pages#
A task prompt can include a web address for Poppet to read:
poppet tasks add page-summary --cron "0 9 * * *" --tz Europe/London "Summarize https://example.com/ and cite the source"Poppet only reads addresses that are in the prompt. Addresses in skills, previous conversations, pages, or MCP results do not give the built-in page reader permission to open them. See read web pages.
For scheduled searches, connect an MCP server that offers search and allow its search tool for scheduled tasks.
Use MCP tools#
Scheduled tasks cannot use MCP tools unless you allow it for each tool. Allow read-only tools with scheduledTools, or tools that change things with scheduledReviewedTools. See MCP permissions and schedule a reviewed action.
By default, a tool that needs your approval fails the run. You can let the task wait for approval instead. The task’s schedule continues after a failure, and actions that already finished are not undone.
Wait for approval#
By default, a scheduled run fails if a shell command or reviewed MCP call needs your approval. To let one task wait for you, add --approvals wait:
poppet tasks add project-check --in 1h --to discord --approvals wait "Check my project and run its tests"Poppet posts the approval request to the task’s messaging destination. If the task has no destination, it uses an available gateway home conversation, preferring your home gateway. Without either, a call that needs approval still fails the run. Using a home conversation for approval does not change where results go. Tasks without --to still keep their results on your computer.
In the conversation with the request, only you can answer. Use Approve once or Deny, or reply with /approve <id> or /deny <id>. You can also answer pending requests in the web chat Needs you inbox or from the terminal. The approval covers one call. Always allow, when offered, also saves a rule for later interactive chats. Scheduled runs never use saved rules automatically. See approval requests for how to inspect its details.
To change an existing task’s policy:
poppet tasks edit <task-id> --approvals wait
poppet tasks edit <task-id> --approvals fail
poppet tasks edit <task-id> --approvals defaultdefault removes the task’s override. Tasks without an override use tasks.approvals, which defaults to fail. Set it to wait in config.json and restart the worker to let those tasks wait for approval.
While waiting, the occurrence stays running, but other tasks can run. The request expires after timeouts.approvalSeconds, or at the next scheduled time for a repeating task, whichever comes first. An expired request fails the occurrence. If the next scheduled time is already due, Poppet cannot wait.
Pending approvals survive worker restarts until they expire. After you approve, the worker continues the saved run and handles its result as usual. Approval requests are sent even during quiet hours; results still follow quiet hours.
Use poppet tasks cancel <task-id> to cancel a waiting occurrence and its approval request. Check the review and outcome with poppet tasks show <task-id>. Waiting does not grant access to extra MCP tools or let a task change memory or other tasks.
Missed runs#
The worker runs one task at a time, and only while your computer is awake.
- A one-off task that was due while the worker was stopped runs once when it starts again.
- A repeating task runs its most recent missed time once, if it was missed by 60 minutes or less. Poppet skips older missed times. Change this window with
tasks.catchUpMinutes, or set it to0to skip repeating runs missed while the worker was stopped or delayed by a minute or more. - A repeating run expires after waiting 24 hours without starting, and the worker drops it. You cannot snooze or start an expired run, so ask Poppet to skip it or wait for the worker to drop it. One-off runs do not expire.
tasks show lists the times Poppet skipped.
Cancel or retry a run#
poppet tasks cancel <task-id>
poppet tasks retry <task-id>tasks cancel stops the task’s current or next run without changing the schedule. tasks retry runs the task’s latest failed, cancelled, or interrupted run again, in a new conversation. Add --occurrence <occurrence-id> to choose an earlier run from tasks show. Resume a paused task before you retry it.
Poppet never retries a failed run by itself.
When your provider has problems#
If your provider says you are out of quota, Poppet pauses every scheduled task that uses that provider. poppet worker status shows the pause. There is no command to lift it yet.
For other temporary provider errors, Poppet waits 30 seconds before the next scheduled run, and doubles the wait after each further error, up to five minutes.
Remove tasks#
Remove one task and its history:
poppet tasks remove <task-id>Remove every task and all task history:
poppet tasks cleartasks remove refuses a running task, so cancel it first. tasks clear stops any running task first. Neither command deletes your conversations or saved facts. Removing a task cannot be undone.