Claude Code Routines Arrive in Preview: Scheduled, API-Driven, and Event-Triggered Automation
Anthropic launches routines for Claude Code, letting developers configure once and run tasks on schedules, via API calls, or in response to GitHub events — all hosted in Anthropic's infrastructure.
Anthropic has released routines in preview for Claude Code, a new automation layer that lets developers define a task once — prompt, repository, and connectors — and then trigger it on a schedule, via an API call, or in response to external events. Routines execute in Anthropic's web infrastructure, so no local machine needs to stay online.
Each routine gets its own API endpoint
Every routine exposes a dedicated HTTP endpoint. A POST request with a message returns a session URL, enabling direct integration with alerting systems, deployment pipelines, or internal tooling. For example, an alert payload can be forwarded to a routine that identifies the owning service and posts a triage summary to an on-call Slack channel.
Webhook routines subscribe to GitHub events
Webhook routines listen to GitHub events in real time. Connect one to a repository and instruct Claude to flag any pull request that touches a specific path — such as /auth-provider — and post a summary to a dedicated channel like #auth-changes. Anthropic says additional event sources will be added soon.
Scheduled routines run unattended
Scheduled routines accept a cron-style frequency. A team can configure a routine to pull the highest-priority bug from Linear each night, attempt a fix, and open a draft pull request — all without human intervention. The feature replaces the previous /schedule command in the CLI; existing schedules become routines automatically with no migration required.
Availability and plans
Routines are available now on all paid plans (Pro, Max, Team, Enterprise) provided Claude Code is enabled on the web. The rollout follows other recent automation upgrades, including the session optimization tips Anthropic shared for maximizing throughput.
Sources
Related news
Claude APIClaude Managed Agents add scheduled deployments and secure vaultsAnthropic introduces cron-based scheduling and environment variable vaults for Claude Managed Agents to automate routine tasks and secure API authentication.·same source: claude.com
- Claude CodeClaude Code now supports Artifacts for team collaborationAnthropic introduces Artifacts in Claude Code, allowing developers to turn CLI sessions into live, shareable visual pages that update in real time.·same source: claude.com
- AI ToolsLet Claude coordinate work with new Claude Code ProjectsAnthropic rolls out Projects for Pro, Max, and Ultra users, allowing the AI to manage multiple parallel threads and cloud sessions for complex development tasks.·mentions Claude
- Claude Code Adds Dynamic Loop That Chooses Its Own IntervalThe new /loop command runs prompts on a schedule or lets Claude pick the next tick based on what it observes, and can use the Monitor tool to skip polling entirely.·mentions Claude
Comments
Weekly digest
The best of vibe coding, AI agents and open source — once a week, no spam.