Claude Code routines and scheduled tasks, explained

What routines are

A routine is a task that runs on its own, say every Monday at eight in the morning or every time a certain thing happens, so you set it up once and after that it doesn’t need you.

In Claude Code these are now called scheduled tasks, although they used to be called routines. They run in the cloud at Anthropic, so they don’t need your computer switched on, and they can be triggered by a time, another app or an event on GitHub. They’re still in a trial phase, and you get them on paid plans from Pro upwards.

You set them up with the /schedule command, or you simply describe to Claude what should happen and when, for example “Every Monday morning, go through… and send me a summary.”

When they make sense

Automation isn’t free, because every routine needs watching, and when it stops running, nobody tells you.

I learned this first-hand when the News section on this site was filled by an automation that was supposed to pull in news from the AI world every day and sort it. Then it stopped running and for a long time I didn’t notice, so old “daily” news was left hanging on the site and the section is now being rebuilt.

That’s why I’d suggest setting the routine up to let you know when it fails and to report even when everything is fine, because then silence can only mean that the routine didn’t run. A brief like that can look like this:

Every working day at 7:30, go through the new files in the Inputs folder
and send me a summary in five points.
If anything fails, start the message with the word ERROR and say exactly what.
If there is nothing new, just write "No changes".
Always send the message, so I know you ran.

Automate only what genuinely repeats and annoys you, though, because sometimes it’s easier to do the thing yourself than to spend half a day setting it up and then keep an eye on it.

What I have today

What has ended. The trading bot that used to run regularly and watch the data stopped when I shut down the servers at the end of April 2026, I archived its repositories in June, and I switched off the automatic Updates.

What runs at work on a schedule. A mail watcher, a small script started by the Windows Task Scheduler that regularly goes through new e-mails, files them into the right folders and prepares the material, but sends nothing. Whatever it can’t read, it puts into a separate error queue that I can see, and if it gets stuck, a second script restarts it. A second routine clears temporary files when the disk is running low on space, deleting only temporary folders, never my data.

What runs on events. Some routines need no schedule at all, because a hook, an automatic safeguard that fires on a certain event, is enough. One adds the rules for its topic to each of my messages and another logs every time Claude is waiting for my approval or has nothing to do. That log showed me how much time work had stood still before I noticed it was waiting. The setting looks like this:

{
  "hooks": {
    "Notification": [
      {
        "matcher": "permission_prompt|idle_prompt",
        "hooks": [
          {
            "type": "command",
            "command": "python ~/.claude/hooks/log_waiting.py",
            "timeout": 30
          }
        ]
      }
    ]
  }
}

What I’m trying at home. On my home PC I now have Hermes Agent, a personal assistant that can run tasks on a schedule, is connected to my email and controls a browser. I’m still gathering experience with it, so I’ll write about specific routines once they’ve proven themselves.

You don’t have to automate everything and can start with one task that genuinely bugs you. Ready-made pieces of setup are in Templates, the tools in My stack. And if you already have a routine, I’d be glad if you wrote to me about what it saved you.