{"version":"2.1.334","anchor":"auto-compact-window-auto-announcement-fields-in-the-sdk-sc","canonical_anchor":"auto-compact-window-auto-announcement-fields-in-the-sdk-sc","heading":"Groundwork for announcing a lower 'auto' auto-compact window","tier":"notice","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/auto-compact-window-auto-announcement-fields-in-the-sdk-sc","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Groundwork for announcing a lower 'auto' auto-compact window\n\nNew autoWindow fields let Claude Code report an experiment-sized auto-compact window and show a one-time notice about it\n\n**Unclear.** It is not clear which accounts get the lower auto window and so would see this notice.\n\n**What**\n\nAuto-compact is when Claude Code shortens the conversation once the context window (how much text the model can hold at once) gets full enough. `\/autocompact` sets how full that is. New fields prepare for telling you that `auto` now means a lower window.\n\n- The session state shared with programs built on the SDK gains `autoWindow` and `autoWindowAnnouncement`. These let an app show a one-time notice that `auto` is a lower window, with choices such as `\/autocompact auto all` and `\/autocompact keep all`.\n\n- The calculation behind context usage can take a new `showsWindowAhead` option. When it is set, it works out a window from an experiment, reports `autocompactSource` as \"experiment\", and adds an `autoWindow` field to the result. Which parts of Claude Code turn this option on was not checked.\n\n**Why**\n\nIf you leave `\/autocompact` on `auto`, compaction may start earlier than you are used to on some accounts. The notice is meant to let you choose between the new `auto` window and keeping what you had.\n\n- Area: SDK\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}