Prefixwise
An open-source tool for diagnosing and optimizing LLM prompt caching that identifies, fixes, and prevents prompt cache misses across platforms, with an emphasis on storing no prompt text in order to protect privacy.
Timeline (last 90 days)
For teams planning to introduce an attribution tool for cost governance, it is advisable to first run a small-scale shadow comparison (shadow mode, recording only without changing routing) on their own traffic, and only add it to the alerting chain after confirming that the causes reported by the tool match the actual changes in the engine's cached tokens.
On generated traffic, Prefixwise's attributions for SGLang 0.5.23 were all correct (456/456), with zero false positives (0/894).
On real session traffic, vLLM 0.33 missed 16 cases (425/441 correct) and SGLang 0.5.23 missed 10 cases (424/434 correct), with no false positives (vLLM 0/906, SGLang 0/913).
Those 26 misses all pointed to the same situation: edits to the most recent tool output.
The test's limitations include: only one model was tested, only the first 10 calls of each session were taken, and the changes were artificially designed rather than occurring naturally in production.
Prefixwise can be installed via pip install prefixwise, sits in front of a server or agent, and stores only hashes and token counts, not prompt content.
The open-source tool Prefixwise (MIT license) aims to point out what changed when the cache was invalidated, how much it cost, and how to fix it.
The author ran a stress test, deliberately breaking the cache 1,772 times, to verify whether Prefixwise could state the real cause.
On generated traffic, Prefixwise's attributions for vLLM 0.33 were all correct (441/441), with zero false positives (0/909).
Prefixwise claims support for mainstream inference frameworks and API services such as vLLM, SGLang, LMCache, Claude, and OpenAI.
4 more timeline events
All Facts (12)
For teams planning to introduce an attribution tool for cost governance, it is advisable to first run a small-scale shadow comparison (shadow mode, recording only without changing routing) on their own traffic, and only add it to the alerting chain after confirming that the causes reported by the tool match the actual changes in the engine's cached tokens.
50%UnverifiedOn real session traffic, vLLM 0.33 missed 16 cases (425/441 correct) and SGLang 0.5.23 missed 10 cases (424/434 correct), with no false positives (vLLM 0/906, SGLang 0/913).
50%UnverifiedThose 26 misses all pointed to the same situation: edits to the most recent tool output.
50%UnverifiedThe test's limitations include: only one model was tested, only the first 10 calls of each session were taken, and the changes were artificially designed rather than occurring naturally in production.
50%UnverifiedPrefixwise can be installed via pip install prefixwise, sits in front of a server or agent, and stores only hashes and token counts, not prompt content.
50%UnverifiedThe open-source tool Prefixwise (MIT license) aims to point out what changed when the cache was invalidated, how much it cost, and how to fix it.
50%UnverifiedOn generated traffic, Prefixwise's attributions for vLLM 0.33 were all correct (441/441), with zero false positives (0/909).
50%UnverifiedOn generated traffic, Prefixwise's attributions for SGLang 0.5.23 were all correct (456/456), with zero false positives (0/894).
50%UnverifiedPrefixwise claims support for mainstream inference frameworks and API services such as vLLM, SGLang, LMCache, Claude, and OpenAI.
50%UnverifiedPrefixwise claims it does not store prompt text (zero prompt text stored), to reduce data privacy compliance risks.
50%UnverifiedThe author ran a stress test, deliberately breaking the cache 1,772 times, to verify whether Prefixwise could state the real cause.
50%UnverifiedPrefixwise v0.10.0 is an MIT-licensed open-source tool that can identify, fix, and prevent cross-platform LLM prompt cache misses.
50%