Replay Doctor identifies prompt cache failures and token re-billing in Claude Code sessions 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. Replay Doctor identifies prompt cache failures and token re-billing in Claude Code sessions Replay 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. Topics Sources - Official Read article https://replay.doctor/ Go deeper This intelligence is sourced automatically from public sources across the web and synthesised by the Prefactor AI pipeline. Stories are reviewed before publication.