# 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 th…

- **Page:** https://magpie.gallery/i/codeburn-analyze-claude-code-token-usage-by-task-ezzn
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** macos
- **Tags:** token-usage, claude-code, cost, analysis, cli

## Source

Web · agentseal: CodeBurn – Analyze Claude Code token usage by task

- **Original:** https://news.ycombinator.com/item?id=47759035

> 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. https://github.com/AgentSeal/codeburn

## GitHub projects

- https://github.com/AgentSeal/codeburn

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
