compaction-on-demand changedbuild-with-claude/compaction-on-demand
Nearest release: v2.1.318, published 4 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+1added
Lines−1removed
From line
50
where the diff opens
First seen
21 Sep 2026
this site's first read of the page
Recorded edits18to this page, all time
The whole hunk
from line 50, old and new numbered
/
from line 50
5050 # max_tokens caps the whole call, including any thinking, so allow several thousand tokens.
5151 curl https://api.anthropic.com/v1/messages \
5252 -H "x-api-key: $ANTHROPIC_API_KEY" \
53 -H "anthropic-version: 2023-06-01" \
53 -H "anthropic-version: 2026-10-21" \
5454 -H "anthropic-beta: compact-2026-09-04" \
5555 -H "content-type: application/json" \
5656 -d '{
No line in this hunk matches that.