CodeBurn – Analyze Claude Code token usage by task

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.

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

81

out of 100

Verdict

BUILD

high confidence

Competition

7

competitors found, emerging market, funded players

Trend

No signal yet

A hyper-niche tool for Claude Code users to analyze task-level token usage from local sessions, revealing hidden costs and enabling optimization.

The pain

Heavy Claude Code users are spending significant amounts on API calls (e.g., $1400/week) with almost no visibility into what tasks or types of interactions are consuming tokens, leading to unpredictable costs and inability to optimize.

The gap

While broad LLM observability platforms exist, none offer direct, task-level token usage analysis specifically from Claude Code's local session transcripts. CodeBurn fills this gap by providing granular insights into local usage patterns that broader tools miss or require extensive setup to capture.

Build angle

Focus on highly accurate classification of Claude Code session turns into meaningful tasks, presented in a minimalist, interactive terminal UI with macOS integration for a seamless developer experience, targeting power users first.

Strengths

  • Solves a very specific, high-severity financial pain point for a clear target audience.
  • Founder has direct experience with the problem and has already built an MVP.
  • Unique data source (local Claude Code transcripts) and analysis method provide a strong niche moat.
  • Clear, measurable value proposition (cost savings, usage optimization).
  • High willingness to pay due to significant potential cost savings.
  • Strong potential for viral adoption within niche communities.
  • The market for LLM cost optimization is rapidly growing.

Risks

  • Relies solely on Claude Code's local session transcript format, which could change, breaking the tool.
  • The niche, while valuable, might be smaller than broader LLM observability markets.
  • Convincing users to share local session data or install a local tool could be a hurdle for some.
  • Monetization model needs careful consideration to scale beyond individual developers to teams/enterprises.
  • Competitors, though broad, could eventually build similar niche features if the market proves large enough.

Next steps

  1. Launch the MVP to a small group of Claude Code power users for feedback on task classification accuracy and UI.
  2. Validate pricing tiers, focusing on how much users would pay for the insights/savings it provides.
  3. Explore partnerships or integrations to access a broader user base (e.g., with developer tools, or even Anthropic if feasible for local usage data).
  4. Investigate methods to monitor and adapt to potential changes in Claude Code's local data formats.
  5. Create content demonstrating the insights gained (like the 56% example) to attract more users.

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “CodeBurn – Analyze Claude Code token usage by task”.

Open FlyBot