# cortex compact

Source: https://usecns.dev/cortex-cli-compact/

[Start here](https://usecns.dev/manual-cortex/)
[CLI commands](https://usecns.dev/commands-cortex/)
[Configuration & integration](https://usecns.dev/cortex-topics/)

Usage: `cortex compact [--instructions <TEXT>] [COMMON_OPTIONS]`. POST `/compact` with optional compaction instructions; no local default. It can alter active context and may invoke a model; it is not a read-only transcript query.

See [CLI conventions](https://usecns.dev/cortex-cli-usage/) for shared configuration and exit behavior, or [browse all commands](https://usecns.dev/commands-cortex/).