Claude Code compaction floor of 100K versus small local windows
Parent: Mac local LLMs: Agent clients, context and compaction · Published reference · snapshot 2026-10-05
↓ Facts as markdownall context files
The /autocompact command and --autocompact flag accept 100K to 1M; CLAUDE_CODE_AUTO_COMPACT_WINDOW clamps lower values up to 100K.
These notes link each claim to its source. A source may be a research report hosted on this site rather than the primary document. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.
Facts
- The /autocompact command and --autocompact flag accept 100K to 1M; CLAUDE_CODE_AUTO_COMPACT_WINDOW clamps lower values up to 100K. [source]
- A value written with a suffix such as 500k is read as 500 and clamped to 100K, so a user trying 32k silently gets 100K. [source]
- Whether CLAUDE_CODE_MAX_CONTEXT_TOKENS below 100K is also clamped is still undocumented; the model-config page states the 100K to 1M range only for the auto-compact window. [source]
- The model-config page states the auto-compact window command and flag accept 100K to 1M tokens [source]
- CLAUDE_CODE_AUTO_COMPACT_WINDOW clamps values below 100000 up to 100K, including a suffixed value like 500k read as 500 [source]
- No documented control sets the auto-compact window below 100K; the already-recorded levers are CLAUDE_AUTOCOMPACT_PCT_OVERRIDE and CLAUDE_CODE_MAX_CONTEXT_TOKENS [source]
Children
- No children recorded.