Your application can now decide when a conversation gets summarized, instead of waiting until it hits a limit. Send the top-level compaction parameter and the API returns a signed compaction block that summarizes the messages you sent. On later requests, send that block first, in place of those messages.
The request can run in the background, and you can keep recent turns word for word after the summary. On-demand compaction is in beta on select models on the Claude API, with the compact-2026-09-04 header.
