
Anthropic introduces routines in Claude Code for scheduled and event-driven automation
Anthropic has launched routines in Claude Code as a research preview, introducing a new way for users to automate tasks through configurable workflows. Routines allow users to define automations, including prompts, repository access, and connectors, and set them to run on a fixed schedule, in response to API calls, or triggered by specific events.
Unlike previous methods that required developers to manage cron jobs and infrastructure, routines operate entirely on Claude Code’s web platform. This means automations continue to run regardless of whether a user's local machine is online. Users can specify prompts and set hourly, nightly, or weekly cadences for these workflows. Tasks previously assigned with the /schedule command in the command-line interface are automatically converted into scheduled routines.
Beyond scheduling, each routine is assigned a unique API endpoint and authentication token, allowing external applications to trigger workflows via HTTP requests. This enables integration with services such as alerting, deployment hooks, or internal tools. Following this, routines can also be set to activate based on GitHub repository events. For every qualifying pull request, Claude Code creates a session to process updates, manage comments, and track continuous integration failures. While webhook-based triggers currently cover GitHub, Anthropic intends to expand event source compatibility. Routines are immediately available for all Claude Code users on Pro, Max, Team, and Enterprise plans with web access enabled.