Lily

Posted on Jul 17

• Originally published at dev.to

My last piece, "Auto-resuming a session that stalled on a rate limit," was about what to do after a 5-hour block stops you. This one is about the machinery that lets you notice before it stops you.

Claude MAX's 5-hour block halts your session the instant output tokens hit the ceiling. Even with 🕐 5h 82% visible in the status line, you have no idea how many tokens that remaining 18% actually represents. token-budget-advisor.sh detects the boundary in absolute terms — "getting dangerous around 800k, already cooked past 1.2M" — and this article covers its design, its integration into dashboard.sh, and how it gets wired into the status line.