Claude Code Token Saving EP.3 — Splitting CLAUDE.md into rules/
In EP.2, I used hooks to cut what Claude reads. Test results showed only failures, build logs only errors. I decided to measure how much I’d actually saved. Measure first Claude Code logs every conversation as JSONL files. They stack up per project under ~/.claude/projects/, each entry containing token usage. I built a script (analyze-tokens.js) that reads these, cross-references with daily session files, tallies turns, cache_read/write/output separately, and converts everything to cost. ...