techFeatured

Claude Code Routines: Anthropic Put Claude on a Cron, Then Renamed It

Claude Code routines are saved prompts that run in Anthropic's cloud on a schedule, an HTTP call or a GitHub event, even with your laptop closed. Anthropic shipped them April 14, 2026, and its docs now call them scheduled tasks. Here is how to set one up and what the limits are today.

Tech Talk News Editorial10 min readUpdated Nov 18, 2026
ShareXLinkedInRedditEmail
Claude Code Routines: Anthropic Put Claude on a Cron, Then Renamed It

Key takeaways

  • A Claude Code routine is a saved prompt plus one or more repositories plus connectors that runs automatically in Anthropic's cloud, and Anthropic shipped it as a research preview on April 14, 2026.
  • Anthropic's current docs call routines scheduled tasks, formerly routines, and the feature is still a research preview available on the Pro, Max, Ultra, Team and Enterprise plans.
  • A routine can start from a schedule with a minimum interval of one hour, from an authenticated HTTP POST to its own endpoint, or from a GitHub event, and one routine can combine all three.
  • At launch the caps were 5 routine runs a day on Pro, 15 on Max and 25 on Team and Enterprise; the current docs instead list hourly limits of 100 scheduled runs per account and 30 manual or API runs per task.
  • A routine pushes to branches prefixed with claude/ by default, runs as you, and starts in auto mode, where a classifier blocks risky actions and a run can still pause for approval.

Claude Code routines are saved prompts that run in Anthropic's cloud on a schedule, on an HTTP call, or on a GitHub event, with no need to keep your laptop open.[1] Anthropic shipped them on April 14, 2026 as a research preview, and its documentation now calls them scheduled tasks, formerly routines.[1,2]

The short version: Claude Code now has cron, and the cron runs on Anthropic's infrastructure instead of yours. That sounds small.

It replaces the pile of glue developers wrote through 2025 to get a model to do unattended work: the scheduler, the server for the scheduler, the checked-out repo, the secrets file, the token for the Slack connector, the retry logic when a model call fails.

It is the same move you see in Claude Design, which shipped three days later: not a new model, a new product wrapped around an existing one.

Apr 14, 2026
Still preview
Launch, research preview
3
Trigger types: schedule, API, GitHub
1 hour
Minimum schedule interval
100 / hr
Scheduled runs per account, per hour

What a Routine Is, and the Name Change You Will Trip Over

Per Anthropic's documentation, a scheduled task is “a saved Claude Code configuration: a prompt, one or more repositories, and a set of connectors, packaged once and run automatically.”[1] Each task has at least one trigger, and one task can carry several.

A pull-request reviewer can run on every new PR, run nightly against the backlog, and also fire from a deploy script.

The rename is the thing that will confuse you in practice. Anthropic's docs say scheduled tasks were previously called routines, and the old name is still in the claude.ai/code/routines address, the /routines alias for /schedule, the API's /fire endpoint and its beta header, and in some accounts the sidebar and the New routine button.[1]

It is one feature with two names. Search results, tutorials and the product itself mix them, so treat “routine” and “scheduled task” as synonyms.

How a run starts

Three triggers start the same saved task in Anthropic's cloud.

Triggers

  • ScheduleRecurring, or once at a set time; 1 hour minimum
  • APIHTTP POST with a bearer token to the task's /fire endpoint
  • GitHub eventPull requests, releases and more, via the Claude GitHub App

Scheduled task (routine)

Prompt + repositories + connectors, run as a full Claude Code cloud session

What it leaves behind

  • A branch prefixed claude/Or a draft pull request
  • A comment or reviewOn the PR that fired it
  • A Slack or tracker updateThrough the connectors you kept
Never availableYour local filesEach run gets a fresh clone of the repository

The run opens as a normal session, so you can read every tool call afterward.

The Three Triggers, Side by Side

Each trigger answers a different question: when should this run, and what starts it? The choice depends on where the work begins.

TriggerStarts whenBest forSet up from
ScheduleA preset, a cron expression, or one future timestampBacklog grooming, docs drift, weekly digestsWeb, Desktop app, CLI
APIAn authenticated POST to the task's endpointAlert triage, post-deploy checksWeb only; no token management from the CLI
GitHubA repository event matches your filterTeam-specific PR review, library portsWeb, or CLI with the GitHub App installed first

The schedule trigger has fine print. A cron expression that fires more often than once an hour is rejected. A five-field expression is read in UTC, so 0 9 * * 1-5 means 9:00 AM UTC on weekdays. A run set for exactly 9:00 can start several minutes late, so pick 9:07.[1]

The API trigger gives each task its own endpoint. You POST with a bearer token and an optional freeform text field, such as an alert body, and a session starts.

The token is shown once, so put it in your alerting tool's secret store immediately. The endpoint ships under the experimental-cc-routine-2026-04-01 beta header, and Anthropic says breaking changes arrive under new dated headers while the two most recent previous versions keep working.[1]

