seif.dev
AI-ASSISTED · FROM MY VIDEO · TEXT BY MY AGENTSBY SEIF SGAYER · · 5 MIN READ

Claude routines: stop pasting the same prompt

TL;DR

  • A Claude routine is a saved prompt, repo and set of connectors that runs by itself on a schedule, an API call or a GitHub event. Anthropic now calls them scheduled tasks.
  • If the same request lands on your desk every day, set it up once with /schedule in Claude Code instead of pasting your prompt again.
  • Two more habits from the video: hand the work to subagents instead of prompting each step, and dictate with /voice instead of typing.

What are Claude Code routines (Claude scheduled tasks)?

In the video, the amateur says his job now is just prompts. The pro says: "I don't prompt. I make orchestrators and agents that run my workflows."

Anthropic launched routines in Claude Code on 14 April 2026, and the docs now call them cloud scheduled tasks. The /routines command and the claude.ai/code/routines page still use the old name.

A routine is a saved Claude Code setup: a prompt, one or more repositories, and the connectors it needs (Slack, Linear, GitHub and so on). It runs on Anthropic's cloud, so it keeps working when your laptop is closed. It is in research preview, on the Pro, Max, Ultra, Team and Enterprise plans (docs).

Each routine can start three ways, and one routine can have more than one:

TriggerWhat starts itGood for
Schedulea time: hourly, daily, weekdays, weekly, a cron line, or oncea daily report, a weekly cleanup
APIa POST to the routine's own /fire URL with its tokenan alert from your monitoring tool, a deploy script
GitHub eventa pull request, a release and other repo eventsyour own review checklist on every new PR

Claude routines vs pasting the same prompt every day

The amateur in the video gets the same request from a co-worker every day. He pastes his prompts, copies the answers and sends them back.

Don't keep a prompt in a notes file and paste it into a new chat every morning. You redo the setup each time, and the work waits for you to show up.

Do save it once as a routine, so the request runs on its own at the time you set. For example, if a co-worker asks every morning which issues came in overnight:

/schedule every weekday at 9:07, read the issues opened in my repo since
the last run, label them by area, and post a short summary to the team
Slack channel

Claude asks for anything it's missing, like the repo or the Slack connector, then saves the routine to your account. Pick a few minutes past the hour: the docs say runs set exactly on the hour can start several minutes late.

How to set up a Claude routine

There are three ways in, and all three save to the same account (docs):

  1. In the CLI: run /schedule, with or without a description, for example /schedule daily PR review at 9am. A one-off works too: /schedule in 2 weeks, open a cleanup PR that removes the feature flag.
  2. On the web: go to claude.ai/code/routines, click New task, write the prompt, pick the repo, the environment, the trigger and the connectors.
  3. In the Desktop app: in the Code tab, click Scheduled, then New task.

Before you save one:

  • A routine runs as you. Its commits and pull requests carry your GitHub user, and its Slack messages come from your linked account.
  • It gets every connector you have by default. Remove the ones it doesn't need.

The API trigger and its token are added on the web only, and the token is shown once, so copy it when it appears.

Claude routines limits

Routines use your plan's usage the same way a normal session does (how to stop hitting your Claude usage limit). At launch, Anthropic's article also set daily caps: up to 5 routines a day on Pro, 15 on Max, and 25 on Team and Enterprise, with extra runs on extra usage. Today's docs list these hourly limits, checked on 2 Dec 2026:

What starts a runLimit
Scheduled runs, one-off runs included100 per hour per account (the run waits)
Run now and API fires, together30 per hour per routine
API fires100 per hour per account
Shortest scheduleonce an hour; a cron line that runs more often is rejected

Routines vs Desktop scheduled tasks vs /loop

Claude Code has two more ways to repeat work, and both run on your own computer (compare scheduling options):

Cloud routineDesktop scheduled task/loop
Runs onAnthropic's cloudyour computeryour computer
Computer must be onnoyesyes
Session must stay opennonoyes
Sees your local filesno, a fresh clone of the repoyesyes
Shortest interval1 hour1 minute when Claude sets it, 1 hour in the form1 minute

Pick a routine when the job should run with your laptop closed. Pick a Desktop task when it needs your local files. Use /loop 5m check the deploy to watch something while you work.

Claude Code subagents: let agents run the workflow

A routine handles the request that repeats. For bigger jobs, the pro in the video builds orchestrators: one main agent that hands parts of the job to other agents.

In Claude Code those helpers are subagents. Each one works in its own context window with its own instructions and tools, and only its summary comes back to the main chat. That keeps your main session clean, which also helps with why Claude forgets your project.

A subagent is a Markdown file in .claude/agents/ (one project) or ~/.claude/agents/ (every project). This is the docs' own example:

---
name: code-improver
description: Scans files and suggests improvements for readability, performance, and best practices. Use after writing or modifying code.
tools: Read, Grep, Glob
model: sonnet
---

You are a code improvement specialist. For each issue you find, explain
the problem, show the current code, and provide an improved version.

Claude reads each subagent's description to decide when to hand work to it.

Don't write a description like description: helper agent. Claude can't tell from it when to use the agent.

Do say what it does and when, like the docs' example: Scans files and suggests improvements for readability, performance, and best practices. Use after writing or modifying code. You can also name it: "Use the code-improver agent on this project." The model line lets a cheaper model do the simple work.

Claude Code voice mode: dictation with /voice

The amateur types really fast. The pro doesn't type: he dictates.

Claude Code has a voice mode for dictation built in (voice dictation docs). Run /voice and hold Space while you talk, or run /voice tap to tap once to start and once to send. Your words appear in the prompt as you speak, so you can mix talking and typing. It needs a claude.ai account and a microphone on your machine, it doesn't work over SSH or in cloud sessions, and the transcription doesn't count toward your /usage limits.

Outside Claude Code, Windows has voice typing in any text box: press the Windows key + H (Microsoft). On a Mac, turn on Dictation in System Settings, Keyboard (Apple).

In a Stanford and University of Washington study, English speech input was 2.93 times faster than the phone keyboard: 153 words a minute against 52. That was phones, not laptops.

FAQ

Are Claude routines free? They come with the Pro, Max, Ultra, Team and Enterprise plans and use your plan's usage like any session.

Do Claude routines run when my computer is off? Yes. Cloud routines run on Anthropic's servers. Desktop scheduled tasks and /loop need your computer on.

What is the difference between Claude routines and scheduled tasks? None: cloud scheduled tasks is the new name for routines. Desktop scheduled tasks are a different feature that runs on your computer. The /routines command still works as another name for /schedule.

New to Claude? Start with AI from zero.

AI-ASSISTED · FROM MY VIDEO

I try my best to bring you value. My AI agents write these. Tell me if it was valuable, or AI slop.

Was this worth your time?

One tap. No sign-in. We save the vote, not who you are.

WRITTEN BY

Hi, I'm Seif Sgayer.

I'm a software engineer with 10+ years of shipping software. I build with AI every day and I teach what works.

Get the next post.

One free AI bite a week, from my own work. Only your email.