Reference · Reference
Cursor Commands & Shortcuts
Reference for Cursor editor keyboard shortcuts, @ mentions, AI features, and settings, plus Cursor CLI (agent) and Origin CLI (origin) commands and flags. Filter by category and copy with one click.
Last updated:
How to Use
Expand how to useCollapse how to use
- 1
Filter by category
Switch between Shortcuts, Command Palette, AI Features, Settings, CLI, and Origin CLI to find what you need quickly.
- 2
Search details
Use keyword search to match command names, key points, and example descriptions at once.
- 3
Copy and use
Copy commands or shortcuts with one click to use in your settings or cheat sheets.
Latest Updates
Check the latest Cursor version information
Self-hosted machines for cloud agents (September 2, 2026)
- Cloud Agents can run on your own infrastructure through My Machines, which connects a single laptop or VM, or Team pools, a scalable worker queue with hibernation support
- Agents can also run on cloud platforms such as AWS Lambda, Coder, Cloudflare, Daytona, Modal, Namespace, Vercel, and E2B
- Computer use is supported on Linux and Mac, so agents can drive a screen on self-hosted machines
CLI: persistent sessions and shared-desktop workers (August 26, 2026)
agent persiststarts a persistent session: the agent keeps running after you close the terminal or lose the connection, and/detachdisconnects you while the work continuesagent persist attachreconnects to a running session,agent persist listandagent persist stopmanage sessions, andagent persist --resumecontinues an existing chat as a persistent session- Workers started with
--computer-use --share-desktopnow share a managed desktop instead of a dedicated session
Shortcuts
Command Palette
@Files & Folders
Key points
- Type / after a folder name to expand subfolders.
- Navigate candidates with arrow keys; press Enter to select.
Examples
@src/components/Header.tsxAdd a specific file to AI context@Code
Key points
- More granular than @Files.
- Directly specify functions or classes.
Examples
@handleSubmitAdd a specific function to context@Docs
Key points
- In addition to built-in docs, you can add your own URLs.
- Use the "Add new doc" option to register new documentation URLs.
Examples
@Docs → Next.jsReference the Next.js documentation@Git
Key points
- Useful when asking about recent changes or review context.
- Lets the model reason about repository history without pasting diffs manually.
Examples
@Git → "Summarize what changed on this branch"Ask Cursor to explain the current Git state@Web
Key points
- Useful for release notes, API references, and third-party documentation.
- Use when internal project files are not enough context.
Examples
@Web https://docs.cursor.comBring an external documentation page into the conversation@Cursor Rules
Key points
- Useful when asking the agent to follow or explain repository-specific rules.
- Surfaces rule context without manually copying rule files into the prompt.
Examples
@Cursor RulesInclude active rule context in the current conversation@Past Chats
Key points
- Useful for carrying over decisions and discussions from previous conversations.
Examples
@Past ChatsReference previous chat content to continue work/summarize
Key points
- Use when context runs low in long conversations.
- Auto-compression also occurs, but this allows explicit manual execution.
Examples
/summarizeCompress a long conversation to continue efficiently/commit
Key points
- Custom command: can be defined in .cursor/commands/commit.md.
- Can be combined with /pr.
Examples
/commitAI analyzes changes and suggests a commit message/pr
Key points
- Custom command: can be defined in .cursor/commands/pr.md.
- Can be used with /commit: /commit and /pr
Examples
/commit and /pr these changes to address DX-523Create a commit and PR simultaneously.cursor/commands/*.md
Key points
- Project-level: .cursor/commands/*.md
- Global: ~/.cursor/commands/*.md
- Team: Created via Cursor Dashboard (Team/Enterprise plans).
Examples
.cursor/commands/code-review.mdCreate a custom code review command/create-rule
Key points
- Auto-generates rule files under .cursor/rules/.
- Creates files with frontmatter (alwaysApply, globs, etc.).
Examples
/create-ruleGenerate a new Cursor rule file from chat/migrate-to-skills
Key points
- Automatically converts rules with 'Apply Intelligently' configuration.
- Preserves original behavior patterns when migrating slash commands.
Examples
/migrate-to-skillsBatch-convert existing rules to skill format/worktree
Key points
- Agent works in an independent worktree, keeping your main code safe
- Ideal for parallel branch work and experimental changes
Examples
/worktreeRun agent in an isolated git worktree/best-of-n
Key points
- Compare outputs from multiple models simultaneously
- Useful for comparing code generation and refactoring quality
Examples
/best-of-nRun parallel generation across models and compare results/debug
Key points
- The agent forms hypotheses, adds log statements, and uses runtime info to narrow down the cause
- Applies a targeted fix only after the root cause is identified, avoiding shot-in-the-dark edits
- Works with Auto-run so suggestions can be executed automatically inside Debug Mode
Examples
/debugEnter CLI Debug Mode to find the root cause of a complex bug/btw
Key points
- Ask a side question to the agent without pausing the main task
- Seamlessly return to the original task once the question is answered
- Handy for verifying the rationale behind a recent change
- In the Agents Window, this can also start a side chat — a separate thread that doesn't interrupt the main conversation, just like /side or the plus button (Cursor 3.11).
Examples
/btw btw why did you change this function?Ask a follow-up question without interrupting the main task/config
Key points
- List and edit CLI settings directly from within the session
- Switch models, default behaviors, and runtime preferences through a GUI-like panel
- Pairs with the /update-cli-config skill to apply configuration changes automatically
Examples
/configOpen the CLI settings panel to change models or defaults/statusline
Key points
- Always show the current mode (Agent / Ask / Debug, etc.) in the status bar
- See branch name, runtime environment, working directory, and worktree at a glance
- Pin session metadata and hints about the active task in the status area
Examples
/statuslineCustomize the CLI status bar to display the signals you need/multitask
Key points
- Dispatches requests to async subagents running in parallel instead of adding them to the queue
- Breaks larger tasks into smaller chunks for a fleet of subagents to tackle simultaneously
- Can switch already-queued messages over to multitask mode without waiting for the current run to finish
Examples
/multitaskRun requests in parallel via async subagents/loop
Key points
- Specify a fixed interval to repeat the prompt on that schedule (e.g. every 5 minutes)
- Omit the interval and the agent decides when or what event should trigger the next run
- Use 'until tests pass' or 'until you stop it' as a termination condition for long-running local agent tasks
Examples
/loop 5m check deploy statusCheck deploy status every 5 minutes/loop work on this feature until tests passKeep iterating on the feature until tests pass/in-cloud
Key points
- Offload the next submitted task to a cloud subagent running in an isolated VM
- Keep your local session free while the cloud agent works in parallel
- Hand off seamlessly between local and cloud sessions (Cursor 3.7, Cloud Environment Setup)
Examples
/in-cloudSpin up a cloud subagent in its own VM for the next task/babysit
Key points
- Delegate PR preparation to a cloud subagent that iterates remotely
- Trigger it from the quick-action pill or by typing /babysit
- Free up the local session while the cloud agent gets the PR merge-ready
Examples
/babysitAsk a cloud subagent to prepare a PR for merge remotely/automate
Key points
- Describe an automation in plain language and let Cursor set up triggers, instructions, and tools
- Create automations without leaving your local agent session
- Pair with Slack emoji and GitHub triggers to run automations on events
Examples
/automateCreate an automation from a plain-language description/review
Key points
- Run both Bugbot and Security Review in one command before pushing
- Catch bugs and security issues earlier in your local workflow
- Use /review-bugbot or /review-security to run a single reviewer
Examples
/reviewRun Bugbot and Security Review before pushing code/review-bugbot
Key points
- Run Bugbot on its own to find likely bugs in your changes
- Faster than the combined /review when you only need bug detection
- Bugbot is now over 3x faster, ~22% cheaper, and finds ~10% more bugs (2026-06-10)
Examples
/review-bugbotScan changes for potential bugs with Bugbot/review-security
Key points
- Run Security Review on its own to surface potential vulnerabilities
- Use when you only need a security check before pushing
- Complements /review-bugbot for targeted reviews
Examples
/review-securityScan changes for security issues with Security Review/side
Key points
- You can also start a side chat with /btw or the plus button at the top of the chat panel.
- Side chats are independent Agent conversations that inherit context from the main chat and can be referenced later via at-mentions.
- Designed for reading, searching, and answering — without derailing the main task.
Examples
/sideAsk a side question without interrupting the main conversation/deslop
Key points
- Requires the Cursor Team Kit plugin from the official Cursor marketplace
- Checks the diff against the main branch to scope the cleanup to what you actually changed
- Prefers minimal, behavior-preserving edits that match the surrounding code style
Examples
/deslopStrip AI-generated slop from your diff against mainAI Features
Agent
Key points
- Launch with Cmd I. Best for complex features and refactoring.
- Tools: Semantic Search, file read/write, shell execution, browser, image generation, etc.
- Checkpoints automatically save state before changes.
Examples
Cmd I → "Add authentication"Have Agent implement a feature across multiple filesAsk
Key points
- Switch with Cmd . → Ask.
- Best for learning, planning, and understanding code.
- Only search tools available (edit tools disabled).
Examples
Cmd . → Ask → "How does this function work?"Understand code without making changesManual
Key points
- Switch via Cmd . → Manual.
- Helpful for review-style conversations and cautious step-by-step changes.
- Reduces autonomous actions and keeps you in the loop.
Examples
Cmd . → Manual → "First outline the change plan only"Review the approach before implementation startsCustom Modes
Key points
- Open Cmd . to select an existing custom mode or create a new one.
- Useful for review-only, docs-only, or team-specific workflows.
- Each mode can define its own instructions and available tools.
- From `/`, pick a skill and press ⌥⏎ (Mac) or Alt+Enter (Windows), or choose Use as Mode, to pin that skill in the chat as an "always on" custom mode.
Examples
Cmd . → Custom Modes → "Review"Switch to a dedicated review modeTab Completion
Key points
- Shows ghost text (additions) or diff popups (modifications).
- Tab: accept. Escape: reject. Cmd →: accept one word at a time.
- Jump in file: auto-moves to next edit location after accepting.
- Jump across files: portal window suggests edits in other files.
Examples
Tab → Tab (jump)Accept suggestion and auto-jump to the next edit locationInline Edit (Cmd K)
Key points
- Select code then Cmd K to enter edit instructions.
- Opt Return: ask a question without editing.
- On empty files, can generate the entire file.
Examples
Cmd K → "Add TypeScript types"Add TypeScript type annotations to selected codeMemories
Key points
- Useful for coding style, recurring constraints, and preferred workflows.
- Can be used by agents and automations to stay consistent across sessions.
Examples
Save memory: "Use pnpm in this repository"Persist a project preference for later tasksParallel Agents
Key points
- Best-of-N: send the same prompt to multiple models simultaneously and compare.
- Apply button merges worktree changes back to the main branch.
- Up to 20 worktrees per workspace.
Examples
Launch multiple Agents → Apply best resultCompare parallel implementations and choose the best oneCheckpoints
Key points
- Auto-saved each time the Agent makes changes.
- "Restore Checkpoint" button to revert to any point.
Examples
Restore CheckpointRevert Agent changes to a previous stateReview (Find Issues)
Key points
- Review option appears automatically after Agent finishes.
- Detects code quality, bugs, and security issues.
Examples
Find IssuesDetect issues in the Agent's changesBugbot
Key points
- Finds likely bugs, regressions, and quality issues in PRs.
- Can suggest direct fixes from the review findings.
Examples
Bugbot → AutofixTurn a Bugbot finding into an immediate fix suggestionTerminal Cmd K
Key points
- Cmd Return: execute the generated command.
- Escape: accept command into shell (without running).
Examples
Terminal → Cmd K → "Search logs from last 3 days"Generate shell commands from natural languageCloud Agents
Key points
- Launch from cursor.com dashboard or via API.
- Computer Use: browser automation, screenshots, and video recording in isolated VMs.
- Bugbot Autofix: detects issues in PRs and auto-proposes fixes (35%+ merge rate).
- New agent conversation hooks (beforeSubmitPrompt, afterAgentResponse, afterAgentThought, stop, subagentStart, and more) let you observe and control prompts, responses, thinking, subagents, and turn completion (Cursor 3.11).
Examples
cursor.com → Cloud Agents → New AgentLaunch a cloud agent to auto-generate PRsBackground Agents
Key points
- Useful when a task takes too long for an interactive foreground session.
- Pairs naturally with cloud execution and automations.
Examples
Start a background agent to investigate flaky testsOffload a long-running task to an async agentAutomations
Key points
- Triggers: schedule (cron), GitHub PR/push, Slack messages, Linear issues, PagerDuty incidents, webhooks.
- Tools: open PR, comment, request reviewers, send to Slack, MCP, Memories, and more.
- Permissions: Private / Team Visible / Team Owned.
Examples
cursor.com/automations/newCreate a new automation for event-driven tasksSubagents
Key points
- Built-in subagents: Explore (code search), Bash (shell execution), Browser (browser control).
- Two modes: foreground (blocks until done) and background (returns immediately).
- Custom subagents can have dedicated prompts, tools, and models.
Examples
Agent → delegate research to subagentOffload large codebase exploration to keep the main conversation focusedMCP Apps
Key points
- Displays partner UIs from Amplitude, Figma, tldraw, and more directly inside Cursor.
- MCP tools can return interactive UI alongside standard tool output.
Examples
MCP Apps → view diagram in tldrawView interactive diagrams during a chat sessionAgents Window
Key points
- Open via Cmd Shift P → 'Agents Window'
- Can be used alongside the traditional IDE view; switch back anytime.
- Run multiple agents across repositories and environments simultaneously
Examples
Cmd Shift P → Agents WindowOpen Agents Window to run multiple agents in parallelDesign Mode
Key points
- ⌘+Shift+D: toggle Design Mode
- Shift+drag: select an area
- ⌘+L: add element to chat, ⌥+click: add element to input
Examples
⌘+Shift+DToggle Design Mode to directly target UI elementsAgent Tabs
Key points
- Display multiple chats simultaneously for parallel work
- Switch between side-by-side and grid layouts
Examples
Agent TabsView multiple agent chats at once in a gridTiled Layout
Key points
- Split the current view into panes to manage several agents at once
- Drag agents between tiles to rearrange them on the fly
- Use keybindings to quickly navigate between tiles
Examples
Tiled LayoutSplit the Agents Window into tiles and run multiple agents in parallelCmd K (Agents Window)
Key points
- Windows/Linux: Ctrl K
- Search goes beyond names and PR numbers into conversation content.
- Local indexing supports searching thousands of conversations quickly.
Examples
Cmd K → Search transcriptsSearch past agent conversations by keywordBuilds
Key points
- The install command handles dependency installation, code generation, and cache warming ahead of time, while the start command only brings up the fresh services each session needs
- If a deploy or update breaks the environment, agents keep running on the last successful build; failed builds never go live and you get notified so you can debug asynchronously
- The Builds tab in the Cloud Agents dashboard shows build status, logs, commit SHAs, and which build each agent run used, plus manual build triggers and a configurable staleness threshold
- New environments get builds automatically; existing environments enable them from Enable Builds in the Builds tab
Examples
cursor.com → Cloud Agents → Environments → BuildsCheck build status and logs, and enable builds for an existing environmentStart from scratch
Key points
- Select Start from scratch in the repo picker, then prompt the agent — no third-party SCM connection is required to get going
- Once the agent's build is to your liking, click Create repo to save the work in an Origin repo: choose a custom or suggested name, set visibility to private or internal, then find the repo under the Codebase tab
- Cursor port-forwards the cloud agent's live environment straight to your browser, so you can preview it and use tools like design mode
- Connect a Vercel account and hit publish to get a live URL for what you built (a Vercel account is required for publishing)
Examples
cursor.com → Cloud Agents → Start from scratchHave an agent build with no repo connected, then save it to Origin with Create repoSettings
.cursor/rules/*.md
Key points
- Location: .cursor/rules/*.md or .cursor/rules/*.mdc
- Apply types: Always Apply, Apply Intelligently, specific files only, manual.
- Use frontmatter to set alwaysApply: true or globs patterns.
Examples
.cursor/rules/coding-standards.mdDefine coding standards as a rule fileUser Rules
Key points
- Location: Cursor Settings → Rules
- Project rules take precedence (Team > Project > User).
Examples
Cmd Shift J → RulesConfigure global rulesAGENTS.md
Key points
- Write rules in Markdown format.
- Functional alternative to .cursor/rules.
- .cursorrules (legacy) is still supported.
Examples
AGENTS.mdPlace AI rules at the project rootGenerate Cursor Rules
Key points
- Useful for bootstrapping .cursor/rules from the current repository style.
- Can help turn team conventions into reusable Cursor rules.
Examples
Cmd Shift P → Generate Cursor RulesCreate new Cursor rule files from repository contextAuto-Run Mode
Key points
- Modes: Run in Sandbox / Ask Every Time / Run Everything
- Network access: sandbox.json only / defaults included / allow all.
- Protections: browser auto-run, file deletion, dotfile, and external file protection.
Examples
Cmd Shift J → Agents → Auto-RunChange command auto-execution security settingsTab Settings
Key points
- Partial Accepts: accept one word at a time with Cmd →.
- Toggle suggestions in comments, whitespace-only suggestions, auto-import (TypeScript/Python).
- Status bar: snooze, disable globally, or disable for specific file extensions.
Examples
Cmd Shift J → TabOpen Tab completion detailed settings.cursorignore
Key points
- Location: .cursorignore in project root.
- Same pattern syntax as .gitignore.
- Exclude sensitive files or binaries from AI.
Examples
.cursorignore → .env*Exclude environment variable files from AI indexingMCP Servers
Key points
- Location: Cursor Settings → MCP, or .cursor/mcp.json
- Configure MCP tool allowlists for sandbox execution.
Examples
.cursor/mcp.jsonConfigure project-specific MCP servers.cursor/worktrees.json
Key points
- Location: .cursor/worktrees.json
- Setting: cursor.worktreeCleanupIntervalHours (cleanup interval).
- cursor.worktreeMaxCount: max worktrees per workspace (default 20).
Examples
.cursor/worktrees.jsonDefine worktree setup scripts.cursor/skills/
Key points
- Locations: .agents/skills/, .cursor/skills/, ~/.cursor/skills/
- SKILL.md contains metadata (name, description) and documentation.
- Invoke manually with /skill-name or let the agent use it automatically.
Examples
.cursor/skills/code-review/SKILL.mdCreate a custom code review skill.cursor/hooks.json
Key points
- Locations: .cursor/hooks.json (project), ~/.cursor/hooks.json (user)
- Events: sessionStart/End, preToolUse/postToolUse, beforeShellExecution, and more.
- Two types: command-based (shell scripts) or prompt-based (LLM-evaluated).
Examples
.cursor/hooks.json → preToolUseRun a security check before each tool executionPlugins
Key points
- Manifest: .cursor-plugin/plugin.json (name field required).
- Published on Cursor Marketplace. Team/Enterprise can use private marketplaces.
- All marketplace plugins undergo security review before listing.
Examples
.cursor-plugin/plugin.jsonDefine a custom plugin manifestTeam Rules
Key points
- Configured from the Cursor dashboard.
- Precedence: Team Rules > Project Rules > User Rules.
Examples
cursor.com → Team RulesSet AI rules for the entire teamAuto-review
Key points
- Allowlisted calls run immediately; sandboxable calls run in the sandbox
- Remaining actions go through a classifier subagent that decides whether to permit, try alternatives, or ask for approval
- Add custom instructions to steer the classifier subagent's behavior
Examples
Cmd Shift J → Agents → Run ModeSwitch the run mode to Auto-reviewCLI
curl https://cursor.com/install -fsS | bash
Key points
- On native Windows, run irm 'https://cursor.com/install?win32=true' | iex from PowerShell
- After installing, verify with agent --version and add ~/.local/bin to your PATH
- Auto-update is on by default; update manually with agent update or turn it off with --disable-auto-update
- The August 11, 2026 release made the install script fall back to wget or python3 when curl is broken
Examples
curl https://cursor.com/install -fsS | bashInstall the Cursor CLI on macOS, Linux, or WSLagent --versionCheck the installed versionagent
Key points
- Run with no arguments for an interactive session, or pass a prompt to start with an initial instruction
- Supports the same Agent / Plan / Ask modes as the editor, cycled with Shift+Tab
- Add files and folders to context with @, and double-press Ctrl+D to exit
- Automatically loads AGENTS.md, CLAUDE.md, and .cursor/rules and applies them as rules
Examples
agentStart an interactive sessionagent "refactor the auth module to use JWT tokens"Start a session with an initial promptagent ls
Key points
- Defaults to All chats; use Left/Right to switch to This workspace and scope it to the current directory
- Chats from other directories show a folder label, and resuming one loads the full conversation
- The August 11, 2026 release scans sessions in parallel, so the picker opens quickly even on network filesystems
Examples
agent lsPick a previous chat from the list and resume itagent resume
Key points
- agent resume picks up the latest conversation, and --continue does the same
- Pass a thread id to --resume to load a specific thread, or open the picker in-session with /resume or Ctrl+Y
- Cancelling /resume keeps whatever you had already typed (June 22, 2026 release)
- Completed subagents persist checkpoints, so resuming restores their prior context
Examples
agent resumeResume the most recent conversationagent --resume="chat-id-here"Resume a specific conversation by thread idagent update
Key points
- Check your current version with agent --version
- Run the same update from inside a session with /update (June 9, 2026 release)
- Turn background auto-updates off with --disable-auto-update
- Since the July 13, 2026 release, install directories in use by a running session are skipped by auto-update cleanup
Examples
agent updateUpdate the Cursor CLI to the latest versionagent --versionCheck the installed versionagent login
Key points
- Press q during login to reveal a QR code for the same login URL; narrow terminals and non-interactive sessions show the URL only
- For scripts, set your API key in the CURSOR_API_KEY environment variable instead
- In sandboxes without the macOS Keychain, set AGENT_CLI_CREDENTIAL_STORE=file to store credentials in an owner-only file
- The August 11, 2026 release sends and enforces MDM sign-in policy, including organization, team, email, and domain allowlists
Examples
agent loginAuthenticate the CLI with your Cursor accountexport CURSOR_API_KEY=your_api_key_hereSet an API key so scripts can use the CLIagent mcp list
Key points
- Reads the same connection state that /mcp shows inside a session
- The June 29, 2026 release fixed working servers being shown as disconnected when their tools or instructions were available
- Since the July 13, 2026 release, a server configured in more than one scope runs as a single instance instead of duplicates
Examples
agent mcp listList configured MCP servers and their connection stateagent plugin marketplace
Key points
- add registers a marketplace by git URL; pin a branch, tag, or commit with --git-ref
- list prints each marketplace's name, scope, and git URL, with --format json for scripts
- update re-indexes one from its repository, and remove deletes a user-scoped marketplace
Examples
agent plugin marketplace add https://github.com/acme/cursor-pluginsRegister a marketplace by git URLagent plugin marketplace list --format jsonList registered marketplaces as JSONagent bedrock
Key points
- Supports both access keys and a team IAM role
- Works across interactive, headless, and editor sessions
- The March 2026 release added Claude Sonnet 4.6 to the bring-your-own-key model list
Examples
agent bedrockConfigure AWS Bedrock credentialsagent worker
Key points
- --pool joins a named pool so you can split fleets by purpose
- Workers release after an hour idle by default; --idle-release-timeout 0 keeps them running
- Repeat --worker-dir to span multiple repositories, and start from a non-git directory
- A data-directory lock prevents duplicate daemons, and session-start and session-end hooks run on claim and release
- Workers started with --computer-use --share-desktop share a managed desktop instead of a dedicated session (August 26, 2026 release)
- agent worker controller can wake claimed, hibernated workers on follow-up through the --spawn hook
- queue watch moved from polling to server-sent events (SSE), so it holds up better against rate limits
Examples
agent worker --pool build-fleetStart a worker that joins a named poolagent worker --idle-release-timeout 0Keep a worker running by disabling idle releaseagent acp
Key points
- ACP clients such as Zed and JetBrains can select models and switch modes
- Host-provided MCP servers are respected, with richer streaming that includes thinking and file locations
- Session resume, custom slash commands, and skill invocation all work through the editor
Examples
agent acpRun the CLI as an ACP server over stdioKey points
- The short form is -p; only the response is printed, so it pipes cleanly into other tools
- By default changes are proposed but not applied — add --force (or --yolo) to actually modify files
- Combine with --output-format to choose text, json, or stream-json
- The August 11, 2026 release detects and retries wedged uploads on long-running headless sessions
Examples
agent -p "What does this codebase do?"Ask a question in non-interactive mode and get only the answeragent -p --force "Add JSDoc comments across src"Run a file-modifying task from a script--output-format
Key points
- text prints the final answer as plain text (the default for --print)
- json emits structured output that is easy to parse in scripts
- stream-json tracks progress message by message; add --stream-partial-output to stream deltas incrementally
- Per-turn input, output, and cache token totals plus a request_id are included, so you can measure cost
Examples
agent -p --output-format json "Review the recent changes"Receive the result as structured JSONagent -p --output-format stream-json --stream-partial-output "Summarize the project structure"Stream progress incrementally--model
Key points
- Model variants such as fast or high-effort slugs keep their parameters in headless mode
- Since the August 11, 2026 release, a headless selection that requires Max Mode is sent as-is instead of being clamped down
- Inside a session, switch with /model or shortcuts like /opus and /composer
- Since the July 6, 2026 release, fresh installs default to Auto routing
Examples
agent -p "find and fix performance issues" --model "gpt-5"Run headless with an explicit model--mode
Key points
- --mode=plan can also be written --plan; it designs an approach before writing code
- --mode=ask explores the codebase read-only without editing files
- Inside a session, switch with /plan and /ask, or cycle modes with Shift+Tab
- The August 11, 2026 release moved mode-switch approvals to a pager UI with a 15-second countdown that auto-rejects when unattended
Examples
agent --mode=plan "Plan the migration of the checkout flow"Start in Plan mode to settle the approach before implementingagent --mode=ask "Where is authentication implemented?"Explore read-only in Ask mode--force
Key points
- --yolo is the fully autonomous alias that auto-approves trust, MCP, and command approvals together
- Without --print, headless changes stay proposals instead of being applied
- Inside a session, toggle Run Everything with /auto-run, which is independent of the Shift+Tab mode cycle
- Allowlists live in permissions.json, the same file the editor reads
Examples
agent -p --force "Refactor this code to use modern ES6+ syntax"Auto-approve file changes in a headless run--trust
Key points
- Previously headless-only, it now settles trust up front in interactive sessions as well
- It records the same saved trust decision the dialog writes when you accept
- Non-interactive runs in untrusted workspaces fail with guidance unless --trust (or --force) is passed
- Setup commands from .cursor/worktrees.json run only once the workspace is trusted (July 13, 2026 release)
Examples
agent --trust "run the tests and fix the failures"Start a session without the trust dialog--worktree
Key points
- Worktrees are created under ~/.cursor/worktrees by repository and worktree name, alongside worktrees created from the editor
- Omit the name and Cursor generates one; pick the base branch with --worktree-base
- Combine with --workspace when you need an explicit repository root
- CLI worktrees are cleaned up with the same retention rules the editor uses
Examples
agent --worktree "upgrade the test runner and fix any broken snapshots"Work in a temporary worktree with a generated nameagent --workspace ~/src/my-app --worktree auth-fix "fix the flaky auth test and open a PR"Create a named worktree from another repository--add-dir
Key points
- Combine with --workspace to pin an explicit repository root while adding extra directories
- To add directories mid-session use /add-dir, which refreshes slash skills and custom commands immediately
- Restart only when you want the agent to discover new skills automatically
Examples
agent --add-dir ../api --add-dir ../web "align the shared type definitions"Launch multi-root across several repositories--plugin-dir
Key points
- Load a plugin you are still developing to test it before publishing
- The August 11, 2026 release made hooks defined by plugins loaded with --plugin-dir execute and refresh on reload
- Local plugins can also be pointed at from the enabled_plugins key in ~/.cursor/settings.json
Examples
agent --plugin-dir ./my-pluginStart with a local plugin under development--sandbox
Key points
- Inside a session, /sandbox opens an interactive menu for sandbox mode and network access, and the settings persist across sessions
- Sandbox policy lives in ~/.cursor/sandbox.json and .cursor/sandbox.json, and is honored over SSH
- If sandboxing is enabled but unavailable, the CLI fails fast with a clear reason
- The August 11, 2026 release added a read-access boundary to the policy and routes sandboxed git-over-SSH through the SOCKS proxy
Examples
agent --sandbox enabledStart a session with the sandbox enabled--auto-review
Key points
- Shell, MCP, and Fetch calls are checked in order: allowlisted calls run immediately, sandboxable calls run in the sandbox, and the rest go to a classifier
- Inside a session, toggle it with /auto-review or from /config
- Steer the classifier with allow and block instructions in permissions.json
- Since the June 29, 2026 release the classifier can also inspect invoked skill and file-backed custom-command files; availability is admin-controlled
Examples
agent --auto-review "update the dependencies and get the tests passing"Run with fewer approval prompts in Auto-review mode--header
Key points
- The short form is -H; pass it multiple times for multiple headers
- Useful for auth headers required by a corporate proxy or gateway
- For the proxy itself, the HTTPS_PROXY environment variable is honored for both auth and agent streams
Examples
agent -H "X-Team: platform" -H "X-Env: staging" -p "review the changes"Run headless with multiple custom headers/goal
Key points
- Shows an active or paused status line so the current goal stays visible
- Pressing Ctrl+C pauses the goal
- It is rolling out and gated, so it may not appear in every environment yet
Examples
/goalSet a durable goal that continues across idle and headless runs/usage
Key points
- Shows included-usage meters with Auto and API breakdowns
- Displays on-demand spend against your limit, your plan name, and the billing-cycle reset date
- Enterprise pooled plans get a spend chart comparing the current billing cycle with the previous period of the same length, plus a dashboard link
Examples
/usageCheck usage meters, spend, and the billing-cycle reset date/model
Key points
- Type something like /model sonnet and the picker opens pre-filtered without submitting your prompt
- Shortcuts such as /opus and /composer jump straight to a model, and each family remembers your last choice
- /fast toggles Fast when the current model supports it; disable shortcuts under Model slash commands in /config
- The August 11, 2026 release pins Auto to the top of the list and selects a model when you edit its parameters; set Max Mode explicitly with /max-mode
Examples
/modelOpen the model picker and switch models/model sonnetOpen the model picker pre-filtered/rewind
Key points
- An interactive timeline restores files and conversation state to any earlier turn
- Includes per-turn file diffs and a conversation-only restore; /undo and /restore are aliases
- Rewinding also restores that turn's image attachments to the prompt (May 20, 2026 release)
Examples
/rewindUndo agent turns and restore an earlier state/fork
Key points
- Duplicates the conversation while keeping the original, so you can try another approach in parallel
- /branch and /duplicate are aliases
- Forked conversations can be resumed individually from agent ls or the /resume picker
Examples
/forkDuplicate the current conversation to try a different approach/context
Key points
- Shows the breakdown across rules, skills, MCPs, and subagents
- When context runs tight, use it to find what to trim before compacting with /summarize
- The footer also keeps working directory, git branch, and context information visible
Examples
/contextInspect what is consuming the context window/mcp
Key points
- Browse tool schemas, log in, log out (clearing stored OAuth credentials), enable, and disable without leaving the session
- Servers are grouped under User / Project / Team scope, and failed servers show their actual error
- When the same server exists in multiple scopes, the Configure Scope tab picks which configuration wins, saved per project (July 13, 2026 release)
- The August 11, 2026 release logs into known hosts like Slack with default authentication, avoiding dynamic-client-registration failures
Examples
/mcpList, log into, and enable MCP servers from inside the CLI/plugin
Key points
- Add a marketplace by passing a git URL to /plugin marketplace add; browsing and managing by scope is supported
- A plugin's skills, slash commands, subagents, and MCP servers all load into the session together
- /plugins lists them, and each plugin's MCP servers link into /mcp management
- Reloading refreshes slash commands and the palette, and MCP tools survive the reload
Examples
/pluginSearch for plugins and install or remove them/plugin marketplace add https://github.com/acme/cursor-pluginsAdd a marketplace by git URL/changes
Key points
- The Session tab narrows the diff to only the edits made in this session
- Press i to add follow-up instructions, Up/Down to scroll, and Left/Right to switch files
- Press o or O to open diffs in your editor, and use the zen toggle while reviewing
- File edits render borderless with memoized diffs, so large edits do not slow the UI (June 9, 2026 release)
Examples
/changesReview this session's changes inside the CLI/skills
Key points
- Invoke a skill directly with /skill-name; this works in --print headless runs too
- /rules and /commands browse and inline-edit rules and custom commands
- Skills load from .cursor/skills plus .claude/skills, .agents/skills, and .codex/skills, including nested subdirectories and symlinked directories
- The August 11, 2026 release attaches a skill slash entry once on Enter, and Option+Enter invokes a mode-backed skill as a sticky custom mode
Examples
/skillsBrowse the available skills and run one/logs
Key points
- Debug logs are written for every session, so you can attach them directly to a bug report
- On shared machines logs are written per user to avoid permission errors (June 22, 2026 release)
- The path lingers on screen longer, so you can still read it if the copy is missed
Examples
/logsShow and copy the debug log path/copy
Key points
- Pick one step of a multi-step reply from a per-step picker
- Copy the agent's responses alongside your own messages, and copy long replies without the terminal stalling
- Related: /rename names a session, and ? opens the input shortcut cheat sheet
Examples
/copyCopy a past message or response to the clipboard/vim
Key points
- Visual-mode selection with delete and change operators, and the active Vim mode shows in the footer
- Find motions f, F, t, T, semicolon, and comma work with operator composition such as df, and ct.
- Ctrl+G opens the prompt in $EDITOR so you can compose in your real editor and drop the result back
- While revising a plan, Esc returns to Vim normal mode
Examples
/vimEnable Vim editing inside the prompt/save-workspace
Key points
- Add directories mid-session with /add-dir, then save the set with /save-workspace
- Reload a saved set later with /load-workspace
- To start scoped, use --workspace at launch, and --add-dir to pass extra directories
Examples
/save-workspaceName and save the current multi-directory setup/load-workspaceLoad a saved workspace& <prompt>
Key points
- Pick the handed-off task back up on web or mobile at cursor.com/agents
- For Git repositories with Cloud Agents access, the selected model and workspace path are preserved (June 29, 2026 release)
- Transfer status is shown, Esc or Ctrl-C cancels, and failure details remain visible
Examples
& refactor the auth module and add comprehensive testsHand the conversation off to a Cloud Agent to keep running~/.cursor/cli-config.json
Key points
- Open the interactive settings editor with /config instead of hand-editing JSON (April 2026 release)
- The built-in /update-cli-config skill can apply configuration changes for you
- Point statusLine at your own command to render its output in the prompt footer, and choose the Explore subagent's model from /config
- Since the July 6, 2026 release each write stages to a temp file before an atomic rename, so concurrent CLI processes cannot corrupt it
Examples
/configOpen the CLI settings editor to change models or permissionsautoAcceptWebSearch
Key points
- Toggle it under Permissions in /config, or set autoAcceptWebSearch directly in cli-config.json
- Honored in interactive, headless, subagent, and Agent Client Protocol runs
- Approval policy for shell, MCP, and Fetch calls is handled separately by --auto-review and permissions.json
Examples
/config → Permissions → Auto-Accept Web SearchEnable auto-accept for web searches from the settings panel"autoAcceptWebSearch": trueEnable it directly in cli-config.jsonagent persist
Key points
- Reconnect to a running persistent session with agent persist attach
- List persistent sessions with agent persist list and stop one with agent persist stop
- agent persist --resume continues an existing chat as a persistent session
- To step away without stopping the agent, use /detach — the agent keeps working
Examples
agent persistStart a persistent session that survives disconnectsagent persist attachReconnect to a running persistent session/detach
Key points
- Use it in a persistent session started with agent persist — the agent carries on working after you leave
- Come back to the same session afterwards with agent persist attach
- To end the session itself, use agent persist stop instead of /detach
Examples
/detachDisconnect from the session while the agent keeps runningOrigin CLI
curl -fsSL https://downloads.cursor.com/origin/install.sh | sh
Key points
- After installing, verify with origin --version
- If your shell reports command not found: origin, add ~/.local/bin to your PATH (~/.zshrc for zsh, ~/.bashrc for bash)
- Sign in with origin auth login, which also configures the git credential helper so git push and git pull against Origin remotes just work
- Update with origin update; the default channel is stable and origin config set-channel latest|stable switches it
Examples
curl -fsSL https://downloads.cursor.com/origin/install.sh | shInstall the Origin CLI on macOS, Linux, or Windows (WSL)origin --versionCheck the installed versionorigin auth login
Key points
- login --api-key <key> signs in with an API key instead of the browser flow; when CURSOR_API_KEY is set it is used without the flag
- login --local writes the credential helper to this repository's git config instead of the global one
- auth setup-git reconfigures the credential helper (--host / --global / --local)
- auth status shows the current authentication method and account; auth logout clears stored credentials
Examples
origin auth loginSign in through the browser and configure git authenticationorigin auth statusShow the current authentication method and accountorigin repo create
Key points
- repo create-mirrored <github-repo> creates a mirror of a GitHub repository (--namespace / --github-enterprise-id)
- repo list shows the repositories your account can access (--namespace limits it to one namespace)
- repo view [repo] displays a repository and can emit JSON with --json org,name,defaultBranch
- repo clone <repo> [directory] clones over HTTPS using your saved login
- repo delete <repo> prompts for confirmation; -y / --yes is required in a non-interactive shell
- create --default-branch <branch> sets the default branch (server default: main)
Examples
origin repo create my-projectCreate a repository in your own namespaceorigin repo clone acme/checkoutClone an Origin repository over HTTPSorigin repo create-mirrored acme/checkoutCreate an Origin mirror of a GitHub repositoryorigin pr create
Key points
- create takes -t/--title, -b/--body, -F/--body-file, -H/--head, -B/--base, --push, and -f/--fill (the default status is draft)
- list and status show pull requests in a repo and the ones relevant to you (-s/--state, --mine, --file, -L/--limit, --json, -q/--jq)
- view [target] switches output with --diff, --checks, -c/--comments, and -w/--web; diff and checks are also standalone subcommands
- checkout [target] fetches the pull request branch, edit changes title/body/base, and ready marks a draft as ready
- review --approve files a review, comment -b adds a discussion comment, and thread list/resolve/reopen/reply drives review threads
- merge, close, and reopen handle the lifecycle; merge --auto merges once the requirements are met
- -R/--repo org/name targets a repository other than the one behind your current origin remote
Examples
origin pr create -t "Fix CI"Open a pull request from the current branchorigin pr list --mineList the pull requests you authoredorigin pr review --approveFile an approving review on a pull requestorigin ruleset list
Key points
- ruleset list shows the rulesets configured for a repository
- ruleset view <ruleset-id> shows one ruleset; the ID comes from the list output
- -R/--repo org/name targets a specific repository
- The CLI is read-only here — create and edit rulesets from repository settings on the web
Examples
origin ruleset listList the rulesets configured for a repositoryorigin rs listThe rs alias does the same thingorigin ssh-key list
Key points
- ssh-key add [key-file] registers a public key; -t names the key
- ssh-key list shows the keys on your account (--json for JSON output)
- ssh-key delete <id> removes a key by the ID printed by ssh-key list
Examples
origin ssh-key add ~/.ssh/id_ed25519.pubRegister a public key with your Origin accountorigin ssh-key listList the SSH public keys on your accountorigin api
Key points
- Supports -X/--method, -H/--header, -F/--field, -f/--raw-field, --input, and -q/--jq
- The owner, repo, and branch placeholders in a path expand from -R/--repo, the ORIGIN_REPO environment variable, or the origin git remote
- --auth-token (CURSOR_AUTH_TOKEN) passes a bearer token directly
- --endpoint (CURSOR_ORIGIN_ENDPOINT) changes the API server; the default is https://origin.cursor.com
Examples
origin api /repos/acme/checkoutFetch repository details from the Origin REST APIorigin api /repos/acme/checkout -q .defaultBranchPull a single field out of the response with a jq expressionorigin completion
Key points
- Enable it by appending to your shell config, for example origin completion >> ~/.zshrc
- With completion installed, branch-valued flags such as --head and --base complete local branch names
- Every command takes --help (origin --help / origin repo --help / origin pr create --help)
Examples
origin completion >> ~/.zshrcAppend the completion script to zshorigin --helpShow the command list and global optionsorigin config get-channel
Key points
- config get-channel shows the current release channel
- config set-channel latest|stable switches channels; the default is stable
- Run origin update after switching to pull the build from the new channel
Examples
origin config get-channelShow the current release channelorigin config set-channel latestSwitch to the early-release channelorigin update
Key points
- The default channel is stable; origin config set-channel latest switches to early releases
- Verify the result with origin --version after updating
- The Cursor Agent CLI (agent) is a separate binary and is updated with agent update
Examples
origin updateUpdate the Origin CLI to the latest build on your channelVersion Updates
Major Cursor version updates and new features.
- Cloud Agents can run on your own infrastructure through My Machines, which connects a single laptop or VM, or Team pools, a scalable worker queue with hibernation support
- Agents can also run on cloud platforms such as AWS Lambda, Coder, Cloudflare, Daytona, Modal, Namespace, Vercel, and E2B
- Computer use is supported on Linux and Mac, so agents can drive a screen on self-hosted machines
agent persiststarts a persistent session: the agent keeps running after you close the terminal or lose the connection, and/detachdisconnects you while the work continuesagent persist attachreconnects to a running session,agent persist listandagent persist stopmanage sessions, andagent persist --resumecontinues an existing chat as a persistent session- Workers started with
--computer-use --share-desktopnow share a managed desktop instead of a dedicated session agent worker controllercan wake claimed, hibernated workers on follow-up through the--spawnhookqueue watchmoved from polling to server-sent events (SSE), so it holds up better against rate limits
- Cloud Agents no longer require a connected GitHub or other third-party SCM provider. Select Start from scratch in the repo picker and prompt from the get-go, and Cursor creates an Origin repo for you in the background
- Once the agent's build is to your liking, click Create repo to save the work in an Origin repo — pick a custom or suggested name, set visibility to private or internal, and find the fully scaffolded repo under the Codebase tab
- Cursor port-forwards the cloud agent's live environment straight to your browser, so you can preview it and use tools like design mode
- Connect a Vercel account and hit publish to get a live URL for what you built (a Vercel account is required to use the publish feature)
- Adds subscriptions: Cursor Agent subscribes to an event source — a PR, a Slack thread, or a scheduled task — and wakes when something happens (cloud agents only for now). Cloud agents automatically subscribe to the PRs they create and drive them to completion, fixing CI and addressing bot comments
- Any skill can be used as a Custom Mode: a skill that stays pinned in the chat and keeps the agent focused, like an "always on" skill. From
/, pick a skill and press ⌥⏎ (Mac) or Alt+Enter (Windows), or choose Use as Mode - Subagents can run on their own virtual machines, each with an isolated copy of the project and clean context in its own cloud environment — test the parent agent's changes in fresh environments, or swarm independent fixes without collisions
/goalgives the agent a long-lived objective to work towards until it is fully complete; pair it with a custom mode to follow a playbook, or with/loopfor recurring check-ins- Steering improves: send a message to the agent while it is working without interrupting it. Follow-ups wait for the next tool call instead of cutting the agent off mid-action — type a follow-up and hit Send, or press ⏎ twice
- Ships Origin, Cursor's own git forge, in early beta across paid plans (Pro, Teams, and Enterprise) with repos, pull requests, code browsing, and GitHub sync. The new Codebase tab at cursor.com/codebase is home for Origin repos, and the codebase name you claim becomes the namespace in every repo URL
- GitHub repos can sit alongside the ones Cursor hosts. Synced repos update in real time — browse, search, and pull from the Origin copy while pushes still go to GitHub, which stays the source of truth. Pull requests sync both ways, so a comment in Cursor posts to GitHub and a reply on GitHub shows up in Cursor within seconds
- Adds the Origin CLI (origin) for the terminal, a separate binary from the Cursor Agent CLI (agent). origin auth login signs you in and configures the git credential helper, and origin repo and origin pr create repositories and review or merge pull requests. A repository's Apps tab connects Vercel, Depot, and Buildkite for per-PR preview deployments and CI
- Introduces builds — pre-warmed copies of your cloud agent development environment — so agents boot into a ready environment instead of setting up from scratch; Cursor measured a 10x faster environment boot and 3x faster time to first token internally
- The install command handles dependency installation, code generation, artifact compilation, and disk cache warming ahead of time, while the start command only brings up the fresh services each session needs
- When a deploy or update breaks an environment, agents keep running on the last successful build and failed builds never go live. A Builds tab in the Cloud Agents dashboard shows build status, logs, commit SHAs, and which build each agent run used, plus manual build triggers and a configurable staleness threshold. New environments get builds automatically; existing ones enable them from Enable Builds
- Adds durable goals with
/goal: an active or paused status line, goals that continue across idle and headless runs, and Ctrl+C to pause (rolling out and gated) - Self-hosted workers can join a named pool with
agent worker --pool, default to releasing after an hour idle (--idle-release-timeout 0keeps them running), and start from a non-git directory with--worker-dir - Pressing Enter during a run steers the active turn with your queued message and only interrupts on a second Enter; single-turn and headless runs drain their subagents before exiting
- Auto is pinned to the top of
/modeland editing a model's parameters selects it; a headless--modelthat requires Max Mode is now sent instead of being clamped down - Hooks from installed plugins, including those loaded with
--plugin-dir, execute and refresh on reload, and plugin config masks token and API-key fields - Sandbox policy gains a read-access boundary and sandboxed git-over-SSH routes through the SOCKS proxy; mode-switch approvals move to a pager with a 15-second countdown
- Adds new plugins that let coding agents read, write, and act across six Google Workspace services (Drive, Gmail, Calendar, Docs, Sheets, and Chat), installable from the Customize page or the Cursor Marketplace
- Google Drive supports searching, accessing, and creating files/folders; Gmail supports searching, reading, drafting, sending, labeling, and thread management
- Google Calendar supports reading schedules, creating/updating events, and finding free time; Docs/Sheets support viewing, editing, creating documents/spreadsheets, and updating cells; Chat supports reading and sending space/direct messages. No new commands or shortcuts were added, so the catalog count stays at 96 as of this check
- Cursor is now available as a dedicated iPad app, with a purpose-built layout featuring a pinned chat sidebar alongside split-screen content viewing
- A full PR review screen supports comments, checks, and approvals for reviewing code on the go, plus a new Inbox that gathers notifications in one place
- Adds Bitbucket and Azure DevOps SCM support alongside GitHub, multi-PR sessions for working across several pull requests at once, and in-app team switching
- Introduces "Cursor Start," a new pricing plan for the Indian market at ₹649/month
- Introduced Cursor Router, an intelligent model routing system that analyzes each request and sends it to the right model for the job. "Frontier models handle work that demands them. Price-efficient models handle the rest."
- Selecting Auto now offers three optimization modes: Intelligence (frontier-quality output), Balance (strong quality for daily use), and Cost (good quality with token efficiency)
- Admins can enable Router per team or group, restrict available optimization modes, set default modes, and maintain model allow/block lists. Available on desktop, web, iOS, CLI, and SDK; on by default for Teams, opt-in via dashboard for Enterprise
--trustis no longer headless-only: passing it in an interactive session trusts the workspace up front and skips the trust dialog, recording the same saved trust decision- MCP OAuth login fails fast with an actionable message when the callback port is already taken instead of hanging, and macOS keychain failures explain the cause and the fix
- The model catalog refreshes in the background every 10 minutes, so newly released models appear in
/modelwithout a restart - The git branch watcher backs off exponentially instead of pegging a CPU core after exhausting the inotify watch limit on Linux
- Cursor in Slack now shares a plan before it starts so you can jump in and redirect early, and updates its status as it works. In-message buttons are replaced by compact footer links, and tables, PRs, and artifacts render more cleanly
- Multi-repo environment support: start in a named multi-repo environment instead of a single default repo, and switch repositories mid-task with a Switch repository button when Cursor needs a repo outside the current environment
- Cross-channel workflows: Cursor can read from and send messages to other Slack channels and threads, pulling context from elsewhere in the workspace and posting updates back to the original thread or the relevant channel
agent plugin marketplace add|list|update|removemanages plugin marketplaces from the shell, with--git-refto pin a branch, tag, or commit and--format jsonfor scripts/usageshows included-usage meters with Auto and API breakdowns, on-demand spend against your limit, plan name, and billing-cycle reset date; Enterprise pooled plans get a spend chart and a dashboard link- A new Auto-Accept Web Search permission lets the agent search the web without pausing for approval — toggle it under Permissions in
/configor setautoAcceptWebSearchin cli-config.json (off by default) - The same remote MCP server configured in several scopes now runs as a single instance, and the Configure Scope tab saves which scope's configuration wins, per project
- Setup commands from
.cursor/worktrees.jsonrun only after the workspace is trusted
- New "side chats" via
/side,/btw, or the plus button let you ask questions or explore tangents without interrupting the main Agent conversation, inheriting context from the main chat and referenceable later via at-mentions - Search agent transcripts from the command palette (
Cmd K) in the Agents Window; search within a conversation withCmd F, jumping between matches with a match counter - Simplified project and repo pickers let you create projects and connect to GitHub, GitLab, or Azure DevOps without leaving the picker
- New cloud agent hooks (
beforeSubmitPrompt,afterAgentResponse,afterAgentThought,stop,subagentStart, and more) let you observe and control prompts, responses, thinking, subagents, and turn completion
- Shortcuts like
/opusand/composerjump straight to a model, each family remembers your last choice, and/fasttoggles Fast when the model supports it - Fresh installs default to Auto model routing; existing choices are unchanged
- Press q during
agent loginto reveal a QR code for the login URL and finish authentication from a phone, even over SSH agent ls,agent --resume, and/resumeopen All chats across workspaces by default, with Left/Right to switch to This workspace- Setting
user-invocable: falsein a skill'sSKILL.mdfrontmatter hides it from slash autocomplete while keeping it available to the model - Writes to cli-config.json stage to their own temp file before an atomic rename, so concurrent CLI processes cannot corrupt it
- Team Marketplaces now support Team MCP servers — admins configure them once under Dashboard → Integrations & MCP and distribute them across cloud agents, the agents window, IDE, and CLI
- Adds organization groups (works alongside existing SCIM directory groups) so admins can restrict marketplace access to specific groups from Dashboard → Plugins → Team Marketplaces
- Launches the Cursor mobile app for iOS in public beta — pick a repo and launch a cloud agent, with voice input and slash-command navigation
- Adds Remote Control to steer agents running on your computer from your phone, Live Activities and push notifications to track agent status from your lock screen, and Artifacts to review screenshots, logs, and diffs and merge PRs from the app
- Repeat
--add-dirto add directories at launch, including alongside--workspace /add-dirrefreshes slash skills and custom commands immediately; restart only when you want the agent to discover new skills automatically- Pressing Enter again on an empty prompt stops the current turn and sends your queued message right away
- Fixed working servers appearing disconnected in
/mcpandagent mcp listwhen their tools or instructions were available AGENT_CLI_CREDENTIAL_STORE=filestores credentials in an owner-only file for sandboxes without the macOS Keychain- Cloud transfers preserve the selected model and workspace path, and the Auto-review classifier can inspect invoked skill and file-backed custom-command files
- Adds a unified Customize page to manage plugins, skills, and MCPs at the user, project, and team levels in one place, with a marketplace leaderboard showing what your team uses most
- Introduces plugin canvases (prebuilt setup templates) and team marketplaces that import from GitLab, BitBucket, and Azure DevOps
- Auto-review arrives in the CLI: turn it on with
--auto-review, in/config, or with/auto-review, and steer the classifier with allow and block instructions inpermissions.json - Named multi-directory workspaces: add directories with
/add-dir, save the set with/save-workspace, reload it with/load-workspace, or start scoped with--workspace /rewindis on by default and no longer needs enabling in/config, and/vimcan be triggered from any position in the prompt/copygains a per-step picker for multi-step replies and can include your own messages, and/logswrites per user on shared machines- Prompt history is per conversation, and the jobs list shows foreground shells and subagents alongside background tasks
- Admins control whether Auto-review is available,
worker startwaits for the bridge before reporting ready, and workers keep a stable logical ID per authenticated user
- Adds the
/automateskill so you can create an automation directly in your local agent session by describing the task in plain language - Expands triggers with a Slack emoji trigger and five new GitHub triggers, plus a computer-use tool for automations
- Adds
/in-cloudto spin up a cloud subagent in its own VM for the next task, keeping the local session free - Adds
/babysitso a cloud subagent can iterate on a PR remotely to prepare it for merge, with handoff between local and cloud sessions
- Bugbot is now over 3x faster (review time dropped from ~5 minutes to ~90 seconds), about 22% cheaper, and finds ~10% more bugs on average
- Run Bugbot and Security Review with
/reviewbefore pushing code, or use/review-bugbotand/review-securitydirectly
/forkbranches the current conversation into a copy so you can continue down a different path (aliases/branchand/duplicate)/updateupdates the CLI in place from inside the session/contextvisualizes what is consuming the context window by category, and/logsshows and copies the debug log path written for every session/resume(Ctrl+Y) opens quickly thanks to cached session metadata, with Created and Last updated columns and reliable ordering- HTTP/2 keepalive pings detect silent mid-stream stalls in seconds and retry, and transport interruptions no longer end the turn as if Ctrl+C had been pressed
- direnv support loads
.envrcautomatically, and long shell output truncates from the top so you see the latest lines
- Design Mode now supports multi-select so you can click multiple elements at once and let Cursor read their code, layout, and relationships together
- Adds voice input to the Design Mode overlay so you can narrate changes while agents run and queue the next change without waiting
- New Design Mode lets you select and annotate UI elements directly in canvases to guide agent edits visually
- New Context Usage Report shows an interactive canvas with the token breakdown across system prompt, tool definitions, rules, and skills
- Adds full-screen canvas viewing in the browser and canvas button embedding that triggers a specific prompt when clicked
- Improves agent canvas type error fixing, component styling, and chart customization
- Introduces a multi-level management hierarchy for Enterprise: Organizations (top-level company container), Teams (operating units with their own security, governance, and spend settings), and Groups (lightweight user collections spanning teams)
- Supports users belonging to multiple teams with different roles per team
- Adds organization-level IDP management and usage analytics, plus dashboard and API tools to move users between teams
- Automatically inherits settings for new team members
- New 'Auto-review' run mode lets agents work with fewer approval prompts and more secure execution, applied to Shell, MCP, and Fetch tool calls
- Allowlisted calls run immediately; sandboxable calls run in the sandbox
- Remaining actions go through a classifier subagent that permits them, tries alternatives, or asks for approval; custom instructions can steer the classifier
- Configured at Settings > Cursor Settings > Agents > Run Mode
- Shared Canvases let you share a link to a live snapshot of a canvas so teammates can open it directly in their browser
- New
/loopskill repeatedly runs a prompt on a local schedule (e.g. 'check deploy status every 5 minutes', 'work on this feature until tests pass') - If
/loopis given no interval, the agent decides when or what event should trigger the next run
- Automations are now available inside the Agents Window with support for multi-repo and no-repo configurations
- Five new marketplace templates: Slack digest, product analytics, product FAQ, product finance, and customer health agents
- Newly created automations get a 50% discount on agent runs for seven days
/compressis renamed/summarizeto match the IDE, with/compactand/compresskept as aliases- Composer 2.5 becomes the default model for new CLI sessions
- Point the
enabled_pluginskey in~/.cursor/settings.jsonat local plugin folders, no marketplace needed - Self-hosted workers span multiple repositories with repeatable
--worker-dirflags and keep a stable identity - Rewinding restores that turn's image attachments, and logging in or toggling a server from
/mcpupdates the agent's available tools immediately
- Assign work items to Cursor or mention
@Cursorin a comment to kick off a cloud agent - The agent reads the ticket details, processes the request, and opens a pull request when done
- Delegate tasks to the agent straight from Jira without leaving your team's workflow
- A substantial upgrade to the Composer model with stronger performance on long-running tasks and better instruction-following
- Pricing: Standard at $0.50/M input and $2.50/M output, Fast at $3.00/M input and $15.00/M output
- Double usage credits for the first week after launch
/mcpbecomes a per-server detail view: browse tool schemas, log in, log out (clearing stored OAuth credentials), enable, and disable without leaving the session- Vim visual mode arrives with delete and change operators on a selection, and the active Vim mode shows in the footer
- Ctrl+G opens your prompt in
$EDITORso you can compose there and drop the result back into the prompt bar - Nested rules and skills:
.cursor/rulesand.cursor/skillsin subdirectories are discovered everywhere, matching the IDE HTTPS_PROXYis honored on the streaming connection, completing corporate proxy support end to end
- New
Cmd/Ctrl+Shift+Mshortcut toggles full-screen mode for the right panel in the Agents Window - Choose chat density (Compact, Balanced, Detailed) to tune how agent activity is displayed
- 8 improvements and 9 bug fixes across PR tabs, background tasks, cloud agents, and keyboard handling
- Multi-repo environments give cloud agents access to all the repositories they need, with reuse across sessions
- Dockerfile-based environment config adds build secrets for secure private registry access; only changed layers rebuild and cache hits run 70% faster
- Agent-led setup asks questions, flags missing credentials, and validates the environment is configured properly
- Environment governance adds version history with rollback, admin-only restore restrictions, audit logs, and environment-scoped secrets and egress controls
- Mention
@Cursorin any Microsoft Teams channel to delegate a task to a cloud agent or pull Cursor information into Teams - Automatically selects the target repository and model based on the request and recent activity
- Reads the full thread context before implementing, then creates a PR for review
- Set up from the integrations section of the Cursor dashboard
- Adds effort levels to Bugbot PR reviews: Default (optimized for speed), High (more reasoning to find more bugs), and Custom (set levels dynamically with natural language)
- High effort finds 0.95 bugs per run on average (Default finds 0.7 per run, with over 79% resolved at merge time)
- Customization requires usage-based billing for Bugbot; available to Teams admins and Individual plan users
- Reorganizes the PR review surface into three tabs—Reviews, Commits, and Changes—uniting inline review threads, commit history, and change pickers
- "Build in Parallel" automatically identifies independent plan parts and runs them simultaneously using async subagents
/multitaskslash command launches async subagents from the editor to parallelize requests instead of queuing them- "Split changes into PRs" quick action uses chat context to identify logical slices and propose PR splits
- Pin Skills as quick-action pills for faster invocation
- Configure Explore subagent behavior to choose specific models, inherit the parent agent's model, or disable it entirely
- Subagents support general model names (e.g.,
model: opus) to always use the latest version
- Add a marketplace by git URL with
/plugin marketplace add, browse and manage marketplaces by scope, and see which marketplace each plugin came from --plugin-dirloads local plugin directories, and plugins imported from Claude Code appear alongside native ones/modeltypeahead: type something like/model sonnetand the picker opens pre-filtered without submitting your prompt/mcpgroups servers under User / Project / Team, and failed servers show their actual error- Ctrl+L clears the screen and scrollback while keeping your session running, and the theme follows your terminal between light and dark
- Interrupting preserves the output of in-flight shell commands, and follow-ups move running tools to the background instead of killing them
- View an agent's context usage breakdown directly in chat
- See context consumption split across Rules, Skills, MCPs, and subagents
- Identify causes of bloated context and optimize agent configurations
- Admins can set granular allow/block lists at the model and provider level
- Default-block setting for new providers and model versions
- Soft spend limits replace hard cutoffs and alert at 50%, 80%, and 100% usage
- Filter usage analytics by specific users or break it down by product surface (Clients, Cloud Agents, Automations, Bugbot, Security Review)
- Create a team marketplace without connecting a repository first, simplifying initial setup
- Admins can add, remove, and configure install behavior for first-party plugins from marketplace settings
- Distribute plugins in three modes: Default Off (user opt-in), Default On (user opt-out), or Required (mandatory, non-removable)
- Plugins bundle MCP servers, skills, subagents, rules, and hooks that extend agents with custom functionality
- Manage marketplace configuration and plugin distribution strategies from the Cursor dashboard
- Security Reviewer checks every PR for security vulnerabilities, auth regressions, privacy and data-handling risks, agent tool auto-approvals, and prompt injection attacks
- Inline comments at exact diff locations include severity levels and remediation guidance
- Vulnerability Scanner runs scheduled scans of your codebase to check for known vulnerabilities, outdated dependencies, and configuration issues
- Scanner can be configured to send updates of its findings in Slack
- Plug in MCP servers for existing SAST, SCA, and secrets scanners to use as part of the review
- Available in beta on Teams and Enterprise plans, drawing from existing usage pools
import { Agent } from '@cursor/sdk'enables developers to build agents programmatically with minimal setupnpm install @cursor/sdkprovides access to the SDK alongside sample projects from the public cookbook repository- Agents leverage the same runtime, harness, and models that power Cursor, including frontier models such as
composer-2 - Deploy agents locally on your machine or on Cursor's cloud against a dedicated VM
- Available for all users in public beta with streaming event handling for straightforward implementation
- Standard token-based consumption pricing aligned with existing Cursor usage models
/multitaskdispatches requests to async subagents that run in parallel instead of being added to the queue- Breaks larger tasks into smaller chunks for a fleet of subagents to tackle simultaneously
- Already-queued messages can be flipped over to multitask mode without waiting for the current run to finish
- New and improved worktrees in the Agents Window let you run isolated tasks across branches and pull any branch into the foreground with one click
- Multi-root workspaces let a single agent session target a reusable workspace made of multiple folders
- Cross-repo changes spanning frontend, backend, and shared libraries no longer require retargeting the agent for every move between repos
Canvaseslet agents respond with interactive visual artifacts instead of plain text- Built-in first-party components: tables, boxes, diagrams, and charts can be composed on a single canvas
- Seamlessly integrates with existing Cursor surfaces such as diffs and to-do lists
- Generated canvases persist in the Agents Window side panel so you can revisit them later
- Available in Cursor 3.1 across the Agents Window and the editor
/debugenters Debug Mode to pinpoint root causes via hypotheses and inserted log statements/btwlets you ask a side question without derailing the agent's current task/configopens an interactive CLI panel to adjust model choices, defaults, and runtime preferences/statuslinecustomizes the status bar with mode, branch, environment, and session metadata- The model picker can launch without clearing the current prompt, and Auto-run now works in Debug Mode and Plan Mode
Tiled Layoutsplits the Agents Window into panes so multiple agents can run and be managed in parallelCtrl+Mcaptures voice input while held and transcribes it with batch STT when released- Design Mode now supports navigating the element tree (up, down, sideways) from the keyboard
- Search and select a branch from the empty state before launching a cloud agent
- Jump straight from a diff to the matching line in the file, plus include/exclude filters in Search in Files
Learned Ruleslet Bugbot self-improve in real time from pull-request feedbackBugbot MCP Supportgives reviews access to MCP servers for additional contextFix Allapplies multiple Bugbot fixes in a single operation- Improvements to Bugbot Autofix push the resolution rate to 78%
Agents Windowruns multiple agents in parallel across local, worktree, cloud, and remote SSH environmentsDesign Modeannotates and targets UI elements directly in the browser for precise agent feedbackAgent Tabsdisplays multiple chats side-by-side or in a grid layout within the editor/worktreecommand for isolated git worktree execution,/best-of-nfor parallel multi-model comparison- New
Awaittool for agents, enhanced screenshot-based browser automation
/rewindadds an interactive timeline for undoing agent turns, with per-turn file diffs, conversation-only restore, and/undoand/restorealiases/configbecomes a full settings editor inside the CLI, replacing hand-edited JSON, including a version and account page- Point
statusLineat your own command to render its output, with live token usage data, in the prompt footer /btwasks a quick read-only question mid-turn; the answer streams into a dismissible overlay and never touches conversation history- Desktop notifications fire when a turn finishes or the agent is blocked on you, across iTerm2, Ghostty, Warp, Kitty, and Terminal.app
- Adds the
?shortcut cheat sheet,/copy, and/rename, and lets you install plugins directly from a git URL
Self-hosted Cloud Agentskeep code and tool execution on your own infrastructure- Codebase and secrets remain within your internal network
- Same capabilities as hosted agents including isolated VMs and plugins
- New
Composer 2model delivers frontier-level coding performance - Strong results on challenging coding tasks measured by CursorBench benchmarks
- Two pricing tiers: Standard ($0.50/M input, $2.50/M output) and Fast ($1.50/M input, $7.50/M output)
- Adds 30+ new Marketplace integrations
- Includes Atlassian, Datadog, GitLab, Hugging Face, PlanetScale, and other major services
- Makes it easier to connect external tools and data sources from inside Cursor
Automationsruns cloud agents on schedules or event triggers- Triggers: GitHub PR/push, Slack messages, Linear issues, PagerDuty incidents, webhooks
- Tools: PR creation, comments, reviewer requests, Slack messages, MCP, Memories
- Can be created in one click from Marketplace templates
- Use Cursor AI features inside IntelliJ IDEA, PyCharm, and WebStorm
- Integrated through Agent Client Protocol
- Supports OpenAI, Anthropic, Google, and Cursor models
MCP Appsembeds interactive UI from Amplitude, Figma, tldraw, and more inside CursorTeam Marketplacesallows private plugin sharing for Teams and Enterprise plans- Support for parallel Debug sessions
- Debug mode automatically removes unneeded code between turns and adjusts logging dynamically
- Browser tool adds context menus and zoom support
- Subagents arrive in the CLI: parallel agents execute locally in interactive, headless, and editor sessions, inheriting your credentials, rules, and approval policy
/pluginbrowses the marketplace and installs or uninstalls plugins at user or project scope, loading their skills, slash commands, subagents, and MCP servers into the session- Run Everything becomes its own toggle via
/auto-run(and--force/--yolo), separate from the Shift+Tab mode cycle permissions.jsonsupport: the CLI reads the same terminal and MCP allowlist file as the IDE- Double Ctrl+B sends a running shell to the background, and headless runs wait for background work to finish
- Skills are also discovered in
.claude/skills,.agents/skills, and.codex/skills, and login routes throughHTTPS_PROXYfor corporate networks
- Run Autofix directly from Bugbot findings
- Review and apply fix suggestions while staying in the PR flow
- Cuts the back-and-forth between review and remediation
Pluginsand Cursor Marketplace for installing and managing extensionsAsync Subagentssupports background execution and nesting of subagentsLong-Running Agentsbecomes available as a research previewSandbox Network Controlsadds domain-level network access controls- CLI improvements: Plan Mode menu and terminal Mermaid ASCII rendering
--worktreeand-wrun the agent in an isolated Git worktree, with--worktree-basefor the base branch, and the sandbox fully understands worktree layouts--yoloenables fully autonomous runs that auto-approve trust, MCP, and command approvals consistentlyagent bedrockconfigures access keys or a team IAM role so you can use AWS Bedrock with your own credentials- Adds the unified
/changesreview UI (Ctrl+R), with a Session tab showing only this session's edits ando/Oto open diffs in your editor -H/--headeris repeatable curl-style, and per-turn input, output, and cache token totals plus arequest_idare added tostream-jsonoutput- Sandbox policy files
~/.cursor/sandbox.jsonand.cursor/sandbox.jsonare honored, including over SSH
About Cursor Commands & Shortcuts
A searchable reference covering the full surface of Cursor editor — keyboard shortcuts, AI mode switching (Agent, Ask, Manual, Custom), @ mention context syntax, slash commands, .cursorrules configuration, and MCP integration. The CLI category also covers Cursor CLI (agent) commands, flags, CLI-only slash commands, and cli-config.json settings keys, while the Origin CLI category covers the origin binary that drives Cursor's Origin git forge. Organized by category based on Cursor's official changelogs for the app and the CLI, with version update notes included. Filter, search, and copy any command in one click without leaving your current context.
Features
- Comprehensive coverage of shortcuts, @ mentions, AI features, and settings
- Category filters and text search for quick access
- One-click copy for instant reference
- Accurate reference based on Cursor official documentation
- Version update information included
Use Cases
- Looking up the right keyboard shortcut (Cmd I vs Cmd K vs Cmd L) when you keep opening the wrong Cursor panel mid-coding session
- Deciding which mode to use — Agent, Ask, Manual, or Custom — before starting a complex refactoring task across multiple files
- Checking the correct @ mention syntax (@file, @folder, @web, @docs, @git) to give Cursor context without pasting code manually
- Creating a team .cursorrules file and referencing this guide to ensure everyone on the project uses consistent AI behavior
- Onboarding a VS Code user to Cursor by showing them which shortcuts carry over and which new ones (Cmd I, Cmd .) they need to learn
FAQ
Are Cursor shortcuts the same as VS Code?
Cursor is a VS Code fork, so all VS Code shortcuts work unchanged. Cursor adds its own AI shortcuts on top: Cmd I (open Agent), Cmd K (inline edit), Cmd L (open chat), and Cmd . (switch modes). Everything else behaves exactly as in VS Code.
What is the difference between Agent, Ask, Manual, and Custom Modes?
Agent autonomously reads files, writes code, and runs terminal commands. Ask is read-only — great for questions and explanations without touching files. Manual pauses for your approval between each step. Custom Modes let you define your own instruction set and tool permissions for a specific workflow (e.g., a dedicated code-review mode).
What are the Windows and Linux equivalents of Mac shortcuts?
Replace Cmd with Ctrl and Opt with Alt. For example: Cmd I → Ctrl I, Cmd K → Ctrl K, Cmd Shift P → Ctrl Shift P. All keybindings are customizable via Ctrl Shift P → 'Keyboard Shortcuts'.
What is .cursorrules and should I commit it?
.cursorrules is a project-level file where you define coding conventions, preferred libraries, and custom instructions for Cursor. Yes, commit it to your repo — every teammate will then get consistent AI suggestions without manual configuration.
How do I create custom slash commands in Cursor?
Create Markdown files in the .cursor/commands/ directory. The filename becomes the slash command name, and the file content is used as the prompt template. For user-global commands (shared across all projects), place them in ~/.cursor/commands/.
How does Cursor compare to GitHub Copilot?
Cursor's Agent mode can autonomously edit multiple files, run shell commands, and iterate based on test output — going beyond Copilot's inline completion. Copilot is available directly inside VS Code without switching editors, but Cursor's multi-file agent is significantly more powerful for complex refactoring tasks.
How do I open the Agents Window in Cursor?
Press Cmd Shift P (Ctrl Shift P on Windows/Linux) to open the command palette, then choose 'Open Agents Window'. The Agents Window is a unified workspace for managing agents across multiple repositories and environments — local, cloud, and remote SSH — and became generally available in Cursor 3 (April 2026). If the Agents Window is not showing in your command palette, check that you are on Cursor 3 or later and update if needed.
What is Multitask Mode in Cursor and how do I enable it?
Enable Multitask Mode by typing /multitask in the Agents Window, or by clicking 'Build in Parallel' on the plan screen. Instead of queueing your requests, it splits the work into tasks and runs them across multiple asynchronous subagents (a fleet, or the built-in research, shell, and browser subagents) in parallel. The parent agent stays interactive so you can keep working, and each subagent can be resumed later by its agent ID.
Is there a complete Cursor cheatsheet with all keyboard shortcuts?
This page is that cheatsheet. It covers a complete set of 149 Cursor shortcuts and commands — keyboard shortcuts, @ mentions, slash commands, AI features, settings, the Cursor CLI, and the Origin CLI — grouped into six categories: keyboard shortcuts, command palette, AI features, settings, CLI, and Origin CLI. You can toggle between Mac and Windows/Linux key labels, narrow the list with category filters and text search, and copy any command with one click.
Which keyboard shortcuts work in the Cursor terminal?
Cursor's official docs define three terminal shortcuts. Cmd K opens the terminal prompt bar so you can generate a command from natural language. Cmd Return runs the generated command. Escape puts the generated command into your shell without running it, so you can edit it first. On Windows and Linux, use Ctrl in place of Cmd.