What
The result of /compact, the command that shortens a long conversation into a summary, now records whether the message it shows you repeats that summary. This is set when compaction produced a message meant for you.
Why
Claude Code can now tell when the summary has already been shown in that message.
Names in the bundle/compact
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.
Confirmed since
Anthropic's documentation has since written up /compact, on thinking-troubleshooting.
To fix it, keep the history append-only: pass earlier turns back exactly as sent and received, add instructions with a [mid-conversation system message](https://platform.claude.com/docs/en/build-with-claude/mid-conversation-system-messages…build-with-claude/thinking-troubleshooting see the edit
Added since
A small documentation edit on compaction-on-demand touched a line naming /compact after this was published.
* **Mid-conversation system messages and tool changes.** `role: "system"` messages inside the summarized range are summarized too, so their text instructions stop applying once the block replaces them. A [per-message effort](https://platfo…build-with-claude/compaction-on-demand see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
A small documentation edit on compaction-on-demand touched a line naming /compact after this was published.