Skip to content

Firsthand.today

Paper and open-source tool that names the cause of each prompt-cache miss in agent workloads

Summary

Prefixwise is a proxy/SDK wrapper that splits each request into blocks, fingerprints them, and names the first changed block as the cause of a cache miss, joining vLLM/SGLang KV events for self-hosted runs. Evaluation injected 1,772 changes with none misnamed and 0 false alarms on 3,622 append-only turns.

What the comments say

  • Sorting the tool list and keeping the system prompt byte-stable removed most cache misses in practice; generated tool schemas can still shift key order and required arrays between calls, so canonicalize tools by name and schema keys.

    — Far_Reindeer8428, No-Individual159 · Reddit
  • A cause-naming tool must stay quiet when nothing is wrong; the zero false alarms on 3,622 append-only turns and 1,772 injected changes with none misnamed are the numbers to trust first.

    — novai-max · Reddit
  • On hosted APIs, TTL expiry and routing misses are inferred by elimination, so an explicit unexplained bucket with its share of misses and tokens is needed to avoid reading unexplained misses as explained.

    — novai-max, No-Individual159 · Reddit
  • Idle time past the 5-minute TTL is a common miss in Claude Code, not a changed byte; a 5:45 pause rewrote 44k tokens, and the tool names this ttl_expired rather than eviction and prices whether the 1-hour cache would have paid.

    — Unusual-Albatross43, No-Individual159 · Reddit
  • A live timestamp in the system prompt at the top of the prefix causes a full miss on every call; moving it into the latest user message usually removes most of those misses.

    — vladgladi · Reddit
  • On hosted APIs the render is opaque, so block boundaries must be recovered and re-verified across SDK and version changes; drift in alignment risks misnaming causes.

    — NihilismWithBenefits · Reddit

Join the discussion

Was this useful to you?

Paper and open-source tool that names the cause of each prompt-cache miss in agent workloads · Firsthand.today