
Overnight agent runner
I run Claude Code agents on my own machine at night, on a schedule, with nobody watching. A task list goes in. The agent works through it, saves its results, and stops when it finishes or hits a usage limit. From August 14 to October 24 the log shows 264 runs. 128 finished cleanly and 122 ended on a usage limit.
The safeguards matter more than the agent. Each one exists because something went wrong first.
- One run at a time. A lock blocked 70 starts that would have put two agents on one task list.
- Quiet hours. A run that fires outside the allowed window waits. 12 starts were deferred.
- Kill switch. One switch pauses every run, and repeated usage limits trip it automatically.
- Bounded retries. After a usage limit a run retries a set number of times, then stops. 96 retries were scheduled.
- Time limit. A run that outlives its ceiling is taken over, and its stray processes are cleaned up.
- Nothing goes out without me. Runs draft and prepare. I send and publish.
In August 2026 three scheduled jobs kept re-queuing after every reset and used up my whole usage limit for four days. I found the cause, and the safeguards came from that. The runner itself is not published.

