Claude Code Routines: Scheduled Tasks, PRs and Email

Quick answer
On 18 April 2026 I used Claude Code routines in the web UI and the CLI. Pro included five daily runs. I already had a daily email-triage routine. I added a GitHub event routine that reviews PRs for security issues, a 9:00 a.m. calendar list after Google Calendar connected, and an 8:00 a.m. Bangkok speed audit of tubeanalytics.net that was analysis only. CLI create hit a 401 until I ran Claude auth login. The speed audit found every page returning 403 because curl bots were blocked. A weekly blog-strategy routine was still running at the end. Weekly usage was already at 90 percent, so I stopped the speed-test run. TubeAnalytics is my own product.
Claude Code routines, also called Claude routines, run a saved prompt on a schedule, an event, or an API call. TubeAnalytics is my own product. The product URL from the description is claude.ai/code/routines/. I also said claude.ai/clauderoutines. Five daily runs were the Pro figure on 18 April 2026. I preferred the web UI over the CLI for creating routines because the CLI burned tokens. A later Hermes cron pass is Hermes Agent CLI cron jobs.
1. What Claude Code routines are
I said Anthropic had published this about 14 April, four days before the video. You give a name, a prompt, and either a schedule, an event, or an API call. Examples named were backlog, PR review, and event or API. I already had daily email triage: review unread, categorize, summarize, and draft. Yesterday's review was on screen.
2. GitHub PR security reviews
I created a GitHub event routine on a private repo. The prompt I pasted was:
review this PR for security issues.The GitHub app was already in the Claude Code terminal. Creating a long-lived token with the Claude subscription still returned failed to access repository, even though I said it already had access. I triggered on matching events and every PR, set permissions, created the routine, and ran it manually. The result covered all four open PRs with overall medium concern, needs verification before merging.
3. Calendar at 9:00 a.m.
A new cron routine at 10:00 a.m. could not use YouTube comments. Connectors were only Google Calendar or Google Drive. I connected Calendar and asked:
give me a list of upcoming events on my calendar.I later set that to 9:00 a.m. daily as Calendar update.
4. CLI speed audit and a weekly strategy job
In the CLI I opened /schedule. An example was schedule daily PR review at 9:00 a.m. I said create routine, answered "Just analyze the speed" and "Just analyze, no changes," gave tubeanalytics.net, and set 8:00 a.m. Bangkok. A 401 said auth is failing on remote trigger API, likely a session token expired. I ran Claude auth login, authorized in the browser, and continued. The stored prompt was a performance analysis agent for the TubeAnalytics website, daily speed and performance audit, no file changes and no commits. Run now did live TTFB and header checks. All pages returned 403 because the site blocked curl bot requests. It continued with code analysis. I started a weekly Monday blog-strategy routine that commits blog content strategy.md, then stopped the speed-test run at 90 percent credit usage. The weekly job was still running when the video ended.
Done when
- Opened Claude routines in the web UI or CLI
- Created one scheduled or event routine and ran it
- Reconnected auth if a 401 appeared, then read the result
What I didn't cover
- YouTube as a connector. Only Calendar and Drive were offered.
- A passing speed audit. tubeanalytics.net returned 403 to curl.
- Whether the weekly blog-strategy file was committed. The run had not finished.
Watch the walkthrough

- 0:00 Introduction to Anthropic Routines
- 0:11 Feature Overview: PR Reviews, Backlogs & Events
- 1:21 Case Study: Daily Email Triage Routine
- 1:57 Setting Up GitHub Event Triggers for Security
- 4:01 Manually Running vs. Automated Schedules
- 5:02 Connecting Google Calendar for Daily Notifications
- 6:14 Analyzing Security Risks in Open Pull Requests
- 7:05 Using the Claude Code CLI for Routine Setup
- 7:51 Automated Speed Tests for TubeAnalytics.net
- 10:49 Weekly Content Strategy & Auto-Commit Agent
- 11:54 Troubleshooting Session Tokens & Credit Usage
From the video
Lines from the video's transcript that this guide does not cover, lightly trimmed. Each time opens the video at that point. Read the full transcript.
- 0:15
This has only been live for 4 days and it's currently a preview release. Essentially, what this allows you to do is work through your backlog, review your PRs, and respond to events in the cloud.
- 8:21
You don't necessarily need to use the web interface. You could also use the command line, or you could use VS Code or whatever you're running Claude Code in.
- 11:52
It just says test prompt for TubeAnalytics blog strategy agent because it hasn't actually finished running this yet. It's burning through a lot of tokens just to do this so I would not recommend doing this inside Claude Code.
FAQ
How many daily runs did Pro include?
I said five included daily runs on 18 April 2026.
Did the GitHub routine run?
Yes, after a private-repo access error. It reviewed four open PRs at medium concern.
Why did the speed audit fail?
Every page returned 403 because curl bot requests were blocked.
Should I create routines in the CLI?
I preferred the web UI. The CLI burned tokens. Weekly usage was already at 90 percent.
What are Claude Code routines?
A routine has a name, a prompt, and a trigger: a schedule, an event, or an API call. I said Anthropic published them about 14 April 2026.
Can Claude routines run on a schedule?
Yes. I set a 9:00 a.m. daily calendar routine and an 8:00 a.m. Bangkok speed audit. In the CLI I used /schedule.
Sources
- Video: Claude Routines Just Dropped and It's a Game Changer! (18 April 2026)
- Claude Routines from the description: claude.ai/code/routines/
You may also like
Build the next one with AI Income Lab
Step-by-step courses, reusable templates, and a community that answers when you get stuck.
Members get the Claude Code & Skills and Codex Tutorials & Courses lessons.
- Courses for builds like this one
- Copy-ready templates
- Ask questions while you build
- Weekly coaching on VIP



