Claude Code Routines

Set the work up once, then let it happen without you.

Kevin Lenida

A routine is Claude doing your work while you are not there.

Why this matters

The same task, two ways

You do it

  • You have to remember
  • You retype the same prompt
  • It happens when you have time
  • Skipped on your busiest days

A routine does it

  • It remembers
  • The prompt is already written
  • It happens at eight, every day
  • Busiest days are when it helps most
How it works

Four parts, one machine

A trigger fires Claude runs your prompt With the access you granted You get notified Happens on Anthropic's computers — not on your laptop
How it works

Three ways a routine can start

It runs on Anthropic's computers, so your laptop can be closed.

Do not mix these up

Two kinds. Only one runs without you.

Cloud routine

  • Runs on Anthropic's computers
  • Works with your laptop closed
  • Made on the web, in the terminal, or in the desktop app

Local routine

  • Runs on your own machine
  • Only while that machine is awake
  • Desktop app only — but it can reach your files
Before you start

What you need

01

Build one

A routine that triages your inbox every morning.

Build one

Start from blank, or from a template

The Routines page: a box asking what you want automated, and eight ready-made templates below

Email triage is a built-in template — close to what we are about to build by hand.

Build one

Five things to fill in

Build one

You never write a cron string

The schedule trigger: Once, Hourly, Daily, Weekdays, Weekly and Custom buttons, with a time field

Pick a preset, pick a time. That is the entire schedule.

Build one

A checkbox tells you it finished

The Notifications tab: a toggle to be notified when the routine finishes, with push, email and Slack options

Push, email, or Slack. Do not write this into your prompt — it is already built in.

02

Write a prompt that survives

The part everyone gets wrong the first time.

There is nobody there to answer a follow-up question.

Write it

Five rules for an unattended prompt

Copy this

The inbox triage prompt

Every run, triage my Gmail inbox and prepare replies I can approve.

Read unread mail from the last 24 hours. Ignore anything already read or archived, and anything in Promotions, Social, or Updates.

Decide which ones need a reply from me personally. Skip newsletters, receipts, automated notifications, and anything a reply would not change.

For those that do, create a Gmail draft. Match my tone: direct, warm, two to five sentences. If it asks something the thread cannot answer, mark a placeholder like [CONFIRM: date] rather than guessing.

Never send, archive, delete, or label anything. Drafts only. If unsure whether something needs a reply, skip it — a missing draft costs me nothing, a wrong one costs me trust.

Finish with one line: "X drafts ready, Y skipped", then one line for each draft: sender — what they want.

Success means every email that needed a reply has a draft waiting, nothing was sent, and I can act on your summary without opening my inbox. If you cannot reach Gmail, stop and say so. Do not work around it.

03

What it can reach

You give the keys to something that will not ask.

Before you save

Four things to understand

A green run means it finished — not that it worked.

Run it again

Every run starts from zero

Living with them

Three of them is a system

The routines list showing three cloud routines: Alert triage via API, Nightly project review daily, Morning inbox triage daily

Each run opens as a full session you can read, continue, or correct.

Where to point it next

Ten more jobs for the same machine

No code needed

  • Morning inbox triage
  • Meeting prep before your first call
  • Weekly numbers check from a spreadsheet
  • Competitor and market watch
  • Turn email promises into tasks

If you have a project

  • Nightly review against your own checklist
  • Dependency and security sweep
  • Find docs that no longer match the app
  • Post-deploy smoke check
  • Turn an error alert into a draft fix
Recap

What we covered

  1. A routine is a saved prompt plus a trigger. It runs in the cloud without you.
  2. Name it, write it, pick a time — a code repository is optional.
  3. Write for a capable stranger who cannot ask you a question.
  4. Strip the access it does not need before you save it.
  5. Read the runs. Green only means it finished.
Your turn

Before we meet again

Pick one thing you do most mornings that a stranger could do from written instructions.

Write it using the five rules — especially "what to do when unsure".

Set it to run daily, turn notifications on, and leave it alone for three days.

Then open all three runs and read what it actually did.

Judge it on the third run, not the first. The first run is not a failure — it is your prompt, and it shows you what it forgot.

Now go give the thing you do every morning.

It will be ready when you wake up.