Hacker News
A Claude Quota Forensics Tool Found One User's Script Had Spawned 1,553 Sessions and 9,022 Requests
tare parses Claude Code's local session logs to attribute token spend by project, model and file, tracks the rolling 5-hour window, and detects background automation spawning sessions. The example in its docs is the reason it exists: 99% of a day's usage came from a script that spawned 1,553 sessions generating 9,022 requests, against 93 requests of actual human work. It deduplicates repeated API responses that inflate raw log counts and charges tools for what they caused rather than what they returned; MIT licensed, 123 stars, macOS/Linux with Python 3.9+, installed via npx skills add kelviq/tare.
↳ Follow the thread