Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.0.20 Home All releases olderv2.0.19 v2.0.21newer
Claude Code v2.0.20

Configurable Autocompact Threshold

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 →