Claude Code routines: scheduled and event-triggered setup

Learn to set up Claude Code routines with /schedule, GitHub issue triggers, repository access and Slack alerts using a documentation PR example.

Player not loading? Watch on YouTube

Anthropic presenter Maya explains how Claude Code routines start remote coding sessions on a schedule or in response to events. She describes managed infrastructure that handles hosting and session state without requiring an open laptop. This workflow uses Anthropic's infrastructure rather than a self-hosted deployment.

The tutorial starts with /schedule and a weekly request to compare changes merged to main against a documentation repository, then open a PR for missing updates. Claude asks follow-up questions about timing and notifications. The demonstration uses mocked source code and documentation repositories, a Monday 10:00 a.m. schedule, and GitHub and Slack connections.

Setup centers on the trigger, the context the AI agent needs, and how a person will steer its work. Maya also configures a GitHub issue-open trigger that passes issue details into a session. She then asks that session to stop because another PR already covers the changes.

For review, she suggests a second routine that comments on generated PRs, human intervention during live sessions, and rendering changed documentation to check the result. She says sessions can be opened and resumed through web, CLI and desktop. Deployment health checks and backlog prioritization are proposed applications, rather than completed demonstrations.