CLI commands and flags

--autocompact

Configures the auto-compact threshold for the active session without altering stored settings.

Syntax

--autocompact <auto|tokens>

Example

Terminal
claude --autocompact 500k

Type to search the reference, templates and lessons.