Claude Code has launched a new feature called routines, designed to streamline automation for developers. This feature allows users to define repeatable processes that can manage backlogs, review pull requests (PRs), and respond to cloud events.
Routines can be configured once and executed on a set schedule, triggered by API calls, or activated in response to specific events. This means that developers no longer need to rely on their local machines to run these tasks, as routines operate on Claude Code’s web infrastructure.
Key Features of Routines
- Scheduled Execution: Users can set routines to run at regular intervals, such as hourly, nightly, or weekly.
- API Integration: Each routine has a dedicated endpoint and authentication token, allowing it to be triggered via HTTP requests.
- Event-Driven Triggers: Routines can automatically start based on events from GitHub repositories, creating new sessions for each PR that meets specified criteria.
For every PR, Claude Code opens a new session and continues to provide updates, allowing for follow-ups on comments and CI failures.
Usage Limits and Plans
Routines are available for users on Pro, Max, Team, and Enterprise plans with web access enabled. The daily limits for routine executions are:
| Plan | Daily Routine Limit |
|---|---|
| Pro | 5 |
| Max | 15 |
| Team/Enterprise | 25 |
Users can exceed these limits with additional usage if needed. More details can be found in the documentation.
Getting Started
To create a routine, users can visit claude.ai/code or simply type /schedule in the command-line interface (CLI).
Future Developments
Claude Code plans to enhance routines by expanding the range of event sources that can trigger them, further increasing their utility for developers.