Back
AI summary
Written by AI from the official notes. Check them for exact details.Cache diagnostics are now available in public beta for better prompt analysis.
- New cache diagnostics feature launched in public beta.
- Use
diagnostics.previous_message_idfor detailed cache reports. - Include
cache-diagnosis-2026-04-07header in requests.
Why it matters: Developers using Claude should utilize this feature for improved prompt performance analysis.
Full release notes
- We've launched cache diagnostics in public beta. Pass
diagnostics.previous_message_idon a Messages request and the API reports acache_miss_reasonexplaining where the prompt cache prefix diverged from the previous turn. Include thecache-diagnosis-2026-04-07beta header in your requests.