NICK SPISAK

AGENTS & AUTOMATION

Claude Schedules vs Routines (what's the difference)

Routines, Desktop scheduled tasks, and /loop each run Claude on a timer — but they differ on where they run, what they can touch, and how fast. Here's the decision matrix.

Claude Code Routines title graphic with colorful reminder notes

Anthropic's current scheduled-task guide and Routines documentation describe three ways to run Claude on a schedule. They aren't interchangeable. They differ on where the agent runs, what it can touch, and how often it can fire.

1. Routines — your agent in the cloud

Routines are the newest option. They run on Anthropic's managed cloud infrastructure. That means your laptop can be closed, powered off, or on a plane. The routine still runs.

A routine is a saved configuration: a prompt, one or more GitHub repositories, a model selection, and connectors to external services like Gmail, Slack, or Linear. Every run spins up a fresh cloud session with the same tools Claude Code has locally.

Three trigger types:

  • Schedule — hourly, daily, weekdays, or weekly. Minimum interval is one hour.
  • API — a dedicated HTTP endpoint with a bearer token. POST to it from any external system.
  • GitHub events — supported repository events with configurable filters. The exact event inventory can change while Routines remains in research preview.

You can stack multiple triggers on the same routine. Create them at claude.ai/code/routines, from the Desktop app, or with /schedule in the CLI.

The trade-off: routines don't have access to your local files. Every run starts from a fresh clone of your repository. If your workflow depends on local data that isn't in a repo, routines aren't the right fit.

Available on Pro, Max, Team, and Enterprise plans. Currently in research preview.

2. Desktop scheduled tasks — your agent on your machine

Desktop scheduled tasks run locally. They have direct access to your files, your local tools, and your MCP servers. The catch is your computer needs to be on and the Desktop app needs to be running.

Create them from the Schedule page in the Desktop app. Click New Task, choose New Local Task, set a name, prompt, and frequency.

Frequency options: manual, hourly, daily, weekdays, or weekly. The minimum interval is one minute — much more granular than routines.

What makes these different from routines:

  • Local file access. The task runs against your actual working directory, including uncommitted changes. A routine gets a fresh clone.
  • Permission prompts. You can configure whether the task asks for approval before running commands. Routines are fully autonomous.
  • Missed-run catch-up. If your computer was asleep, the Desktop app runs one catch-up when it wakes. But it only catches the most recent miss, not every missed run.

After creating a task, click Run Now and watch for permission prompts. Grant only the permissions that recurring task actually needs; unattended convenience is not a reason to give a broad tool permanent access.

If your laptop lid is closed, the task doesn't run. Enable "Keep computer awake" in Settings to prevent idle sleep — but closing the lid still stops everything.

3. /loop — quick polling in a live session

/loop is the simplest option. Type it in any Claude Code session and your prompt runs on repeat. It's session-scoped: when you close the terminal, the loop dies.

Three ways to use it:

  • /loop 5m check the deploy — fixed interval with your prompt
  • /loop check the deploy — Claude picks the interval based on what it observes
  • /loop — runs a built-in maintenance prompt (or your custom loop.md)

Best for: watching a build finish, babysitting a PR, polling CI status. Anything where you're actively working and want Claude to keep checking something in the background.

/loop tasks expire after 7 days automatically. They don't survive restarts. They can run as frequently as every minute. (A tmux session helps this survive locally.)

4. The decision matrix

Use Routines when:

  • The work should run whether your computer is on or not
  • You're triggering from external events (webhooks, API calls, GitHub PRs)
  • The task only needs repo access, not local files
  • You want fully hands-off, autonomous execution

Use Desktop schedules when:

  • The task needs access to local files, local tools, or local MCP servers
  • You need intervals shorter than one hour
  • You want control over permissions
  • Your computer is reliably on during scheduled times

Use /loop when:

  • You're actively working and want to poll something
  • The task is temporary (watching a build, monitoring a PR)
  • You want Claude to adapt the interval based on what it sees
  • You need it running in the next 10 seconds with zero setup

The simplest rule: if you'd set it and forget it, use a routine. If you need local access, use a Desktop schedule. If you need it right now for the next few hours, use /loop.

5. Quick setup for each option

Routines: Go to the current Routines surface. Write your prompt, pick a repository, choose an environment, add triggers, and review every connector. Test with a harmless run before granting consequential access.

Desktop schedules: Open the Desktop app. Click Schedule in the sidebar. Click New Task, then New Local Task. Set your name, prompt, and frequency. Click Run Now to test permissions.

/loop: Open any Claude Code session. Type /loop 5m your prompt here. Done.

The bottom line

Three tools, three use cases. Routines give you always-on cloud automation that works while you sleep. Desktop schedules give you local access with persistent scheduling. /loop gives you instant, temporary polling.

Most people will use routines for their core workflows and /loop for everything else. Desktop schedules fill the gap when you need local file access on a recurring basis.

Pick the right tool. Set it up once. Let Claude do the rest.

Source video

Watch the companion operator briefing.

YouTube stays disconnected until you choose to play.

Drop an Amazon Product - Claude turns Keepa data into profit-ready answers in 30 seconds.

1:34

Continue the work

Related resources

Field guideClaude Managed Agents: deploy your first governed agent

Get The AI Owner-Operator

One AI system a week, from an engineer who runs real businesses.

Join thousands of operators. Free. Unsubscribe anytime.