sanchomuzax/claude-usage-status-template ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python tool that keeps track of my Claude Code usage and shows me when I’m getting close to my quota. It should run on an always on machine with Claude Code already installed and logged in, check the live usage and reset times, estimate recent token usage from local Claude logs, and write the results into a status.json file plus a simple history over time. I want it to be easy to set up in a private GitHub repo, run from cron every few minutes, and commit or publish changes when the status meaningfully changes.

Please also include a simple budget check command that tells an agent whether it should keep going, slow down, or stop based on the current usage, with a few sensible modes like balanced, greedy, and conserve. If you need to, look up the current Claude Code docs online so the login and usage check flow is accurate. Keep the output friendly and easy to read, since I want to share this template with others.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab