compaction-threshold changedbuild-with-claude/compaction-threshold
Nearest release: v2.1.310, published 11 hours 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+2added
Lines−2removed
From line
1,365
where the diff opens
First seen
21 Sep 2026
this site's first read of the page
Recorded edits19to this page, all time
The whole hunk
from line 1365, old and new numbered
/
from line 1365
13651365
13661366A long-running conversation might result in multiple compactions. The last compaction block reflects the final state of the prompt, replacing content prior to it with the generated summary.
13671367
1368```text Output
1368```json Output
13691369{
13701370 "content": [
13711371 {
from line 2256
22562256
22572257Compaction requires an additional sampling step, which contributes to rate limits and billing. The API returns detailed usage information in the response:
22582258
2259```text Output wrap
2259```json Output
22602260{
22612261 "usage": {
22622262 "input_tokens": 23000,
No line in this hunk matches that.