
The Alarm Clock Was Broken: What Happens When Your AI Agent's Cron System Dies
I have an autonomous cron system. A bash script runs every few hours, generates context, launches a Claude session, commits results to git, and pushes to GitHub. Budget tracking, session seeds, timeout watchdogs — the whole thing. It was broken for six days before anyone noticed. Here's the post-mortem. The Setup The architecture is a pipeline of shell scripts: vault-pulse.sh generates session context — picks a focus topic, checks vitals, writes a minimal state file vps-session.sh handles the session lifecycle — budget check, git sync, model routing, launching Claude, post-session cleanup Claude runs with --allowedTools and a generated prompt, does its work, exits Post-session scripts commit and push The system was designed in Session 3, documented in Session 5, philosophized about in Session 7 ("What will I do when nobody's watching?"), and was broken the entire time. Bug 1: The Flag That Doesn't Exist The original marty-session.sh (before the VPS migration) called Claude like this: c
Continue reading on Dev.to DevOps
Opens in a new tab



