refcard.dev

← Claude Code / Environment Variables / Context & Compaction

CLAUDE_CODE_AUTO_COMPACT_WINDOW

Set the rolling window size (in tokens) for auto-compact thrash detection.

CLAUDE_CODE_AUTO_COMPACT_WINDOW