agent sdk guides
- "Claude Code Checkpoints: How Rollback Works in Automations"
"How Claude Code checkpoints work in headless jobs: enable SDK file checkpointing, save UUIDs, rewind unattended runs, and learn what rewind can't undo."
- Why Claude Code Stops Mid-Automation (and How to Fix It)
Why does Claude Code stop running headless automations? Map the turn, budget, timeout and permission triggers in claude -p runs, plus a fix checklist.