Routines (Cloud Tasks)
Cloud automation on Anthropic infrastructure, scheduled, API-triggered, or GitHub event-driven tasks that run even when your machine is off. Invoked via `/schedule` in Claude Code or from claude.ai/code/routines. Cloud complement to `/loop` (local). Supports GitHub triggers, webhooks, and cron.
Strengths
- Cloud execution, agents run without a local machine, 24/7 if needed
- Multiple triggers, cron, API, GitHub events (push, PR, issue) without own infrastructure
- Native Claude Code integration, same permissions and tools model as locally
Limitations
- Beta, features still evolving, possible API changes
- Per-execution billing, each routine consumes credits, monitor costs
- Cloud debugging harder, remote logs, less visibility than locally
Best for
- Automatic PR reviews triggered by GitHub, Claude analyzes each PR without human intervention
- Scheduled nightly tasks: monitoring reports, branch cleanup, changelog generation
- Machine-free pipelines: CI agents running on Anthropic infra, not on your runners