kvdiff Cache Doctor
Diagnose LLM prompt-cache misses from sanitized turn comparisons. Identify likely changes in tool order or the prompt prefix and get a controlled retest.
Free
kvdiff Cache Doctor
Example session with this skill installed
Diagnose this synthetic cache miss. Two Anthropic turns used the same model 22 seconds apart. Each used 10,000 prompt tokens. Cache reads fell from 8,000 to zero. The same two tools reversed order, and the redacted kvdiff report flagged TOOL_REORDER at byte 412 in the first tool name. What likely changed, and how should I retest it?
- Read your context and instructions
- Compiled the kvdiff cache doctor
Summary
Tool order is the likely cause. The two turns used the same provider and model, and the redacted diff identifies the first changed byte in the tool list. The supplied counters show 80% of prompt tokens read from cache on the first turn and 0% on the second.
Evidence
| Signal | First turn | Second turn |
|---|---|---|
| Prompt tokens | 10,000 | 10,000 |
| Cached-read tokens | 8,000 | 0 |
| Time between turns | 22 seconds |
The short interval makes a change in the request a useful first hypothesis. Confirm the actual cache policy for the provider and model when investigating a real trace.
Controlled retest
Hold the model, provider route, prompt prefix, and tool schemas steady. Register the two tools in a deterministic order and replay the same workload. Compare cached-read tokens across equivalent warm turns. Record the provider counters and any remaining diff. These numbers are from the synthetic case.
Connects securely to your tools. The creator never sees your data.
About this skill
Cache Doctor helps developers explain unexpected drops in prompt-cache reads. Supply two comparable turns with the provider, model, time gap, and prompt and cached-read token counts. Add a redacted kvdiff finding if you have one.
What you get
- A diagnosis grounded in the counters and changes you supplied
- The likely field to inspect and any missing evidence
- A controlled retest that keeps the provider, model, and workload consistent
The diagnosis works from pasted, sanitized evidence. The open-source kvdiff CLI can provide additional diagnostic context. Savings estimates depend on provider-reported usage and pricing.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 11 days ago
- Free with an Agensi account
Nothing to install. It runs in your AI agent.
- Optional
Node.js 24+kvdiff 0.1.0
Permissions
The pasted-evidence workflow needs no shell or network. File reads are for bundled Markdown references. The optional demo runs in a local shell and uses loopback with approval. Downloading the pinned npm package requires separate approval.
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.