Use it now Notable
No documentation found
Plugins can now trigger manual conversation compaction with custom instructions
What
A new compactConversation method lets a plugin ask Claude Code to compact (summarize and shrink) the current conversation, supplying its own custom instructions for how to do it. It's blocked for thin-client and remote sessions and while a turn is already in progress, and requests made this way are tagged with trigger: "plugin" for telemetry.
Why
This gives plugin authors a way to proactively manage conversation length instead of waiting for automatic compaction, while the guardrails and tagging keep it from interfering with active turns or unsupported session types.
Names in the bundlecompactConversation