← Claude Docs

Schedule tasks on the web - Claude Code Docs

Claude Docs · April 8, 2026
A scheduled task runs a prompt on a recurring cadence using Anthropic-managed infrastructure. Tasks keep working even when your computer is off. A few examples of recurring work you can automate: Reviewing open pull requests each morning Analyzing CI failures

Detailed Analysis

Anthropic's Claude Code platform has introduced a scheduled tasks feature for web users that enables automated, recurring AI-driven workflows to run on Anthropic-managed cloud infrastructure without requiring a user's machine to be on or a session to remain active. Available to all Claude Code tiers — Pro, Max, Team, and Enterprise — the feature allows developers to configure prompts that execute on hourly, daily, weekday, or weekly cadences, with the system handling time zone conversion so tasks fire at the correct local wall-clock time regardless of where the cloud infrastructure is physically located. Practical use cases include automated morning pull request reviews, overnight CI failure analysis, post-merge documentation syncing, and weekly dependency audits, representing a meaningful shift from Claude as an interactive assistant to Claude as a persistent, background engineering collaborator.

The scheduling architecture offers three distinct modes that differ substantially in their operational requirements and capabilities. Cloud-based web tasks run entirely on Anthropic's infrastructure, require no local machine, support a minimum interval of one hour, and access repositories via fresh clones on each run rather than local file systems. Desktop tasks run on the user's own machine with access to local files and support one-minute minimum intervals, but require the desktop application and machine to remain active. CLI-based loop tasks are the most ephemeral, scoped to an active session and non-persistent across restarts. This tiered model reflects a deliberate design philosophy: cloud tasks trade local file access and scheduling granularity for reliability and autonomy, while desktop and CLI modes offer more flexibility at the cost of infrastructure dependency. The minimum one-hour interval for cloud tasks, enforced by rejecting cron expressions that fire more frequently, is a load-management constraint with clear operational rationale.

Repository and security controls are central to the feature's design. By default, scheduled tasks can only push to branches prefixed with `claude/`, a guardrail that prevents autonomous runs from accidentally modifying protected or production branches. Users must explicitly enable unrestricted branch pushes per repository, a permission that is scoped at the task level rather than globally. Connector integration — allowing tasks to read from Slack, write to Linear, or interact with other MCP-connected services — is included by default for all of a user's configured connectors, with the recommendation to remove unneeded ones to minimize the tool surface available to each run. Cloud environment configuration further allows network access restrictions, environment variable injection, and dependency installation before each run, giving teams meaningful control over what each scheduled task can reach and do.

The broader significance of this feature lies in how it repositions AI assistants within software development workflows. Historically, tools like Claude have operated reactively — responding to prompts when developers initiate them. Scheduled tasks push Claude into a proactive, always-on role more analogous to CI/CD pipelines or cron-based automation scripts than to a chat interface. The ability to create tasks via natural language through the CLI (`/schedule daily PR review at 9am`) lowers the barrier to automation considerably compared to writing and maintaining cron jobs or GitHub Actions workflows. Each run also surfaces as an interactive session that developers can inspect, continue, or use to open pull requests, preserving human oversight while automating the initiation of work.

This development fits within a wider industry trend toward agentic AI systems that operate over longer time horizons and with greater autonomy than single-turn interactions. Anthropic's decision to manage the infrastructure directly — rather than relying solely on GitHub Actions or user-hosted runners — signals an intent to compete in the developer tooling infrastructure layer, not just the model layer. The feature's requirement of Claude Code v2.1.72 or later and its integration with GitHub authentication, MCP connectors, and cloud environments suggests it is designed as a composable piece of a broader platform strategy, where Anthropic controls the end-to-end loop from scheduling through execution to artifact delivery, reducing friction while incrementally expanding the scope of what AI agents can accomplish without direct human initiation.

Read original article →