/cc · Claude Code Commands
  1. Home
  2. Conversation & context
  3. /autocompact

/autocompact[auto|<tokens>]

v2.1.221+

Sets how full the context window gets before automatic compaction, e.g. 500k; auto restores the model-tuned default. Saved to user settings and applied immediately.

Best use

Long task interrupted by frequent compaction: /autocompact 500k.

Used in these situations

Related commands · Conversation & context

← See all commands