Claude Code routines run a saved prompt for you in the cloud: on a schedule, when an API call arrives, or when something happens on GitHub. Anthropic now calls them cloud scheduled tasks; the old name still shows in the web address and the /routines command. Seven of them run this site's SEO, starting with a content run every weekday at 6:57am. Product facts below come from Anthropic's scheduled tasks docs, read November 25, 2026. The feature is in research preview, so details can change.
What are Claude Code routines?
A routine, now called a cloud scheduled task, is a saved Claude Code setup: a prompt, one or more repositories and the connectors it needs. It runs on Anthropic's cloud, so it keeps working with your laptop closed. A schedule, an API call or a GitHub event starts it, and each run is a Claude Code session you can open.
Three triggers can start a task, and one task can have several:
- Schedule. Hourly, daily, weekly, a custom cron expression, or once at a set time.
- API. The task gets its own endpoint. A POST with its token starts a run, so a monitoring alert or a deploy script can call it.
- GitHub. A pull request, release or issue event on a connected repository starts a run, with filters on author, branch, labels and more.
How do you create a scheduled task in Claude Code?
Go to claude.ai/code/routines and click New task, use Scheduled in the desktop app's Code tab, or run /schedule in the CLI and describe the job, for example "/schedule daily PR review at 9am". Inside a Claude Code project, ask the project for scheduled work and it creates the task, which then runs as threads in that project.
- Write the prompt. The run starts from nothing but this, the repository and the connectors, so write it as a complete brief.
- Pick the repositories. Each one is cloned fresh on every run, starting from the default branch.
- Trim the connectors. Every connector on your account is included by default. Remove the ones the job doesn't need, because anything the run does through them appears as you.
- Set the trigger. Choose a time a few minutes off the hour. Runs scheduled exactly on the hour can start several minutes late.
- Check the environment. The default cloud environment allows package managers and little else. Add the domains your job calls.
Cron expressions are read in UTC unless they start with a CRON_TZ= prefix, so CRON_TZ=America/New_York 57 6 * * 1-5 is our 6:57am weekday run in Eastern time.
How do scheduled tasks work inside a Claude Code project?
In a Claude Code project, you ask for scheduled work in the conversation and the project creates the task. Its runs arrive as threads in the project and the task appears in the project's Scheduled tasks view. Each run starts with the project's instructions, memory and repositories, the same as any thread. If you are setting up your first project, our guide to Claude Projects covers the instructions every run will read.
Here is what ours run, all in Eastern time:
| Task | When | What it ships |
|---|---|---|
| Weekday content run | Mon to Fri, 6:57am | A new post Mon, Wed, Fri; a rewrite of a page near page one Tue, Thu |
| Weekly SEO check | Mon, 8:47am | Search Console numbers, missed-day audit, Bing and Brave checks |
| Performance dashboard | Mon, 10:52am | The weekly report and a refreshed dashboard |
| Five-minute list | Mon, 11:38am | The few clicks only the owner can make |
| AI citation check | Fri, 9:43am | Which AI engines cite us, and one content action |
| Retrospective | Fri, 3:47pm | Edits to the project's rules from the week's friction |
| Content refresh | 2nd of the month, 9:41am | Up to three slipping posts rewritten |
Between October 16 and November 24, 2026, our article log recorded 41 shipped posts and rewrites, most of them from the weekday run. All seven tasks post into one standing thread, so each run can read what the last one did and the owner reads one place.
What is the difference between a routine, a Desktop scheduled task and /loop?
Where the run happens. A cloud scheduled task runs on Anthropic's machines with a fresh clone, so your computer can be off. A Desktop scheduled task runs on your machine and can read local files. /loop repeats a prompt inside an open session and stops when that session closes. Use the cloud for anything that must run unattended.
| Question | Cloud scheduled task | Desktop scheduled task | /loop |
|---|---|---|---|
| Where does it run? | Anthropic's cloud | Your machine | Your machine |
| Computer must be on? | No | Yes | Yes |
| Session must be open? | No | No | Yes |
| Local files? | No, a fresh clone | Yes | Yes |
| Shortest interval | 1 hour | 1 minute when Claude sets it | 1 minute |
Our rule matches the one we use for threads: the cloud by default, your computer only when the job needs something on it. When a cloud run can't reach a tool on our Mac, it falls back to Claude Code Remote Control rather than moving the schedule onto the Mac.
How often can a Claude Code routine run?
Once an hour at most. The cloud rejects any cron expression that runs more often. Your account can start 100 scheduled runs an hour, and each task can be started by Run now or an API call 30 times an hour. A one-off schedule runs a single time at a set moment, then turns itself off.
What did seven scheduled tasks teach us?
- Succeeded does not mean shipped. A run's status says how its session ended, not whether the work got done. Anthropic's docs say the same: work Claude couldn't finish shows in the transcript, not on the run's row. Our weekday runs did not ship on November 17 and 18, and the owner found out by asking. Now a GitHub Action checks the live sitemap twice every weekday afternoon and opens an issue when the day's post is missing.
- Read the failed run before naming a cause. On November 8 the morning post never shipped. We first suspected a late schedule. The run's own session said the subscription payment was past due. A paused subscription puts every scheduled task on hold.
- Never end a run on "waiting". On November 10 a finished pull request sat green and unmerged for 2.5 hours because the run ended while CI was still going. Every content run now starts a background timer that re-checks the checks and wakes the run to merge.
- Schedule after your data lands. The AI citation check ran Thursday mornings and read week-old answers, because the tracker it reads refreshes late Thursday night. Moving it to Friday fixed it with no other change.
- Put every correction into the prompt. On November 23 the owner pointed out that the Monday list asked him to request indexing for pages Google had already indexed. The rule went into that task's prompt the same day. A Friday retrospective task makes these edits every week, so the weekday prompt now runs to nine numbered steps.
Why use a scheduled task to keep a knowledge base current?
A second brain or a team's internal knowledge base goes stale when keeping it current depends on someone remembering. A scheduled task is the habit, written down once. Ours read the week's data, write it into report files the next run reads first, and fold each lesson back into the project's rules, so the next run starts from more than the last one did.
Do Claude Code scheduled tasks cost extra?
No separate fee. They come with the Pro, Max, Ultra, Team and Enterprise plans and draw down your subscription usage the same way an interactive session does. If you hit your usage limit, runs are rejected until the window resets, unless usage credits are turned on. While a subscription is paused, its scheduled tasks are on hold.
Where to start
Pick one job you already do every week, write it as a full brief, and run it once with Run now before you trust the schedule. If you build Claude Code projects for clients and want to package the setup as a service, the Claude Code Service OS covers the offer, pricing and outreach. For the services a run can reach, see the connectors we use.
Scheduled runs write better when your brand is written down. In Brand Architect, Ophelia builds a knowledge base from your website or materials that any AI tool can read. Build your knowledge base →
