{"version":"2.1.267","anchor":"plugins-can-now-trigger-manual-conversation-compaction","canonical_anchor":"plugins-can-now-trigger-manual-conversation-compaction","heading":"Plugins can now trigger manual conversation compaction","tier":"use","area":"Compaction","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.267\/e\/plugins-can-now-trigger-manual-conversation-compaction","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.267","markdown":"### Plugins can now trigger manual conversation compaction\n\nPlugins can now trigger manual conversation compaction with custom instructions\n\n**What**\n\nA 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.\n\n**Why**\n\nThis 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.\n\n- Area: Compaction\n- Names: `compactConversation`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5"}