# Claude Code /routines: Server-Side Scheduled Tasks

> Claude Code /routines (via /schedule) runs scheduled tasks on Anthropic's servers, not your terminal. Triggers support cron, API, or GitHub webhooks.

Published: 2026-04-16
URL: https://daniliants.com/insights/routines-is-now-here-in-claude-code/
Tags: claude-code, automation, scheduled-tasks, agents, github, webhooks

---

## Summary

Claude Code has added `/routines` (invoked via `/schedule` in the CLI), allowing scheduled tasks to run on Anthropic's servers instead of requiring a local terminal session. Output can be pushed to a connected GitHub repo, and triggers support cron, API hits, or GitHub webhooks for event-based automation.

## Key Insight

- Previous Claude Code automation required the laptop to be on and a terminal open, a hard blocker for any real production use.
- Server-side scheduling shifts Claude Code from "dev tool" to "autonomous agent runtime", similar to GitHub Actions, but with Claude as the worker.
- GitHub repo as output sink means every run produces a diffable artifact trail, which is useful for audit and rollback.
- Three trigger modes collapse most automation patterns: cron (time-based), API (on-demand), webhook (event-based from GitHub).
- Setup is `/schedule` inside the CLI or equivalent in the desktop app, no YAML, no infra.