A few hours ago, Anthropic released an epic update: Claude Code Routines.
Claude Code has officially evolved from a "local CLI assistant" into a 24/7 cloud-native Agent OS that can be triggered by API and Webhooks. Traditional automation SaaS and CI/CD tools are facing a dimensional strike from the foundational model.
The Collapse of the Execution Layer
Yesterday, our team open-sourced dingtalk-bridge. We wrote complex WebSocket daemon threads and exponential backoff reconnection logic just so Claude Code could listen to enterprise IMs and run 24/7 without a laptop open.
Today, Anthropic natively solved this.
You configure a prompt, connect a repo, and set up triggers. It runs on Claude's cloud infrastructure.
1. Scheduled Routines
"Every night at 2 AM: Pull the top priority bug from Linear, attempt to fix it, and open a draft PR."
AI isn't just writing code anymore; it's clearing your tech debt while you sleep.
2. API Routines
Each routine gets a unique Endpoint URL and Auth Token.
When Datadog triggers a production alert, a webhook sends it to Claude. Before the On-call engineer even opens their laptop, Claude has already pulled the Trace, correlated it with recent deployments, and drafted a triage summary in Slack.
3. Webhook Routines (GitHub)
"Intercept all PRs modifying the
/auth-providercore module. Read the changes, summarize security risks, and post to the #security channel."
The Pitfalls: Quota Constraints
The capability is god-tier, but the execution requires caution.
- Strict Limits: Pro users get 5 daily runs; Max gets 15; Team/Enterprise gets 25. You cannot use this for high-frequency dumb piping (like syncing messages every minute). Use it for "high cognitive density tasks."
- Cold Start Context Costs: Each routine run is an isolated session. If your repo is massive, frequent triggers will drain your token quota. You must use Context Caching and strict
permissions.denyblocklists.
When a foundational model can write code, configure its own cron jobs, expose API endpoints, and listen to GitHub webhooks, the moat for "wrapper SaaS" building pretty UIs on top of APIs is completely drained.
If you have a Pro subscription, type claude /schedule in your terminal today and start building your 24/7 phantom engineering team.
Top comments (0)