Anthropic Capability major

Messages API can compact a conversation on demand in beta

A new top-level compaction parameter, behind the compact-2026-09-04 beta header, returns a signed compaction block that you send in place of the messages it summarizes on later requests.

What does this mean for me?

  • Engineering leadership

    Cost, risk, timeline, team impact Worth knowing

    On-demand compaction gives you a lever to cut long-conversation token spend without waiting for a threshold to trigger. It is beta, so treat it as an experiment for one or two high-volume chat workloads before committing roadmap time.

  • Engineer

    What to change, what breaks, what to test Worth knowing

    Send the `compact-2026-09-04` beta header plus the top-level `compaction` parameter; store the returned signed `compaction` block and send it first in place of the messages it summarizes. You can run the compaction call in the background and keep recent turns verbatim, which preserves thinking on models that support it.

  • General consumer

    Using the Claude apps, not the API No impact

    Nothing to do — this is an API-only change and does not affect the Claude apps.

The Messages API on the Claude API can now compact a conversation when you ask it to, in beta with the compact-2026-09-04 beta header. You send the top-level compaction parameter and the API returns a signed compaction block summarising the messages you sent; on subsequent requests you send that block first, in place of those messages.

Unlike the existing threshold-driven compaction, you choose when compaction happens. The compaction request can run in the background, and you can keep the most recent turns verbatim after the summary. On models that preserve thinking, the thinking in those kept turns can remain valid.

This is documented on the dated Claude Platform release notes entry for September 14, 2026, which is where the beta header and parameter names above come from.

API surface

ParameterChangeBreakingModels
compactionaddedno
anthropic-beta: compact-2026-09-04addedno

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person