Cursor Commands & Prompt Reference

37 commands & parameters · 2 categories · Source: Cursor Docs — CLI slash commands & Prompting agents

Cursor's agent takes typed commands in two places: the cursor-agent CLI, where slash commands control modes, sessions, and the environment, and the chat input, where @ mentions attach files, folders, terminals, diffs, and past conversations as context. This page covers both surfaces from the official Cursor documentation. Editor keyboard shortcuts stay on our Cursor shortcuts page.

The CLI slash set is small but dense: /plan, /ask, and /debug switch working modes, /summarize compresses context, and /fork branches a conversation you want to explore without losing the original. On the chat side, precise @ mentions beat pasting code: @Commit attaches your uncommitted diff and @Branch your whole branch diff, which is usually what a review or bug-hunt prompt actually needs.

Also see: Cursor keyboard shortcuts.

All Commands

CLI Slash Commands (29)

Command / SyntaxWhat it doesNotes
/model [filter]Select a model. Press Tab to editType it at the start of the cursor-agent CLI prompt.
/run-everything [on|off|status]Toggle Run Everything or show its statusAlso: /auto-run. Type it at the start of the cursor-agent CLI prompt.
/plan [prompt]Switch to Plan mode, show the current plan, or submit a prompt in Plan modeType it at the start of the cursor-agent CLI prompt.
/askToggle Ask mode for read-only questionsType it at the start of the cursor-agent CLI prompt.
/debug [prompt]Toggle Debug mode or submit a prompt in Debug modeType it at the start of the cursor-agent CLI prompt.
/goal [objective]Give the agent a long-lived objective to work towards until it's fully complete. Rolling outType it at the start of the cursor-agent CLI prompt.
/logsShow the debug log path and copy it to the clipboardType it at the start of the cursor-agent CLI prompt.
/updateUpdate Cursor Agent to the latest versionType it at the start of the cursor-agent CLI prompt.
/max-modeToggle Max Mode on legacy request-based plansType it at the start of the cursor-agent CLI prompt.
/rename <name>Rename the current chat sessionType it at the start of the cursor-agent CLI prompt.
/clearStart a new chat sessionAlso: /new, /new-chat, /newchat. Type it at the start of the cursor-agent CLI prompt.
/resumeOpen recent chats and resume oneType it at the start of the cursor-agent CLI prompt.
/forkFork the current chat into a new sessionType it at the start of the cursor-agent CLI prompt.
/summarizeSummarize the conversation to reduce contextAlso: /compress. Type it at the start of the cursor-agent CLI prompt.
/rewindJump back to a previous messageType it at the start of the cursor-agent CLI prompt.
/vimToggle Vim keysType it at the start of the cursor-agent CLI prompt.
/line-numbersToggle line numbers in code blocksType it at the start of the cursor-agent CLI prompt.
/show-thinkingToggle thinking block displayType it at the start of the cursor-agent CLI prompt.
/status-indicatorsToggle terminal title status indicatorsType it at the start of the cursor-agent CLI prompt.
/shell [command]Enter Shell ModeAlso: /sh, /run. Type it at the start of the cursor-agent CLI prompt.
/aboutShow CLI version, system, and account info. Also copies it to the clipboardType it at the start of the cursor-agent CLI prompt.
/setup-terminalConfigure terminal newline keybindings. See Terminal setupType it at the start of the cursor-agent CLI prompt.
/help [command]Show help. UseType it at the start of the cursor-agent CLI prompt.
/help <command>for command detailsType it at the start of the cursor-agent CLI prompt.
/feedback <message>Share feedback with the teamType it at the start of the cursor-agent CLI prompt.
/openOpen the repository's Git root in CursorAlso: /cursor. Type it at the start of the cursor-agent CLI prompt.
/copy-request-idCopy the last request ID to the clipboardType it at the start of the cursor-agent CLI prompt.
/copy-conversation-idCopy the current conversation ID to the clipboardType it at the start of the cursor-agent CLI prompt.
/logoutSign out from CursorType it at the start of the cursor-agent CLI prompt.

@ Mentions & Prompt Input (8)

Command / SyntaxWhat it doesNotes
@<file>Attach a specific file to your promptExample: @auth.ts. Start typing after @ for suggestions.
@<folder>/Attach a folder; type / after selecting to navigate deeperExample: @src/components/.
@TerminalsInclude terminal output as contextAttaches recent terminal content to the prompt.
@ChatsReference context from a previous conversationPulls a past chat into the current prompt.
@CommitAttach the diff of your uncommitted working stateListed as Commit (Diff of Working State).
@BranchAttach the full diff of your branch against mainListed as Branch (Diff with Main).
@BrowserAttach context from the built-in browserBring page state into the conversation.
/<skill>Invoke a skill from the chat inputPress Enter to attach it to one message; use Custom Modes to keep it active.

Frequently Asked Questions

Do these slash commands work in the Cursor editor chat?

The slash commands on this page are for the cursor-agent CLI. In the editor chat, / invokes skills, and the @ mentions listed here attach context in both places where applicable.

What does @Commit attach compared with @Branch?

@Commit attaches the diff of your uncommitted working state. @Branch attaches the full diff of your branch against main - useful for review-style prompts.

How do I keep a skill active across a whole session?

Invoke it from the / menu with Alt+Enter (Option+Enter on Mac) or choose Use as Mode. The skill then stays in context every turn until you exit the mode.

Every entry on this page is a literal, typeable token taken from the official documentation linked above. Command sets in AI tools change quickly - the in-product command menu is always authoritative for your installed version.