<!-- llms-explorer concept facts · https://llms-explorer.com/tree/claude-code-compaction-floor-of-100k-versus-smal/ · pack 2026-10-05 · ~369 tokens -->

# Claude Code compaction floor of 100K versus small local windows

> The /autocompact command and --autocompact flag accept 100K to 1M; CLAUDE_CODE_AUTO_COMPACT_WINDOW clamps lower values up to 100K.

Parent: [Mac local LLMs: Agent clients, context and compaction](https://llms-explorer.com/tree/mac-local-llms-agent-clients-context-and-compaction/) · 1 facets · 6 facts · page: https://llms-explorer.com/tree/claude-code-compaction-floor-of-100k-versus-smal/

## Facts

- The /autocompact command and --autocompact flag accept 100K to 1M; CLAUDE_CODE_AUTO_COMPACT_WINDOW clamps lower values up to 100K. — source: `asserted`
- 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: `asserted`
- 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: `asserted`
- The model-config page states the auto-compact window command and flag accept 100K to 1M tokens — [source](https://code.claude.com/docs/en/model-config)
- CLAUDE_CODE_AUTO_COMPACT_WINDOW clamps values below 100000 up to 100K, including a suffixed value like 500k read as 500 — [source](https://code.claude.com/docs/en/env-vars)
- 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: `asserted`
