Prefixwise diagnoses prompt-cache misses, validated on 269k real agent requests

No-Individual159 · reddit · 2026-12-01

The author open-sources Prefixwise (MIT), a tool that explains why a prompt cache missed—which prompt part changed, what it cost, and whether it was avoidable—by hashing each request part and diffing against the previous turn.

Validation:

It suggests fixes with predicted savings (99.9% realized on Claude tool sorting, 97.5% on vLLM). Usable as a Python proxy (prefixwise.wrap(client)), a LiteLLM callback, or on Claude Code/Codex logs; stores only hashes and counts.

Original post →

More from coding & agent

coding & agent channel →