Environment variables

CLAUDE_CODE_AUTO_COMPACT_WINDOW

Sets how full the context gets, in tokens (100000 or more), before automatic compaction runs.

Syntax

CLAUDE_CODE_AUTO_COMPACT_WINDOW

Type to search the reference, templates and lessons.