Cursor Commands & Prompt Reference

72 commands & parameters · 8 categories · Sources: Cursor Docs: CLI slash commands reference (checked 2026-10-10) and 5 more · Checked

Commands typed into Cursor's agent, checked on 2026-10-10 against the CLI slash-command reference, the CLI changelog through release v2026.09.28, and the Prompting, Agent and Skills docs. The first six groups are CLI slash commands, a few of them documented only in the changelog. The last two cover the chat input, where @ mentions attach context and / runs built-in or your own skills; in the CLI, @ picks files and folders. Launch flags and editor keyboard shortcuts are left out.

Also see: Cursor keyboard shortcuts.

All Commands

Models and modes (8)

Command / SyntaxWhat it doesNotes
/model [filter]Pick a modelText after the command pre-filters the picker, as in /model sonnet; Auto stays pinned at the top of the list.
/fastToggle the Fast variantWorks only when the current model offers Fast, and that variant can require Max Mode.
/run-everything [on|off|status]Toggle Run EverythingAlias /auto-run; approval is set here, apart from the Shift+Tab cycle between Agent, Plan and Ask.
/plan [prompt]Plan before codingShift+Tab also rotates into Plan mode, where the agent asks clarifying questions before any code is written.
/askToggle Ask modeThe agent searches the codebase and answers without editing files; start in it with --mode=ask.
/debug [prompt]Toggle Debug modeWith no prompt it only switches the mode; with one, it sends that prompt in Debug mode.
/goal [objective]Set a long-lived goalStill rolling out; it also works in the editor chat, and in the CLI Ctrl+C pauses the goal.
/max-modeToggle Max ModeOnly for legacy request-based plans; the choice persists across sessions and shows MAX in the prompt bar.

Chat sessions (10)

Command / SyntaxWhat it doesNotes
/clearStart a new chatAlso accepted as /new, /new-chat or /newchat.
/resumeResume a recent chatLists chats from all workspaces by default; Left and Right switch to this workspace, and Ctrl+Y opens it too.
/rename <name>Rename this chat
/forkFork the chatAlso /branch or /duplicate; explore another direction while the original conversation stays as it was.
/rewindGo back to an earlier turnA timeline restores files and conversation to the chosen turn; on by default since v2026.06.22.
/copyCopy an earlier messageA picker can also copy the agent's replies or a single step of a multi-step answer.
/btwAsk a side questionThe read-only answer appears in a dismissible overlay mid-turn and never enters the chat history.
/detachLeave a persistent sessionUsed in a session started with agent persist; the agent keeps working until you reattach with agent persist attach.
/quitQuit the CLISame as /exit; pressing Ctrl+D twice on the prompt also leaves the CLI.
/exitExit the CLIReturns to the shell at once, without waiting for MCP servers or background tasks to stop.

Context and workspaces (6)

Command / SyntaxWhat it doesNotes
/summarizeSummarize the conversationAlso /compress or /compact; afterwards your latest message is still there word for word.
/contextShow context window useBreaks the window down by category, so you can see what is taking up space before summarizing.
/add-dirAdd a directoryAdds another directory mid-session; its slash skills and custom commands become available at once.
/save-workspaceSave a named workspaceStores the current set of directories so a later session can load the same repositories.
/load-workspaceLoad a saved workspaceReloads a directory set saved earlier; the --workspace flag starts a session scoped to one from the shell.
/openOpen the repo in CursorAlias /cursor; the editor window opens on the top-level folder of the current Git repository.

Tools and settings (6)

Command / SyntaxWhat it doesNotes
/shell [command]Enter Shell ModeShort aliases /sh and /run open the same Shell Mode.
/mcp [list|list-tools] [identifier]Manage MCP serversOpens a per-server view to log in or out, enable or disable a server and browse its tools; type to filter.
/plugin [subcommand]Manage pluginsInstalls or removes plugins at user or project scope; /plugin marketplace add registers a marketplace by git URL.
/configOpen the settings editorCovers permissions such as auto-accepting web searches, model slash shortcuts and the Explore subagent's model.
/sandboxConfigure the sandboxSandboxed commands reach the network only through a default-deny proxy, plus any allowlists your team admin sets.
/bedrock [subcommand]Set up AWS BedrockOnly offered once the Bedrock feature is enabled.

Display and terminal (5)

Command / SyntaxWhat it doesNotes
/vimToggle Vim keysStarts Vim editing from any point in the prompt; Esc returns to normal mode while you revise a plan.
/line-numbersToggle code line numbers
/show-thinkingToggle thinking blocks
/status-indicatorsToggle title status indicators
/setup-terminalSet up newline keysShift+Enter inserts a newline in iTerm2, Ghostty, Kitty, Warp and Zed; inside tmux use Ctrl+J instead.

Help and account (9)

Command / SyntaxWhat it doesNotes
/help [command]Show helpName a command after it to read that command's details instead of the general help.
/aboutShow version and account infoThe same details are also copied to the clipboard.
/usageShow plan usage and spendLists included-usage meters, on-demand spending versus your cap, the plan name and when the billing cycle resets.
/feedback <message>Send feedback to Cursor
/logsFind the debug logEvery session writes a debug log, stored per user on shared machines; the path is also copied.
/updateUpdate the CLIUpgrades in place from inside the session; agent update does the same from the shell.
/copy-request-idCopy last request ID
/copy-conversation-idCopy the conversation ID
/logoutSign out

Mentions and chat input (10)

