Tool

Prefix Cache Auditor

Client-side v0 for diagnosing cacheability score, unstable prefix segments, dynamic fields, schema volatility and cache-aware recommendations.

Prompt and request shape

No external calls. This only inspects text structure locally.

Cacheability score

Estimated risk based on unstable prefix shape, dynamic fields and schema volatility.

71/ 100

Unstable prefix segments

No obvious issue detected.

Dynamic field warnings

  • trace_id
  • timestamp

Tool schema volatility

  • Tool schema includes volatile field: trace_id

Recommendations

  • Keep tool schemas stable and avoid embedding trace/session/request fields in the cached prefix.
  • Normalize dynamic fields into late request payloads instead of early system instructions.
  • Make the first tokens of similar requests identical so provider prefix caches can match them.

Agent-step diff

  • prefix_hash changes between agent steps.
  • tools_hash changes between agent steps.
  • Trace includes timestamp/request_id/trace_id: verify they are not in the prompt prefix.