Search the documentation
4 pages for autocompactwindow.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Environment variables
Claude Code CLI · in the page
env-vars
…e over the `/autocompact` command, the `--autocompact` flag, and the `autoCompactWindow` setting. The status line's `used_percentage` always measures against the model's full context window, so once t…
Model configuration
Claude Code CLI · in the page
model-config
…`/autocompact 500k`. Claude Code saves it to your user settings as [`autoCompactWindow`](/docs/en/settings-reference#autocompactwindow) and applies it to the current session; if a higher-priority [se…
Claude Code settings
Claude Code CLI · in the page
settings
…| | `autoCompactWindow` | How full the context window gets before Claude Code [compacts automatically](/docs/en/context-…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…| Memory and context | Any file | | [`autoCompactWindow`](#autocompactwindow) | Set how full the context gets befo…