Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
CompactionArea: what it touches
Internal ChangesKind: in v2.1.283,
Internal ChangesSection of the release
Unclear How the display actually renders these changes is not confirmed.
What
Compaction summarizes a long conversation so it fits in the model's memory, either when you run /compact or automatically. When it starts, Claude Code now resets its count of how long the current response is and signals a "requesting" state, before announcing that compaction has begun.
Why
The spinner or token counter should no longer show leftover numbers from the previous response while compaction runs.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added sinceA small documentation edit on compaction-background touched a line naming /compact after this was published.![Background compaction timeline: the compaction request is sent with messages 1 to 5 while the conversation continues on its full history and gains messages 6 to 8; when the block arrives, it replaces messages 1 to 5 at the front of the h…build-with-claude/compaction-backgroundsee the edit
Confirmed sinceAnthropic's documentation has since written up /compact, on Agent SDK reference - TypeScript.* `local_command`: the name of the command the turn dispatched, on the success result of a turn that a command completed without entering the agent loop, such as `/compact`. The name is folded to lowercase letters and underscores, so `/rel…agent-sdk/typescriptsee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtHow the display actually renders these changes is not confirmed.
Anthropic's documentation agreesAnthropic's documentation has since written up /compact, on Agent SDK reference - TypeScript.