Routines — Claude as a proactive teammate
After this lesson you can write a trigger, a context, limits and a stop rule for a recurring task before running it. The practice is on paper. Before you start: complete the six-move and handoff lessons.
What changes when you are not watching
A scheduled task starts a session without you. A mistake can repeat before you see it. Claude Code documentation now says scheduled tasks; "routines" is the earlier name and still appears in places. Cloud scheduled tasks are a research preview.
| Cloud task | Local desktop task | |
|---|---|---|
| Runs | On Anthropic's cloud by default | On your computer, while the app is open and it is awake |
| Your local files | No; it works from a fresh copy of a repository | Yes |
| Approvals | Auto mode by default | Configurable for each task |
Five decisions
- Trigger: when it starts, and what happens if a run is missed.
- Context: the fewest files and connectors it needs.
- Action: start with read and report only.
- Stop rule: what makes it stop without acting, and when it is switched off.
- Review: who reads the result and when.
Content it reads can contain instructions written by others. Treat them as data, and give the task no power to act on them.
Worked example (fictional)
Every Monday at 09:00, read events.md in a practice repository and report events with no date. Change nothing, send nothing, use no connector. Stop if the file is missing or has more than 100 events. Ana reads the report on Monday; the task is switched off after four weeks unless Ana renews it.
It is safe to start because the worst result is a wrong report.
Practice
On paper, design one read-only routine for a task you repeat. Answer the five decisions, then write two ways it could go wrong and how you would notice. Do not schedule it.
Finished when it has no send, delete, buy or publish action, a named reader, a stop rule and an end date.
Common errors and recovery
- "Fix anything wrong" in the action. Change it to "report". Add actions later, one at a time, with approval.
- Nobody reads the output. Switch it off.
- It must stop now. Pause or disable the task, then check what its last run changed.
Check yourself
"Every hour, read my inbox and answer customers; use all connectors; run until I stop it." Reject or accept, and why?
Reject. It acts on other people's messages, with wide access, no review and no end. "Accept, because I can stop it" is tempting, but an hour is enough to send wrong answers. A safer first version reports, once a day, how many invented sample messages need an answer.
Further study (optional)
The attached talk shows routines as they were when recorded.
Sources
Opened 2026-11-25.
