{"version":"2.0.20","anchor":"configurable-autocompact-threshold","canonical_anchor":"configurable-autocompact-threshold","heading":"Configurable Autocompact Threshold","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.20\/e\/configurable-autocompact-threshold","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.20","markdown":"### Configurable Autocompact Threshold\n\n**What:** Override the default autocompact threshold using an environment variable\n\n**How to use:**\n\n`# Set autocompact to trigger at 75% of context capacity export CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=75 claude # Or inline CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=90 claude` **Details:**\n\n- Accepts percentage values from 1-100\n- Falls back to default if invalid value provided\n- Provides more control over memory management\n- Useful for balancing context usage vs. compaction frequency\n- **Evidence**: `Gn6()` at line 296137"}