Across 3,171 sessions and 30B tokens, only 0.3% was model output — a local tool that searches your agent logs

Rare_Guide_9830 · reddit · 2026-09-14

A developer noticed Claude Code and Codex write every session to disk as JSONL (per-response token counts, tool calls and results, model used, compaction points), so he built a local tool that parses them into a searchable SQLite DB with a UI.

His year's data:

Why: every turn resends the conversation until compaction; output stays flat while input compounds — agents read far more than they write and pay to re-read it every turn.

Unexpected find: 3,171 tool-call failures across 116k calls he'd never noticed; some created usage-draining loops, 95% inside sub-agent processes.

Original post →

More from coding & agent

coding & agent channel →