Prefixwise: intentionally broke prompt cache 1,772 times to validate root-cause tool

No-Individual159 · reddit · 2026-11-13

The author releases Prefixwise (MIT, open source): LLM servers (vLLM, SGLang, Anthropic, OpenAI) tell you how many tokens missed the prefix cache but not why; Prefixwise pinpoints which change (tool reordering, timestamps in the system prompt, rewording, edited messages) broke the cache, what it cost, and how to fix it.

Validation: 1,772 deliberately injected changes replayed through real engines (Qwen3-4B on a Colab L4):

Half the traffic comes from 150 real Claude Code sessions (nvidia/Open-SWE-Traces). Usage: pip install prefixwise; stores only hashes and token counts. Repo: github.com/tejachavali/prefixwise

Original post →

More from coding & agent

coding & agent channel →