Search the documentation
2 pages for disable_compact.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Error reference
Claude Code CLI · in the page
errors
…ompact or /clear to continue ``` The line names only `/clear` when [`DISABLE_COMPACT`](/docs/en/env-vars) is set. Longer forms of the error, such as the compaction-failed form below, keep the `Prompt…
Model configuration
Claude Code CLI · in the page
model-config
…or resolves to a Claude model, the variable takes effect only when [`DISABLE_COMPACT`](/docs/en/env-vars) is also set, which disables all compaction. For example, Claude Code resolves an ID that cont…