Show HN: Prefixwise – names why each LLM request missed the prompt cache
Category: devtools
Tags: llm, prompt-caching, proxy, cost-optimization, observability
Score: 7.5/10 (Innovation: 8, Technical: 8, Documentation: 8, Utility: 6)
Prefixwise is a proxy/middleware that diagnoses why each LLM request missed the prompt cache, attributing one named cause per request with evidence, dollar cost, and a fix. It goes beyond diagnosis by applying proven optimizations (canonical tool ordering, automatic cache_control markers), gating CI against cache regressions, and detecting vLLM/SGLang eviction from KV events. The live-run evidence and replay-validated fixes make it a serious tool for anyone optimizing agent API costs.
Target audience: backend devs, AI/LLM engineers, devops running self-hosted inference
Repository: https://github.com/tejachavali/prefixwise · Python · MIT · 10 stars
View on Hacker News