| ▲ | Show HN: CodeBurn – Analyze Claude Code token usage by task(github.com) | ||||||||||||||||
| 46 points by agentseal 3 days ago | 13 comments | |||||||||||||||||
Built this after realizing I was spending ~$1400/week on Claude Code with almost no visibility into what was actually consuming tokens. Tools like ccusage give a cost breakdown per model and per day, but I wanted to understand usage at the task level. CodeBurn reads the JSONL session transcripts that Claude Code stores locally (~/.claude/projects/) and classifies each turn into 13 categories based on tool usage patterns (no LLM calls involved). One surprising result: about 56% of my spend was on conversation turns with no tool usage. Actual coding (edits/writes) was only ~21%. The interface is an interactive terminal UI built with Ink (React for terminals), with gradient bar charts, responsive panels, and keyboard navigation. There’s also a SwiftBar menu bar integration for macOS. Happy to hear feedback or ideas. | |||||||||||||||||
| ▲ | coatol5 an hour ago | parent | next [-] | ||||||||||||||||
Made something similar a while back: https://www.clauderank.com/ Completely open source | |||||||||||||||||
| ▲ | Isolated_Routes an hour ago | parent | prev | next [-] | ||||||||||||||||
I like this a lot An interesting next iteration would be to add a functionality that evaluates a user's work for inefficiencies and suggests where they can improve cut cost. Might be outside the scope of your project, but it could be interesting. | |||||||||||||||||
| |||||||||||||||||
| ▲ | giancarlostoro 3 hours ago | parent | prev | next [-] | ||||||||||||||||
> The interface is an interactive terminal UI built with Ink (React for terminals) Just like Claude Code btw. I'm working on a custom harness because I don't like or trust some of the ones out there, so I'm going to build one purely for myself and my own needs to see just how they work, and figure out some of what you've learned by looking at how Claude works, so I might add your project to my list of tooling to look at. | |||||||||||||||||
| |||||||||||||||||
| ▲ | hmokiguess 2 hours ago | parent | prev | next [-] | ||||||||||||||||
Very cool! I saw a similar product recently that I liked but I much prefer your approach to theirs[1] | |||||||||||||||||
| ▲ | ieie3366 an hour ago | parent | prev | next [-] | ||||||||||||||||
"Built this after realizing I was spending ~$1400/week on Claude Code with almost no visibility into what was actually consuming tokens." holy slop. the $200/month plan has NEVER hit rate limits for me and I often run 5+ tabs of concurrent agents in a large 300k LoC codebase | |||||||||||||||||
| |||||||||||||||||
| ▲ | halostatue 2 hours ago | parent | prev [-] | ||||||||||||||||
Doesn't seem to work with Cursor Agent (which may store its data in ~/.cursor). | |||||||||||||||||
| |||||||||||||||||