refcard.dev

← Claude Code / Environment Variables / Context & Compaction

CLAUDE_AUTOCOMPACT_PCT_OVERRIDE

Override the context percentage threshold that triggers auto-compact (default ~95%).

CLAUDE_AUTOCOMPACT_PCT_OVERRIDE