The GitHub trigger needs the Claude GitHub App on the repository. Running /web-setup grants cloning access but does not install the app, and without the app no webhook fires. Each event starts its own independent session, and events past the hourly caps are dropped, not queued.[1]

How to Set One Up in Five Minutes

  1. Start with /schedule or the web. In Claude Code, run /schedule daily PR review at 9am and Claude walks you through the prompt, repository and environment. Or open claude.ai/code/routines and click New task. The Desktop app and the web write to the same cloud account.[1] /schedule needs a claude.ai subscription login, so it is hidden if you authenticate with a Console API key or a cloud provider such as Amazon Bedrock.
  2. Write the prompt as a runbook. The task runs without you, so the prompt has to be self-contained and describe what success looks like. What to check, what to produce, what to skip, what to do on failure. Our prompt engineering techniques piece covers the structure that holds up in autonomous runs.
  3. Pick repositories and an environment. Each repository is cloned at the start of a run. The Default environment has Limited network access with package managers allowed, so a run that must reach your own service needs its environment edited first. Store API keys as network secrets, because environment variables are visible to anyone who uses the environment.[1]
  4. Prune the connectors. All your connected Model Context Protocol (MCP) connectors are included by default, writes included. Remove every one the task does not need. If you want the protocol itself explained, start with Claude and MCP.
  5. Create it, then click Run now. The test run opens as a full session where you can read every tool call and file change. Read it before you leave the task alone.

Heads up

A routine runs as you. Anthropic's docs say commits and pull requests carry your GitHub user, and Slack messages or Linear tickets use your linked accounts. Tasks belong to your individual account and are not shared with teammates.[1] Treat the connector list as a permission grant.

The Limits: What Changed Since Launch

At launch the ceiling was a daily run cap. Anthropic's announcement listed 5 routine runs a day on Pro, 15 on Max, and 25 on Team and Enterprise, with extra usage available beyond that.[2]

I would not plan around those numbers now. The current docs do not list a daily cap. They list hourly limits per way of starting a run, on top of your normal subscription usage.[1]

How a run startsLimitCounted forOver the limit
Scheduled runs, including one-offs100 per hourYour accountThe run waits until the limit resets
Run now, API fires, one-off reruns30 per hourEach task, one shared countThe action fails until reset
API fires100 per hourYour accountThe action fails until reset
GitHub eventsPer-task and per-account hourly capsTask and accountEvents dropped until the window resets

None of those hourly limits has overage.[1] The limit that still bites is your subscription usage, because a routine draws it down the same way an interactive session does. When you hit it, organizations with usage credits turned on keep running on metered overage, and without credits additional runs are rejected until the window resets.[1]

So the practical question changed from “how many runs a day” to “how much usage does each run burn.” A nightly review of a large repository costs far more than a weekly changelog check.

Takeaway

Ignore any article quoting 5, 15 and 25 daily runs as today's limits. Plan around hourly caps and your subscription usage, and check the plan before you wire a routine to a busy repository.

Auto Mode and Branches: What a Run Can Actually Do

The launch-era description was that a routine has no approval prompts at all. That is out of date. A run that starts a new cloud session begins in auto mode, where a classifier model allows or blocks actions that would otherwise wait for your approval.

A run still stops and waits in two cases: an action that matches an ask rule, and repeated blocks that reach auto mode's threshold.[1] A routine that stops partway may be waiting on a prompt in its session. Open the run from the task's detail page to answer it.

By default Claude pushes to branches prefixed claude/ unless your prompt says otherwise. Anthropic's guidance for hard limits is to use branch protection rules or rulesets on GitHub, not the prompt.[1] That is the right instinct. A sentence in a prompt is a request, and a ruleset is a wall.

Routine, /loop or Desktop Task: Where the Work Has to Happen

Claude Code has three scheduling surfaces and they are not interchangeable. Pick the wrong one and the job fails quietly at 3am when your laptop is asleep.[3]

PropertyCloud routineDesktop task/loop
Runs onAnthropic cloudYour machineYour machine
Machine must be onNoYesYes, with an open session
Local filesNo, a fresh cloneYesYes
Minimum interval1 hour1 minute when Claude sets it, 1 hour in the forms1 minute
ExpiresNoNoRecurring tasks expire after 7 days

The rule is where the work has to happen. If it touches your local filesystem, use a desktop task. If it lives inside one session, use /loop.

If it has to survive a closed laptop and start from something that is not you, use a routine. The mobile counterpart, which runs desktop tasks from your phone while the machine stays awake, is Claude Dispatch.

What to Build First

