ENFR
8news

Tech • IA • Crypto

TodayTopicsVideosCryptoArchivesFavorites

Build a Proactive Agent Workflow with Claude Code

8/10
AnthropicClaudeMay 20, 2026 at 12:14 PM21:59
Audio player
0:00 / 0:00

TL;DR

Anthropic has introduced “routines” in Claude Code to automate proactive AI agents that run on schedules or events without requiring custom infrastructure.

KEY POINTS

Shift from reactive tools to proactive agents

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.

Infrastructure challenges addressed

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.

Introduction of “routines” feature

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.

Flexible triggers: time-based and event-driven

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.

Always-on, managed execution

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.

Interactive and steerable sessions

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.

Internal use case: automated documentation

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.

Context-aware automation

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.

Multi-agent validation and quality control

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.

Broader developer applications

संभावित 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.

CONCLUSION

Routines mark a shift toward autonomous, event-driven AI workflows in software development, reducing infrastructure overhead while enabling continuous, context-aware automation.

Full transcript

More from Anthropic