CodeBurn
Skill by ara.so — Daily 2026 Skills collection.
CodeBurn is an interactive TUI dashboard that reads Claude Code session transcripts directly from disk (~/.claude/projects/) and visualizes token usage, costs, and task breakdowns by project, model, activity type, MCP server, and tool. No API keys, no proxy — pure local file analysis.
Install
Requirements: Node.js 20+, Claude Code installed (session data at ~/.claude/projects/)
Key Commands
TUI Keyboard Navigation
What CodeBurn Tracks
13 Task Categories (deterministic, no LLM calls)
One-Shot Rate
For edit-heavy categories, CodeBurn detects Edit → Bash → Edit retry cycles. The 1-shot rate shows what percentage of edit turns succeeded without retries. 90% means the AI got it right first try 9/10 times.
Pricing
Fetched from LiteLLM model prices, auto-cached 24h at ~/.cache/codeburn/. Covers input, output, cache write, cache read, and web search costs. Falls back to hardcoded prices if fetch fails.
Data Source
Claude Code stores session transcripts as JSONL:
Each assistant entry contains: model name, token usage (input/output/cache_read/cache_write), tool_use blocks, timestamps. CodeBurn deduplicates by API message ID to prevent double-counting across sessions.
macOS Menu Bar Setup
To remove:
Export Examples
JSON Export Structure
Project Structure
Programmatic Usage (TypeScript)
If you want to integrate CodeBurn's parsing logic into your own scripts:
Common Patterns
Daily Cost Check in CI/Shell Scripts
Export and Analyze with jq
Automate Weekly Reports
Troubleshooting
No data shown / "No sessions found"
Pricing fetch fails / shows $0.00
Menu bar widget not updating
Double-counted costs
CodeBurn deduplicates by API message ID automatically. If you see unexpectedly high numbers, check for duplicate JSONL files:

