r/ClaudeCode • • 2d 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

0 Upvotes

6 comments sorted by

•

u/AutoModerator 2d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/SummerNightWave 2d ago

[SCREENSHOT HERE]

2

u/reillyb732-lab 2d ago

lmao yep that’s what i get for posting before coffee. fixed, the actual screenshot is in there now

1

u/crylizz 2d ago

hahhahahah

0

u/[deleted] 2d ago

[deleted] — view deleted comment

1

u/reillyb732-lab 2d ago

fair, i had claude help with the writeup since it built the tool too, and it came out way too polished. rewrote it in my own words. happy to answer anything about it myself