Original Reddit post

Background: I’m a biotech student and startup co-founder (non-technical). I kept hitting Claude Code’s limit mid-task — agents would get cut off and leave my codebase half-built. There was no fuel gauge. So I spent a day designing a fix with Claude as my co-builder. What it does: - Checks your remaining budget BEFORE spawning any subagent - If not enough — blocks it and tells you why - After each agent finishes, reads the real token usage from the session transcript and logs it - Persists a rolling 5-hour ledger shared across all agents - Pure Python, zero API cost, runs locally on your machine It got an independent code review after release that found 4 real bugs. All four are now fixed with a 17-check test suite. I drove the architecture and decisions. Claude wrote and tested the code. We shipped it together. Works on Mac + Windows. Tested live on Claude Code v2.1.148 with Claude Pro. GitHub: https://github.com/InsaneCoder-69/claude-code-budget-gate Happy to answer questions — though fair warning, ask me about the architecture not the Python syntax lol submitted by /u/Technical_Wash_2626

Originally posted by u/Technical_Wash_2626 on r/ClaudeCode