Cursor CLIexplorationbuilt-in
/ask
Switch to Ask mode for read-only exploration — the agent searches and answers questions without editing any files.
When to use
- ▸Understanding how a codebase works without making changes
- ▸Safely exploring unfamiliar code
- ▸Asking questions when you explicitly don't want file edits
More Cursor CLI commands
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.
context-management
/compress
Summarize conversation to free context window space while keeping a high-level record of what happened.
diagnostics
/feedback
Share feedback with the Cursor team directly from the CLI.