Search the documentation
4 pages for claude_autocompact_pct_override.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Use Claude Code on the web
Claude Code CLI · in the page
claude-code-on-the-web
…the context window approaches capacity. Claude Code on the web sets [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](/docs/en/env-vars) in cloud sessions itself, so compaction triggers partway through the [auto-co…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…e web also sets some variables itself when it starts a session. For [`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`](/docs/en/claude-code-on-the-web#manage-context), the value Claude Code on the web sets overrides…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` | Set the percentage (1-100) of the auto-compact window at which auto-compa…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…ain conversation. Compaction triggers under the same conditions, and `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE` applies to subagents as well. See [environment variables](/docs/en/env-vars) for when the overrid…