// AI Platform Drift
Messages API adds on-demand conversation compaction in beta
Claude Platform release notes · published 2026-09-21 23:42 UTC
WHAT CHANGEDThe Messages API now supports a `compaction` parameter (beta header `compact-2026-09-04`) that returns a signed compaction block summarizing sent messages. This block replaces the original messages in subsequent requests while preserving recent turns verbatim.
WHY IT MATTERSLong-running conversations currently hit context limits or incur cumulative token costs. This allows you to compress conversation history server-side while keeping recent exchanges intact, reducing both token usage and request size without losing conversation continuity.
WHAT TO DOTest the beta header `compact-2026-09-04` in a non-production environment with one long-running conversation flow. Measure token reduction and verify that responses remain coherent when using the compaction block instead of full message history.
Model-reported confidence 85% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## Claude Platform release notes — September 14, 2026 +https://platform.claude.com/docs/en/release-notes/overview#september-14-2026 +Mon, 14 Sep 2026 00:00:00 GMT + +The Messages API can now compact a conversation on demand on the Claude API, in beta with the compact-2026-09-04 beta header. 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. You choose when to compact, the request can run in the background, and you can keep recent turns word for word after the summary. On models with preserved thinking, the thinking in those kept turns can stay valid.
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.45 |
|---|---|
| triage reasoning | New API capability with beta header and parameter changes how developers structure conversation requests. |
| signals | new API feature announced · beta header introduced (compact-2026-09-04) · new top-level parameter (compaction) · changes conversation handling workflow · affects request structure and API contract |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |