
Your overnight Claude Code run died at 2am. A StopFailure hook and a 30-line wrapper decide whether to wait or wake you
The agent hit an API error halfway through a job and nobody knew until morning. This setup records why it stopped, retries the errors that time fixes and stops on the ones that don't. About fifteen minutes to set up.
11 min read
