A Tool for Debugging LLM Cache Misses

t4a8945 · reddit · 2026-07-18

The author built a debugging tool called cache-hunter for local-first LLM harnesses to catch exactly which changes in API calls trigger cache invalidation.

The Problem It Solves

When running models locally, prefill costs become glaringly obvious due to cache misses. Common culprits include:

How to Use

The tool then displays the session in real-time, highlighting unstable fields in red.

Author's Observations

The author tested it on their own harness alongside OpenCode, Claude Code, Cline, Pi, Hermes, and Vibe. Many exposed instabilities in:

The author concludes that this kind of cache stability check should become a standard test for harnesses.

Original post →

More from coding & agent

coding & agent channel →