context-editing changedbuild-with-claude/context-editing
Nearest release: v2.1.332, published 3 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+10added
Lines−12removed
From line
73
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits32to this page, all time
The whole hunk
from line 73, old and new numbered
/
from line 73
7373
7474The `clear_thinking_20251015` strategy manages `thinking` blocks from earlier assistant turns. This strategy gives you control over thinking preservation: you can choose to keep more thinking blocks to maintain reasoning continuity, or clear them more aggressively to save context space.
7575
76<Tip>
77 **Default behavior:** When a request doesn’t include the `clear_thinking_20251015` strategy, the default varies by model class.
76When a request doesn’t include the `clear_thinking_20251015` strategy, the default varies by model class.
7877
79 | Model class | Keep all prior thinking | Keep thinking only for the turn in progress |
80 | ----- | ----- | ----- |
81 | Opus | Claude Opus 4.5 and later | Claude Opus 4.1 and earlier |
82 | Sonnet | Claude Sonnet 4.6 and later | Claude Sonnet 4.5 (deprecated) and earlier |
83 | Haiku | Claude Haiku 5.5 and later | Claude Haiku 4.5 and earlier |
84 | Fable and Mythos | All models | (none) |
78| Model class | Keep all prior thinking | Keep thinking only for the turn in progress |
79| ----- | ----- | ----- |
80| Opus | Claude Opus 4.5 and later | Claude Opus 4.1 and earlier |
81| Sonnet | Claude Sonnet 4.6 and later | Claude Sonnet 4.5 and earlier |
82| Haiku | Claude Haiku 5.5 and later | Claude Haiku 4.5 and earlier |
83| Fable and Mythos | All models | (none) |
8584
86 Use this strategy to override the default. If your code runs across multiple model classes, include this strategy and set `keep` explicitly rather than relying on the per-model default.
87</Tip>
85Use this strategy to override the default. If your code runs across multiple model classes, include this strategy and set `keep` explicitly rather than relying on the per-model default.
8886
8987An assistant conversation turn might include multiple content blocks (for example, when using tools) and multiple thinking blocks (for example, with [interleaved thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#interleaved-thinking)).
9088
No line in this hunk matches that.