Intermediate10 min

Managing and Debugging Routines

Creating a Routine is the beginning, not the end. Effective Routine management means knowing how to monitor, edit, debug failures, and make the right call between disabling and deleting. This article covers the full operational lifecycle.

Quick Reference

  • Create Routines via Desktop app UI, /schedule CLI, or Routines API
  • Desktop sidebar shows status (active/paused/erroring), last run, and next scheduled run
  • Full run transcripts available for every run, including failed ones
  • Editing a Routine takes effect on the next run — no re-deploy needed
  • Four common failure modes: branch permissions, connector auth expiry, token budget, repo access
  • Disable to pause without losing config/history/auth — Delete is irreversible
  • Check the run transcript first when debugging — it shows exactly what Claude attempted

Three Ways to Create a Routine

Routines can be created through three interfaces, each suited to different workflows. The Desktop app UI is the fastest path for creating and testing individual Routines. The /schedule CLI command is the right tool for scripting Routine creation or managing Routines as code in a team repository. The Routines API handles programmatic creation from CI/CD pipelines or internal tooling.

MethodBest ForNotes
Desktop App UIInteractive creation, visual configuration, first-time setupGuides through all three components with form validation
/schedule CLIScripted creation, team configuration as code, batch operationsSupports all configuration options as flags, outputs JSON
Routines APIProgrammatic creation from CI/CD, internal tooling, Routine templatingFull REST API with JSON request/response
Creating a Routine via CLI with GitHub webhook trigger, testing before enabling
Creating a Routine via the Routines API from a CI/CD pipeline or internal tooling
Always Create Disabled, Then Test

Regardless of which creation method you use, create new Routines with enabled: false (or create them in a paused state via the UI). Trigger a manual test run, review the full transcript, verify connector outputs arrived correctly, then enable. A Routine that fires incorrectly on its first live run wastes a run credit and may post confusing output to team channels.