Model configuration changedmodel-config
Nearest release: v2.1.328, published under an hour after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 18 Nov 2026 22:46 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 18 Nov 2026 23:07 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line
890
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits106to this page, all time
The whole hunk
from line 890, old and new numbered
/
from line 890
890890* **In scripts and cloud environments**: set [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](https://code.claude.com/docs/en/env-vars) to a token count such as `200000`. Unless Claude Code [ignores the value](#claude_code_auto_compact_window-values), the variable takes precedence over the command, the flag, and the `autoCompactWindow` setting. `/autocompact` then reports the override without saving. The status line's `used_percentage` measures against the model's full context window, so while the variable is set, that percentage doesn't indicate when compaction will run.
891891* **For one subagent**: see [Set the auto-compact window for one subagent](https://code.claude.com/docs/en/sub-agents.md#subagent-auto-compact-window).
892892
893The command and the flag accept a window size from 100K to 1M tokens, in any of these forms:
893The command and the flag accept a window size of 100K tokens or more, in any of these forms:
894894
895895* A plain token count, such as `200000`
896896* A `k` or `M` suffix, such as `500k` or `1M`
from line 900
900900
901901#### Values and warnings for `CLAUDE_CODE_AUTO_COMPACT_WINDOW`
902902
903A warning that quotes your `CLAUDE_CODE_AUTO_COMPACT_WINDOW` value means the value falls outside 100,000 to 1,000,000 or isn't a token count. To stop the warning, set a number in that range, such as `CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000`. On Claude Code v2.1.304 or later, you can also write the number with `k` for thousands or `M` for millions, as in `200k` or `1M`.
903A warning that quotes your `CLAUDE_CODE_AUTO_COMPACT_WINDOW` value means your session isn't using the value as you set it. To stop the warning, set a number such as `CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000`. On Claude Code v2.1.304 or later, you can also write the number with `k` for thousands or `M` for millions, as in `200k` or `1M`.
904904
905905Find your warning's wording in the first column, then read across for the window your session uses and what to change:
906906
No line in this hunk matches that.