Cursor CLIcontext-managementbuilt-in
/compress
Summarize conversation to free context window space while keeping a high-level record of what happened.
When to use
- ▸Mid-task when context is nearly full
- ▸Before switching to a new sub-task in the same session
- ▸Preserving a summary before a context-heavy operation
More Cursor CLI commands
exploration
/ask
Switch to Ask mode for read-only exploration — the agent searches and answers questions without editing any files.
configuration
/auto-run
Toggle auto-run (default) or set explicitly on/off/status. Controls whether tools run without asking for confirmation.
setup
/commands
Create or edit custom slash commands for repetitive workflows.
diagnostics
/feedback
Share feedback with the Cursor team directly from the CLI.