Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

cache-diagnostics changedbuild-with-claude/cache-diagnostics

Nearest release: v2.1.328, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+11added
Lines−5removed
From line 29 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits25to this page, all time

The whole hunk

from line 29, old and new numbered
/
lines
from line 29
2929 - claude-sonnet-4-5-20250929
3030 supportedPlatforms:
3131 Claude API: stable
32 Claude Models on Google Cloud (Anthropic managed): stable
3233---
3334 
3435[Prompt caching](https://platform.claude.com/docs/en/build-with-claude/prompt-caching) cuts latency and cost significantly, but only when the beginning of your prompt is byte-for-byte identical to a recent request. A reordered tool, a timestamp interpolated into your system prompt, or an edit to an earlier message can silently invalidate the cache. Without cache diagnostics, the only signal is `usage.cache_read_input_tokens` dropping to zero, with no indication of what changed.
from line 1060
10591060 
10601061## Limitations
10611062 
1062* **Claude API only:** Cache diagnostics is available on the Claude API.
10631063* **Limited retention:** Fingerprints for `previous_message_id` lookup expire after a short period. Run diagnostic comparisons between closely spaced requests.
1064* **Same workspace:** The previous request must have run in the same organization and workspace. To check, compare the `anthropic-workspace-id` [response header](https://platform.claude.com/docs/en/api/overview#response-headers) on the two responses.
1064 
1065* **Same workspace:** The previous request must have run in the same organization and workspace. Otherwise, the result is `previous_message_not_found`. How you check that two requests share a workspace depends on the platform:
1066 
1067 * **Claude API:** Compare the `anthropic-workspace-id` [response header](https://platform.claude.com/docs/en/api/overview#response-headers) on the two responses.
1068 * **Claude Models on Google Cloud (Anthropic managed):** Compare the workspace ID in the two [request URLs](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed#making-requests).
1069 
10651070* **Comparison horizon:** For very long conversations where the only change is deep in the message list, the response might be `unavailable` rather than a precise location.
1071 
10661072* **Best-effort:** Diagnostics never blocks or fails your request. If diagnostic information is not available, the response returns `unavailable`, or `cache_miss_reason: null` when the comparison was still running.
10671073 
10681074## Data retention
from line 1092
10861092 
10871093* Availability: Available
10881094 
1089| Status | Cloud platforms |
1090| --------- | --------------- |
1091| Available | Claude API |
1095| Status | Cloud platforms |
1096| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1097| Available | Claude API, [Claude Models on Google Cloud (Anthropic managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed) |
10921098 
10931099#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
10941100 
Feedback