The best routines are the boring ones that used to be somebody's Monday-morning task. Anthropic's own examples are a good shopping list.[1]

  • Backlog maintenance. A weeknight schedule reads new issues, applies labels, assigns owners by code area and posts a digest to Slack.
  • Alert triage. Your monitoring tool POSTs the alert body as text. The task pulls the stack trace, correlates it with recent commits and opens a draft pull request with a proposed fix.
  • Bespoke code review. A GitHub trigger on pull_request.opened applies your team's checklist and leaves inline comments, so human reviewers can spend their time on design.
  • Deploy verification. Your pipeline calls the endpoint after each production deploy, and the task runs smoke checks and posts a go or no-go.
  • Docs drift. A weekly run flags documentation that references changed APIs and opens update pull requests.

The pattern: a bounded task, a repository as the source of truth, a clear success state, and an artifact at the end. Routines are good at that and bad at open-ended “figure out what to do” prompts.

If you want the same loop with your own code instead of a saved prompt, the Claude Agent SDK is the build-it-yourself version, and agentic workflow patterns covers when an unattended agent is the wrong tool.

If you are choosing between coding tools in general, Claude Code versus Cursor compares them, and Opus versus Sonnet helps you pick a model for the task, since each task takes its own model setting.

The Take

Routines are not a leap in model capability. They are infrastructure wrapped around the model you already use, and the pitch is simple: stop maintaining the glue. For anyone running a Claude prompt in a cron on a small server with a duct-taped MCP setup, this will feel like someone cleaned your kitchen.

I like it, with two reservations. The first is that it is still a research preview. Anthropic says behavior, limits and the API itself may change,[1] and the move from daily caps at launch to hourly limits in the current docs shows it.

Keep every routine idempotent. The second is that a routine acts as you. Before you give one a write-capable Slack connector, ask whether you would let an intern post under your name at 3am.

If yes, wire it up. If not, remove the connector and let it open a draft pull request instead. Security teams that want the long version of this argument should read the AI agent sandboxing guide and the MCP security problem.

The thing worth watching is the category below this. A chunk of the tooling people bought or built to run scheduled model work just became a feature, the way hosted CI absorbed self-managed build servers (see what CI/CD is for that history).

Which tools in your automation stack do you still need when Anthropic's cloud sits on the other side of a webhook?

Primary sources

  1. 1.PrimaryAnthropic, "Automate work with scheduled tasks" (Claude Code docs). Current docs, fetched November 18, 2026. Name change, research-preview status, plans, triggers, one-hour minimum, hourly limits, auto mode, claude/ branches, /fire beta header.
  2. 2.PrimaryAnthropic, "Introducing routines in Claude Code". April 14, 2026 launch post. Definition, triggers, launch-day research-preview status, and the launch-era daily caps: 5 routines a day on Pro, 15 on Max, 25 on Team and Enterprise, with extra usage beyond them. Superseded in the current docs by hourly limits.
  3. 3.PrimaryAnthropic, "Run prompts on a schedule" (Claude Code docs). Compare scheduling options: cloud, Desktop and /loop. Seven-day expiry for recurring /loop tasks and one-minute minimum interval.

Frequently asked questions

What are Claude Code routines?
Claude Code routines are saved Claude Code configurations, a prompt plus one or more repositories plus connectors, that run automatically in Anthropic's cloud. A trigger starts each run: a schedule, an HTTP POST to the routine's endpoint, or a GitHub event. Anthropic shipped them April 14, 2026 as a research preview, and its docs now call them scheduled tasks, formerly routines.
Are Claude Code routines the same as scheduled tasks?
Yes. Anthropic's documentation now says a cloud scheduled task is formerly a routine. The old name survives in the claude.ai/code/routines address, the /routines alias for /schedule, the API's /fire endpoint and its experimental-cc-routine-2026-04-01 beta header, and some account sidebars.
How do I set up a Claude Code routine?
Run /schedule inside Claude Code and describe the task, or open claude.ai/code/routines and create a new task. Write a self-contained prompt, add a trigger, pick one or more GitHub repositories and an environment, remove connectors the task does not need, then click Create and Run now to test it. The CLI path needs a claude.ai subscription login, not an API key.
How many Claude Code routine runs do I get?
At launch Anthropic capped routines at 5 runs a day on Pro, 15 on Max and 25 on Team and Enterprise. The current docs list hourly limits instead: 100 scheduled runs per hour per account, and 30 Run now or API runs per hour per task. Routine runs also draw down your normal subscription usage, and usage credits let them continue past it.
What is the minimum interval for a Claude Code routine?
The minimum interval is one hour. A cron expression that runs more often than once per hour is rejected. A run scheduled exactly on the hour can start several minutes late, so Anthropic suggests scheduling at a few minutes past, such as 9:07.
Should I use a routine, /loop, or a desktop scheduled task?
Use a routine for unattended work that must run while your laptop is closed, because it runs in the cloud on a fresh clone. Use a desktop scheduled task when the job needs your local files, and /loop for quick polling inside an open session. A /loop task expires after 7 days and has a minimum interval of 1 minute.

Written by

Tech Talk News Editorial

Computer engineering background. Writes about software, AI, markets, and real estate, and the places where the three meet.

More about the author
ShareXLinkedInRedditEmail