{"version":"2.1.327","anchor":"agent-autocompactwindow-upper-bound-removed-agent-file-vali","canonical_anchor":"agent-autocompactwindow-upper-bound-removed-agent-file-vali","heading":"Auto-compact window no longer has an upper limit","tier":"notice","area":"Subagents","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/agent-autocompactwindow-upper-bound-removed-agent-file-vali","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Auto-compact window no longer has an upper limit\n\n--autocompact and an agent's autoCompactWindow now accept any window at or above the minimum, with the old 1M cap gone\n\n**What**\n\nCompaction is when Claude Code summarises the conversation to free up room in its context, the amount of text the model can see at once. The auto-compact window sets how full the context gets before that happens. It now has a minimum only, with no maximum.\n\n- `--autocompact` help now reads \"Auto-compact window size (auto, or at least 100k tokens)\". It used to read \"auto, or 100k\u20131M tokens\", and the validation error was reworded to match.\n\n- `autoCompactWindow` in agent files (files that define a custom agent) now has no upper bound. The warning reads \"Must be an integer of at least\" a minimum instead of \"from\" a minimum \"to\" a maximum, and the field description reads \"Auto-compact window for this agent, in tokens, at least\" a minimum.\n\n- Agent-file name checking moved into a shared validator, and the lower bound is now one constant.\n\n**Why**\n\nWindows larger than the old 1M cap are now accepted, both for a single session and in agent files. Values below the minimum are still rejected.\n\n- Area: Subagents\n- Names: `autoCompactWindow`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}