Claude Code /routines: Server-Side Scheduled Tasks
1 min read
Originally from vm.tiktok.com
View source
My notes
Watch on TikTok Tap to open video
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
/scheduleinside the CLI or equivalent in the desktop app, no YAML, no infra.