
What happened
A Python watchdog checks Claude Code's session log every minute, spots the usage-limit error, waits out the reset, then sends one line asking the same conversation to continue. On 2026-11-03 it resumed an overnight job 19 hours after it hit the weekly limit, with no human involved.
Why it matters
Teams running Claude Code unattended in tmux no longer lose hours after a limit lifts, but the watchdog has to skip look-alike errors such as context limits or it will retry forever — and it caps itself at 3 attempts.
Summaries like this, every morning.
The setup exists because unattended sessions fail at the worst time. The developer's Claude Code runs in tmux on a home PC with two jobs: orders arriving by voice from a commuter, and a scheduled run every night at 2am. When the 5-hour or weekly quota runs out, Claude Code stops with an error, and with nobody at the screen the session could sit for hours after the limit lifted.
The interesting part is how carefully the watchdog avoids making things worse. It filters out errors that look similar but will not fix themselves, such as a context limit or a budget limit — waiting on those and resending would just repeat the same error. It reads the reset time from the error text, then double-checks the same usage figures shown by Claude Code's /usage and waits until every window is below 100%. Before sending, it re-reads the log and the screen in case the user typed something from their phone in the meantime, and it records the send before sending so a crash cannot cause a duplicate.
On the day it ran, the weekly limit hit right after the 2am scheduled job; the watchdog asked to continue 43 seconds after the limit reset at 21:00, and the stalled job was finished without anyone touching it. The developer notes the exact error wording may change between Claude Code versions, so the pattern matching may need updating — and when it does not match, the design falls back to doing nothing rather than something risky.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
Casap announced a $56 million Series B led by Base10 Partners, with Experian and Synchrony as strategic invest…

Kindai University will give 4,000 Paperpal licenses to full-time faculty and doctoral students at all campuses…

HIX AI's connector update on 11月4日 links Microsoft 365 (Outlook Mail, Outlook Calendar, OneDrive), Google Work…

GENSHI AI said it adopted necoder in-house — a free, AGPL-3.0 Rust editor that Daichi Nagashima began building…

Nicholas Carlini matched Stockfish 17, ported to a 200MHz Pentium Pro, against 1996's Crafty 11.13 on a modern…

Xin Liu and co-authors surveyed 291 open-weight LLM repositories and found 20 of 38 untied gated and hybrid ch…
