{"slug": "replay-doctor-identifies-prompt-cache-failures-and-token-re-billing-in-claude", "title": "Replay Doctor identifies prompt cache failures and token re-billing in Claude Code sessions", "summary": "Replay Doctor, a locally run diagnostic tool, reads Claude Code transcripts to identify which turn caused prompt cache expiry or other failures and how many tokens were re-billed at write prices. The project attributes re-billing to cache expiry, tool list changes mid-session, and silent re-reads, and writes a single analysis file with counts, ratios, and build identifiers so developers can track token waste across sessions.", "body_md": "# Replay Doctor identifies prompt cache failures and token re-billing in Claude Code sessions\n\nReplay Doctor, a diagnostic tool available for local use, reads Claude Code transcripts and identifies which turn caused prompt cache expiry or other failures and how many tokens were re-billed at write prices. According to the project, causes of re-billing include cache expiry, tool list changes mid-session, and silent re-reads. The tool writes a single analysis file with counts, ratios, and build identifiers, allowing developers to track token waste across sessions.\n\n## Topics\n\n## Sources\n\n-   Official   [Read article](https://replay.doctor/)  \n\n## Go deeper\n\nThis intelligence is sourced automatically from public sources across the web and synthesised by the Prefactor AI pipeline. Stories are reviewed before publication.", "url": "https://wpnews.pro/news/replay-doctor-identifies-prompt-cache-failures-and-token-re-billing-in-claude", "canonical_source": "https://www.getreadyforagents.com/news/replay-doctor-prompt-cache-analysis/", "published_at": "2026-09-14 20:04:25+00:00", "updated_at": "2026-09-14 23:00:28.078775+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "large-language-models", "ai-products"], "entities": ["Replay Doctor", "Claude Code", "Prefactor AI"], "alternates": {"html": "https://wpnews.pro/news/replay-doctor-identifies-prompt-cache-failures-and-token-re-billing-in-claude", "markdown": "https://wpnews.pro/news/replay-doctor-identifies-prompt-cache-failures-and-token-re-billing-in-claude.md", "text": "https://wpnews.pro/news/replay-doctor-identifies-prompt-cache-failures-and-token-re-billing-in-claude.txt", "jsonld": "https://wpnews.pro/news/replay-doctor-identifies-prompt-cache-failures-and-token-re-billing-in-claude.jsonld"}}