cache-diagnostics changedbuild-with-claude/cache-diagnostics
Nearest release: v2.1.301, published 5 hours before 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+25added
Lines−29removed
From line
50
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits13to this page, all time
The whole hunk
from line 50, old and new numbered
/
from line 50
5050 -H "x-api-key: $ANTHROPIC_API_KEY" \
5151 -H "anthropic-version: 2023-06-01" \
5252 -H "content-type: application/json" \
53 -d @- <<EOF | jq '{id, diagnostics}' # diagnostics: null means no divergence was found
54 {
55 "model": "claude-opus-5-5",
56 "max_tokens": 1024,
57 "cache_control": {"type": "ephemeral"},
58 "system": "You are an AI assistant analyzing a large document. <document>...</document>",
59 "messages": [
60 {"role": "user", "content": "Summarize section 1."},
61 {"role": "assistant", "content": "Section 1 covers..."},
62 {"role": "user", "content": "Now summarize section 2."}
63 ],
64 "diagnostics": {"previous_message_id": "$message_id"}
65 }
66 EOF
53 -d '{
54 "model": "claude-opus-5-5",
55 "max_tokens": 1024,
56 "cache_control": {"type": "ephemeral"},
57 "system": "You are an AI assistant analyzing a large document. <document>...</document>",
58 "messages": [
59 {"role": "user", "content": "Summarize section 1."},
60 {"role": "assistant", "content": "Section 1 covers..."},
61 {"role": "user", "content": "Now summarize section 2."}
62 ],
63 "diagnostics": {"previous_message_id": "'"$message_id"'"}
64 }' | jq '{id, diagnostics}' # diagnostics: null means no divergence was found
6765 ```
6866
6967 ```bash CLI
from line 411
413411 -H "x-api-key: $ANTHROPIC_API_KEY" \
414412 -H "anthropic-version: 2023-06-01" \
415413 -H "content-type: application/json" \
416 -d @- <<EOF | jq -R 'select(startswith("data: ")) | ltrimstr("data: ") | fromjson | select(.type == "message_start") | .message.diagnostics'
417 {
418 "model": "claude-opus-5-5",
419 "max_tokens": 1024,
420 "stream": true,
421 "cache_control": {"type": "ephemeral"},
422 "system": "You are an AI assistant analyzing a large document. <document>...</document>",
423 "messages": [
424 {"role": "user", "content": "Summarize section 1."},
425 {"role": "assistant", "content": "Section 1 covers..."},
426 {"role": "user", "content": "Now summarize section 2."}
427 ],
428 "diagnostics": {"previous_message_id": "$message_id"}
429 }
430 EOF
414 -d '{
415 "model": "claude-opus-5-5",
416 "max_tokens": 1024,
417 "stream": true,
418 "cache_control": {"type": "ephemeral"},
419 "system": "You are an AI assistant analyzing a large document. <document>...</document>",
420 "messages": [
421 {"role": "user", "content": "Summarize section 1."},
422 {"role": "assistant", "content": "Section 1 covers..."},
423 {"role": "user", "content": "Now summarize section 2."}
424 ],
425 "diagnostics": {"previous_message_id": "'"$message_id"'"}
426 }' | jq -R 'select(startswith("data: ")) | ltrimstr("data: ") | fromjson | select(.type == "message_start") | .message.diagnostics'
431427 ```
432428
433429 ```bash CLI
No line in this hunk matches that.