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.

cpaua2 min504

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

Claude Code by Anthropic | AI coding agent and assistant

Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.