
Tech • IA • Crypto
Anthropic has introduced “routines” in Claude Code to automate proactive AI agents that run on schedules or events without requiring custom infrastructure.
Claude Code is evolving from a prompt-driven coding assistant into a proactive “teammate” capable of initiating work independently. The goal is to eliminate the need for users to manually trigger actions, enabling agents to detect issues, respond to events, and execute workflows automatically.
Building proactive agents traditionally requires significant overhead, including hosting, scheduling, authentication, and data persistence. Developers often rely on cron jobs or custom endpoints, creating maintenance burdens and boilerplate code that distract from core tasks.
The new routines capability allows users to launch remote Claude Code sessions by defining four elements: a prompt, connected repositories, available tools or connectors, and a trigger. Claude Code manages execution, infrastructure, and session state on hosted systems.
Routines can run on schedules, such as weekly or daily intervals, or respond to events like GitHub activity. Event-based triggers also support custom webhooks, enabling integration with deployment pipelines or external systems.
Unlike local setups, routines run on managed infrastructure, ensuring continuous operation regardless of a user’s device status. This removes dependency on local machines and centralizes authentication, storage, and compute.
Each routine operates as a live Claude Code session that can be monitored and adjusted in real time عبر web or desktop interfaces. Users can intervene mid-process, redirect tasks, or resume past sessions, addressing a common limitation of headless automation.
Anthropic reports a 200% increase in weekly pull requests for Claude Code, creating pressure on documentation workflows. Routines are used internally to scan code changes, compare them with documentation repositories, and automatically generate pull requests to update docs.
Effective routines depend on providing the right context, including access to multiple repositories, external documents, and tools like Google Drive, Slack, or monitoring platforms. The available context defines the agent’s effectiveness and output quality.
To maintain accuracy, workflows can include layered routines, such as one agent generating documentation and another reviewing it. Human oversight remains optional but supported through live monitoring and output verification.
संभावित use cases include deployment verification, where agents monitor system health post-release using tools like Datadog or Grafana, and automatically recommend or execute rollbacks. Other scenarios include issue triaging, backlog prioritization, and on-call investigation.
Routines mark a shift toward autonomous, event-driven AI workflows in software development, reducing infrastructure overhead while enabling continuous, context-aware automation.