Command / SyntaxWhat it doesNotes
@auth.tsAttach a fileauth.ts is the docs' example: type any file name after @, in the editor chat or the CLI, and pick a suggestion.
@src/components/Attach a folderAfter choosing a folder, type / to move into its subfolders before attaching.
@TerminalsAttach terminal output
@ChatsReference a past chat
@CommitAttach uncommitted changesListed in the menu as Diff of Working State; it covers only what you have not committed yet.
@BranchAttach the branch diffListed as Diff with Main: every change on your branch compared with main, the usual context for a review.
@BrowserAttach browser context
/skill-nameInvoke a skillEnter attaches it to one message; Alt+Enter (Option+Enter on Mac) or Use as Mode keeps it on every turn.
/sideOpen a side chatAlso /btw; add a question after it, and @-mention the side chat later to bring its context back.
&Hand off to a Cloud AgentPut it at the start of a CLI message; resume the cloud run from web or phone at cursor.com/agents.

Built-in skills (18)

Command / SyntaxWhat it doesNotes
/automateCreate an automationAutomations can start from a schedule, a Slack message or a GitHub event.
/autopilotWatch a pull requestActs on review comments, merge conflicts, failing checks and leftover tasks for that PR.
/canvasBuild a React canvas
/create-hookCreate a hookAlso registers the new hook in hooks.json for the matching agent lifecycle event.
/create-ruleCreate a rule
/create-skillCreate a skillSets up the skill's folder layout along with its SKILL.md file.
/create-subagentCreate a subagentThe result includes a focused role and instructions for delegating work to it.
/cursor-blameTrace AI-written changesShows which prompts produced a given AI-authored change.
/loopRepeat a prompt on a timerCan repeat a skill as well; paired with /goal and no fixed interval, the agent picks when to wake.
/migrate-to-skillsMigrate to Agent SkillsCovers eligible slash commands too, not only dynamic rules.
/reviewRun a code reviewPicks a suitable code-review agent; /review-bugbot and /review-security are the focused variants.
/review-bugbotReview with Bugbot
/review-securityRun Security Review
/sdkBuild with the Cursor SDK
/split-to-prsSplit into smaller PRs
/statuslineSet the CLI status lineThe footer can show your own command's output together with live token usage.
/update-cli-configEdit CLI configWrites changes to ~/.cursor/cli-config.json; /config is the interactive editor for the same settings.
/update-cursor-settingsChange an editor setting

Recipes

Ways to chain Cursor slash commands and @-mentions across the editor chat and the CLI, put together from the reference rows above.

Review your branch before opening a pull request

/review with @Branch

In the editor's Agent chat, @Branch attaches every change on your branch compared with main, and /review picks a suitable code-review agent for it. Use @Commit instead when only the uncommitted changes matter.

Plan first, then let the CLI run

/plan [prompt] → review the plan → /run-everything on

In Plan mode the agent asks clarifying questions and designs the approach before any code is written. Once the plan looks right, Run Everything stops the per-command approval prompts; /run-everything status shows the current setting.

Keep a long CLI session usable

/context → /summarize (not /clear)

/context shows what is filling the context window. /summarize compresses the conversation and keeps your latest message word for word, while /clear starts an empty chat. /rewind is the choice when recent turns, and their file changes, should be undone.

Ask a side question while the agent works

/btw in the CLI, /side in the editor

Both leave the main conversation on track. The CLI answer appears in an overlay and never enters the history; the editor's side chat is a conversation of its own that you @-mention later to pull its findings back.

Work across several repositories

/add-dir → /save-workspace → /load-workspace

Add each directory during a CLI session, save the set under a name, and reload it in a later session instead of adding the directories again.

Keep a skill on for a whole task

/skill-name, then Alt+Enter (Option+Enter on Mac)

Enter attaches a skill to one message, and it fades as the conversation moves on. Alt+Enter, or Use as Mode, keeps it in context on every turn until you leave the mode, which suits a review checklist or a team playbook.

Frequently Asked Questions

Do these slash commands work in the Cursor editor chat?

The groups from Models and modes to Help and account are commands of the Cursor CLI, the agent command in a terminal. In the editor's Agent chat, / runs skills, such as the built-in skills at the end of the table, and /side and /goal work there too. The @ mentions are documented for the editor chat; in the CLI, @ attaches files and folders.

What does @Commit attach compared with @Branch?

@Commit attaches the diff of your uncommitted working state (listed as Diff of Working State). @Branch attaches the full diff of your branch against main (listed as Diff with Main), the usual context for a review prompt.

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

Pick it from the / menu and press Alt+Enter (Option+Enter on Mac), or choose Use as Mode. The skill then stays in context on every turn until you exit the mode; plain Enter attaches it to one message only. Custom Modes work in the Agents Window and the CLI.

What is the difference between /btw in the CLI and /side in the editor?

In the CLI, /btw asks a quick read-only question while a turn runs and shows the answer in an overlay that never enters the chat history. In the editor chat, /side (or /btw) opens a side chat: a separate, lasting conversation that sees the main thread, which you @-mention later to bring its context back.

How do I move a CLI conversation to a Cloud Agent?

Start a message with &. The conversation goes to a Cloud Agent that keeps running while you are away, and you can continue it on the web or on mobile at cursor.com/agents.

Sources and checks

Every row on this page was matched to a line in the documentation above on . A command or parameter that could not be found there is not listed.

1 row from the earlier version of this page was removed in that check: duplicates, and entries the documentation does not list or lists differently.

AI tools change their commands, parameters and model names between releases: the vendor's current documentation and the version you run have the last word. Found a wrong or missing entry? Tell us and it gets checked against the source. How we verify describes the process and its limits.

Related prompt references

Claude Code (157) · GitHub Copilot (59) · Aider (46) · All AI prompt references