Discussion about this post

User's avatar
Sujan's avatar

Rich — the re-read tax framing is the sharpest way I've seen this stated. 255 cache reads per output token landing at "only" ~5x the output cost, and still ending up as roughly half the bill, is exactly why this stays invisible until someone pulls the actual logs.

On the PreToolUse-hook-on-Read idea specifically — something's already doing a version of it in the wild. Graphify (https://github.com/Graphify-Labs/graphify) is an open-source Claude Code skill that builds a knowledge graph of your repo once, then hooks Read/Glob/Grep to redirect Claude toward querying the graph instead of re-reading files cold. Conceptually it's your "speed bump" idea, productized. We've started using it on our team and are seeing good results so far. Same underlying instinct as your status line and hooks — precompute structure once, stop re-deriving it every turn — just aimed at file reads instead of conversation history.

No posts

Ready for more?