Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.20 ·

Configurable Autocompact Threshold

Entry
JSON All of v2.0.20
EntryKind: in v2.0.20,
ChangesSection of the release

What: Override the default autocompact threshold using an environment variable

How to use:

# 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:

  • Accepts percentage values from 1-100
  • Falls back to default if invalid value provided
  • Provides more control over memory management
  • Useful for balancing context usage vs. compaction frequency
  • Evidence: Gn6() at line 296137

See this entry in the whole of v2.0.20 →

Feedback