DESK · THEORY
The Workflow · May 5, 2026

Run autonomous workflows 24/7 with Claude Code Routines

Set one recurring task to run on Anthropic's servers, with your laptop closed.

What you'll have when you're done

One recurring task (a Monday pipeline pull, a daily competitor scan, a weekly metrics digest) running automatically on a schedule you set. It executes on Anthropic's cloud infrastructure, not on your laptop. You close the lid Friday at 5 PM and Monday morning the report is in your Slack or your inbox. You did not touch it. You did not remember to run it. It ran.

Why this matters

Most of what burns a CEO's week is not the hard thinking. It's the recurring stuff that has to happen but does not require you specifically: the Monday pipeline review, the weekly competitor scan, the monthly billing reconciliation. Each one costs 30-90 minutes and a context switch.

A Routine is a workflow you build once and never touch again. The economics flip. The first one saves you an hour a week. The fifth one saves you a day. The compounding is real because the marginal cost of adding the sixth is twenty minutes of setup, not another hour every week forever.

What you need first

Step-by-step

A Claude Code Routine has four parts you'll configure:

You'll set up all four in the Routines UI. Total time: about 30 minutes for the first one.

Step 1Pick the task

Don't pick the most valuable recurring task. Pick the smallest one with a clear input and a clear output. The goal is to ship a working Routine this weekend, not architect the perfect one.

Good first candidates:

Write down, in one sentence, what your Routine does. Example:

"Every Monday at 7 AM Eastern, summarize blog posts published in the last 7 days from competitors A, B, and C, then post the list to my #intel Slack channel."

That sentence is your prompt. Save it.

Step 2Open Routines

You have three ways to access Routines. Pick whichever is easiest the first time.

Option A · On the web (recommended for your first one):

  1. Go to claude.ai/code/routines
  2. Sign in with your Anthropic account
  3. Click New Routine

The web UI walks you through each part of the configuration with form fields and explanations. Best for the first Routine when you don't yet know the conventions.

Option B · Inside Claude Code (CLI):

  1. Open Terminal
  2. Start a Claude Code session: claude
  3. Inside the session, type /schedule

Claude Code walks you through the same configuration in the terminal. Best once you're comfortable; faster after the first time.

Option C · Claude Code desktop app:

If you've installed the Claude Code desktop app, there's a Routines tab in the sidebar. Same configuration, native UI.

For this article we'll use Option A (web). The steps are the same in all three.

Step 3Configure the Routine

The Routines UI has four sections. Fill them in this order.

  1. Name and prompt. Give the Routine a short name (e.g. weekly-competitor-scan). Paste your one-sentence prompt from Step 1, then expand it into specifics. Example:

    Every Monday at 7 AM Eastern:
    1. Fetch the RSS feeds for these three competitors:
       - https://example-a.com/blog/feed
       - https://example-b.com/blog/feed
       - https://example-c.com/blog/feed
    2. Find any posts published in the last 7 days.
    3. Summarize each in 2 sentences.
    4. Post the summary list as a single message to the
       #intel Slack channel in the Desk Theory workspace.
    5. If there are zero new posts from all three, post
       "No new competitor posts this week."

    Be specific. Name the channel. Name the time zone. Tell it what to do if the result is empty (silent failures are how Routines quietly stop being useful).

  2. Repositories (optional). If your Routine needs to read or write code in a repo, connect a GitHub repository here. For our competitor-scan example, you can skip this; it's a pure read+post workflow.

  3. Connectors. This is where you authorize Routines to talk to third-party services. For the competitor-scan example, you'd connect Slack. Click Add Connector → Slack, sign in with your Slack workspace, and grant the scopes Anthropic asks for. Repeat for any other services your prompt mentions (GitHub, Linear, Google Drive, etc.).

  4. Trigger. Choose when it runs:

    • Scheduled. Pick a frequency (daily, weekly, monthly) and a time. For our example: weekly, Monday, 7:00 AM, US/Eastern.
    • GitHub event. Runs when something happens in a connected repo (PR opened, issue closed, etc.). Useful for code-review or release-note Routines.
    • API call. Runs when you (or another tool) hits a webhook URL. Useful when you want to trigger a Routine from an external system.

    For your first Routine, use Scheduled. Pick a time at least 24 hours in the future so you have a clean test run.

Step 4Run it once before scheduling

Before you walk away, run the Routine once manually to verify it works. In the Routines UI there's a Run now button (or /schedule run in the CLI). Click it.

Wait 30-90 seconds. Watch the run log. Three things should happen:

  1. The Routine kicks off without errors.
  2. The connectors do what they're supposed to (Slack post arrives, GitHub comment lands, etc.).
  3. The output is what you expected: readable, the right format, the right channel.

If the manual run works, schedule it. If not, fix it now while you're watching.

Step 5Wait for the first scheduled run

You're done. Close your laptop. Go do something else.

When the trigger fires (Monday 7 AM Eastern, in our example), the Routine runs on Anthropic's servers. The Slack post lands. You read it over coffee. You did not lift a finger.

How you'll know it's working

Three checks, in order:

  1. The "Run now" test in Step 4 succeeded. You saw the output appear (Slack message, email, file) with sensible content.
  2. The Routine shows up in your Routines dashboard at claude.ai/code/routines as active and scheduled.
  3. The first scheduled run delivers. On the morning your trigger fires, you get the output without having opened your laptop. This is the real test. If it fails, the Routine logs (visible in the dashboard) will tell you why.

When it breaks

Where this fits in your harness

Routines are the automation layer of your harness: workflows that run without you. The memory layer (what Claude pulls from your notes; see the Claude memory workflow) and the skills layer (specific jobs you've taught Claude to do well) sit underneath. A skill becomes a Routine the moment it's reliable enough to run without you watching.

Start with one Routine. Add a second only after the first has run cleanly for two weeks. The CEOs who win this year aren't the ones with twenty Routines on day one. They're the ones with five Routines that have been running, untouched, for six months.

The Thursday 3

Get three workflows like this every Thursday

The Thursday 3 is a free weekly email. Three workflows that put you in the top 1% of CEOs. 90-second read. Every card links back to a step-by-step guide like this one.

Get the newsletter →
The Complete Guide to OpenCLAW

The architecture behind this workflow.

A 270-page operator's manual for the harness Andrew runs Headphones.com and Lantern.is on. Memory, skills, connectors, and the 90-day roadmap.

Get the book · $99