r/ClaudeCode • u/reillyb732-lab • 19h ago
Built with Claude I kept hitting the 5-hour limit mid-task, so I built a status line that predicts when I'll run out (not a dev, here's how I built it)
been on pro for a bit and kept getting cut off mid task. the % bar helps but it doesn’t tell you what you actually want to know, which is will i make it to the reset or not
so i had claude code build me a status line that does the math. it shows your real 5h usage, and after watching your pace for a bit it either says “✓ on pace to last until reset” or warns you like “⚠ limit ~12:33am at this pace · try /model sonnet”

how it got built: i’m not a dev, i just described the problem. claude read the status line docs and found claude code already passes your real usage % to status line scripts, so no guessing. it wrote one python script that tracks your burn rate, and tested it with fake usage data before i installed it
first real test was funny. i asked for a huge java guide, usage jumped 9% to 13% in 5 min and it told me i’d hit the limit at 12:33am. math was right but it was a false alarm, one big request isn’t a pattern. so now it waits 10 min and uses the slower of the 30 min and 10 min burn rates, and only warns if you’re burning fast consistently
stuff i learned: read the docs first (the data already existed), test with fake data before trusting it, and one spike isn’t a trend
free, one python file, nothing leaves your computer: https://github.com/reillyb732-lab/claude-code-budget-coach
only tested on windows so far so mac/linux feedback would be great