Skip to main content

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 use
  1. 1

    Filter by category

    Switch between Shortcuts, Command Palette, AI Features, Settings, CLI, and Origin CLI to find what you need quickly.

  2. 2

    Search details

    Use keyword search to match command names, key points, and example descriptions at once.

  3. 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 persist starts a persistent session: the agent keeps running after you close the terminal or lose the connection, and /detach disconnects you while the work continues
  • agent persist attach reconnects to a running session, agent persist list and agent persist stop manage sessions, and agent persist --resume continues an existing chat as a persistent session
  • Workers started with --computer-use --share-desktop now share a managed desktop instead of a dedicated session
View all updates →

Shortcuts

I
Toggle the Agent/side panel. Used for interacting with the AI agent.
L
Toggle the side panel (Chat).
K
Open Inline Edit. After selecting code, give editing instructions in natural language.
.
Open the mode menu to switch between Agent / Ask / Manual / Custom Modes.
/
Cycle through available AI models.
J
Open Cursor-specific settings.
P
Open the Command Palette (shared with VS Code).
L
Add selected code as context to Chat.
K
Add selected code as context to Inline Edit, or toggle focus to the Inline Edit input.
Cancel AI generation.
Context-dependent action. Chat: accept all changes. Terminal: run generated command.
Reject all changes suggested by the Agent.
Accept Tab completion suggestions one word at a time (partial accept).
N
Start a new chat. Cmd R also performs the same action.
Tab
Accept Tab completion suggestion. In chat, move focus to the next message.
Escape
Reject Tab completion suggestion, or unfocus the chat input.
Tab
Cycle through the main chat modes from the input box. Useful for moving between Agent, Ask, and Manual workflows.
Space
Toggle Voice Mode (voice input).
Queue a message. It will be sent automatically after the current task finishes.
Ask a quick question in Inline Edit without applying any changes.
/
Toggle AI model in chat.
E
Toggle Agent layout. Switch between side panel and fullscreen Agent view.
M
Toggle file reading strategies. Changes how the AI reads files for context.
T
Open a new chat tab. Manage multiple chat sessions using tabs.
[
Navigate to the previous chat. Browse back through your chat history.
]
Navigate to the next chat. Browse forward through your chat history.
V
Paste clipboard content as text into the input box. Inserts directly as text instead of as a context reference.
M
Press and hold to start voice input in the Agents Window. Dictation is captured while the key is held, then finalized with batch speech-to-text when released.
M
Toggle full-screen mode for the right panel in the Agents Window, maximizing it to focus on a single tab. Press again to exit.
F
Search within the current chat conversation. Jump between matches and see a match counter.

Command Palette

@Files & Folders

Type @ in chat input to reference specific files or folders as context.

Key points

  • Type / after a folder name to expand subfolders.
  • Navigate candidates with arrow keys; press Enter to select.

Examples

@src/components/Header.tsx
Add a specific file to AI context

@Code

Reference specific code symbols (functions, classes, etc.) as context.

Key points

  • More granular than @Files.
  • Directly specify functions or classes.

Examples

@handleSubmit
Add a specific function to context

@Docs

Reference indexed documentation. Custom URL documents can also be added.

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.js
Reference the Next.js documentation

@Git

Reference Git context such as diffs, commits, branches, and PR state directly in chat.

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

Pull web content into chat context for docs, references, and external research.

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.com
Bring an external documentation page into the conversation

@Cursor Rules

Reference current Cursor rules directly in chat.

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 Rules
Include active rule context in the current conversation

@Past Chats

Reference past chat history as context.

Key points

  • Useful for carrying over decisions and discussions from previous conversations.

Examples

@Past Chats
Reference previous chat content to continue work

/summarize

Manually compress the context window and summarize the conversation.

Key points

  • Use when context runs low in long conversations.
  • Auto-compression also occurs, but this allows explicit manual execution.

Examples

/summarize
Compress a long conversation to continue efficiently

/commit

Generate a commit message from your changes.

Key points

  • Custom command: can be defined in .cursor/commands/commit.md.
  • Can be combined with /pr.

Examples

/commit
AI analyzes changes and suggests a commit message

/pr

Generate a pull request description from your changes.

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-523
Create a commit and PR simultaneously

.cursor/commands/*.md

Define custom slash commands as Markdown files.

Key points

  • Project-level: .cursor/commands/*.md
  • Global: ~/.cursor/commands/*.md
  • Team: Created via Cursor Dashboard (Team/Enterprise plans).

Examples

.cursor/commands/code-review.md
Create a custom code review command

/create-rule

Slash command to auto-generate rule files in Agent chat. Creates .mdc files with proper frontmatter.

Key points

  • Auto-generates rule files under .cursor/rules/.
  • Creates files with frontmatter (alwaysApply, globs, etc.).

Examples

/create-rule
Generate a new Cursor rule file from chat

/migrate-to-skills

Built-in command to convert existing rules and slash commands to skills format (Cursor 2.4+).

Key points

  • Automatically converts rules with 'Apply Intelligently' configuration.
  • Preserves original behavior patterns when migrating slash commands.

Examples

/migrate-to-skills
Batch-convert existing rules to skill format

/worktree

Run agents in an isolated git worktree. Try changes without affecting the main branch.

Key points

  • Agent works in an independent worktree, keeping your main code safe
  • Ideal for parallel branch work and experimental changes

Examples

/worktree
Run agent in an isolated git worktree

/best-of-n

Send the same prompt to multiple AI models in parallel and compare results to pick the best one.

Key points

  • Compare outputs from multiple models simultaneously
  • Useful for comparing code generation and refactoring quality

Examples

/best-of-n
Run parallel generation across models and compare results

/debug

A Cursor CLI slash command that enters Debug Mode to pinpoint the root cause of complex bugs by generating hypotheses, inserting log statements, and analyzing runtime information.

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

/debug
Enter CLI Debug Mode to find the root cause of a complex bug

/btw

A CLI slash command for asking a quick side question without derailing the agent's main task, so you can get clarification on recent changes.

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

A slash command that opens an interactive settings panel in the Cursor CLI so you can view and adjust model choices, defaults, and runtime preferences on the spot.

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

/config
Open the CLI settings panel to change models or defaults

/statusline

A slash command that customizes the CLI status bar so it can surface session and runtime signals such as current mode, branch, environment, active task hints, and session metadata.

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

/statusline
Customize the CLI status bar to display the signals you need

/multitask

A slash command that runs async subagents in parallel inside the Agents Window. Instead of queueing requests, Cursor breaks larger tasks into smaller chunks and dispatches them to a fleet of subagents that work simultaneously.

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

/multitask
Run requests in parallel via async subagents

/loop

A new Cursor 3.5 skill that runs a prompt repeatedly on a local schedule, until a certain outcome is achieved or you stop it. Runs on fixed intervals you specify, or on a cadence the agent decides when no interval is provided.

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 status
Check deploy status every 5 minutes
/loop work on this feature until tests pass
Keep iterating on the feature until tests pass

/in-cloud

A slash command that spins up a cloud subagent in its own VM to work on the next task you submit, so the work runs remotely without occupying your local agent session.

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-cloud
Spin up a cloud subagent in its own VM for the next task

/babysit

A slash command that asks a cloud subagent to babysit a pull request, iterating remotely to prepare it for merge without tying up your local session.

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

/babysit
Ask a cloud subagent to prepare a PR for merge remotely

/automate

A Cursor 3.8 skill that creates an automation directly in your local agent session—describe the task in plain language and Cursor configures the triggers, instructions, and tools for you.

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

/automate
Create an automation from a plain-language description

/review

A slash command that runs Bugbot and Security Review on your changes before pushing code, surfacing potential bugs and security issues locally.

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

/review
Run Bugbot and Security Review before pushing code

/review-bugbot

A slash command that runs Bugbot directly to scan your changes for potential bugs, without also running the security reviewer.

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-bugbot
Scan changes for potential bugs with Bugbot

/review-security

A slash command that runs Security Review directly to scan your changes for potential security vulnerabilities, without also running Bugbot.

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-security
Scan changes for security issues with Security Review

/side

Start a side chat to ask questions or explore tangents without interrupting your main Agent conversation.

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

/side
Ask a side question without interrupting the main conversation

/deslop

A skill that finds and removes AI slop — redundant comments, try/catch wrapped around happy paths, pointless any casts, needlessly deep nesting, and other artifacts that clash with the surrounding code style. Install the Cursor Team Kit plugin (built and verified by Cursor) from the official Cursor marketplace to call it as /deslop in the agent.

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

/deslop
Strip AI-generated slop from your diff against main

AI Features

Agent

Autonomous AI agent. Reads, edits, searches, and executes commands across your entire codebase.

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 files

Ask

Read-only mode. Explores the codebase to answer questions without making changes.

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 changes

Manual

Manual mode. Use it when you want Cursor to pause between steps and ask before taking actions.

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 starts

Custom Modes

Custom Modes. Add your own task-specific modes with tailored prompts and tool access.

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 mode

Tab Completion

Cursor's AI-powered completion. Displays context-aware multi-line suggestions.

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 location

Inline Edit (Cmd K)

Inline editing via Cmd K. Edit code directly with natural language instructions.

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 code

Memories

Store durable preferences and project context for future agent runs.

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 tasks

Parallel Agents

Run multiple Agents in parallel. Each Agent works in an isolated Git worktree.

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 result
Compare parallel implementations and choose the best one

Checkpoints

Automatically saves Agent changes as snapshots. Can be restored at any time.

Key points

  • Auto-saved each time the Agent makes changes.
  • "Restore Checkpoint" button to revert to any point.

Examples

Restore Checkpoint
Revert Agent changes to a previous state

Review (Find Issues)

After Agent completes, analyzes diffs with a "Find Issues" pass to detect problems.

Key points

  • Review option appears automatically after Agent finishes.
  • Detects code quality, bugs, and security issues.

Examples

Find Issues
Detect issues in the Agent's changes

Bugbot

Automated pull request review assistant with issue detection and Autofix support.

Key points

  • Finds likely bugs, regressions, and quality issues in PRs.
  • Can suggest direct fixes from the review findings.

Examples

Bugbot → Autofix
Turn a Bugbot finding into an immediate fix suggestion

Terminal Cmd K

Press Cmd K in the terminal to generate commands from natural language.

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 language

Cloud Agents

Run agents in the cloud to automatically generate merge-ready PRs. Computer Use enables testing in isolated VMs.

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 Agent
Launch a cloud agent to auto-generate PRs

Background Agents

Run long-lived agents asynchronously for research, migrations, and monitoring tasks.

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 tests
Offload a long-running task to an async agent

Automations

Always-on agents triggered by events. Runs automatically in response to GitHub, Slack, Linear, PagerDuty, and webhook events.

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/new
Create a new automation for event-driven tasks

Subagents

Delegate complex tasks to specialized subagents. Each runs independently with its own context window, enabling parallel execution.

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 subagent
Offload large codebase exploration to keep the main conversation focused

MCP Apps

MCP extension that renders interactive UI like charts, diagrams, and whiteboards inside Cursor.

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 tldraw
View interactive diagrams during a chat session

Agents Window

A new interface for running multiple agents in parallel across repos and environments: locally, in worktrees, in the cloud, and on remote SSH.

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 Window
Open Agents Window to run multiple agents in parallel

Design Mode

Annotate and target UI elements directly in the browser within Agents Window, giving precise feedback to the agent.

Key points

  • ⌘+Shift+D: toggle Design Mode
  • Shift+drag: select an area
  • ⌘+L: add element to chat, ⌥+click: add element to input

Examples

⌘+Shift+D
Toggle Design Mode to directly target UI elements

Agent Tabs

View multiple agent chats side-by-side or in a grid layout within the editor.

Key points

  • Display multiple chats simultaneously for parallel work
  • Switch between side-by-side and grid layouts

Examples

Agent Tabs
View multiple agent chats at once in a grid

Tiled Layout

Split the Agents Window into panes so you can run and manage multiple agents side by side in parallel.

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 Layout
Split the Agents Window into tiles and run multiple agents in parallel

Cmd K (Agents Window)

Search past agent transcripts from the command palette (Cmd K) in the 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 transcripts
Search past agent conversations by keyword

Builds

Pre-warmed copies of your cloud agent development environment, prepared in the background 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).

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 → Builds
Check build status and logs, and enable builds for an existing environment

Start from scratch

Start a cloud agent without a connected GitHub or other third-party SCM provider. Pick Start from scratch in the repo picker and prompt right away, and Cursor creates an Origin repo for you in the background.

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 scratch
Have an agent build with no repo connected, then save it to Origin with Create repo

Settings

.cursor/rules/*.md

Define project-specific AI rules as Markdown files. Version-controlled.

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.md
Define coding standards as a rule file

User Rules

Define global rules for all projects from Cursor settings.

Key points

  • Location: Cursor Settings → Rules
  • Project rules take precedence (Team > Project > User).

Examples

Cmd Shift J → Rules
Configure global rules

AGENTS.md

AGENTS.md file in project root. A simpler alternative to .cursor/rules for rule definitions.

Key points

  • Write rules in Markdown format.
  • Functional alternative to .cursor/rules.
  • .cursorrules (legacy) is still supported.

Examples

AGENTS.md
Place AI rules at the project root

Generate Cursor Rules

Generate rule files from existing codebase conventions or prompts.

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 Rules
Create new Cursor rule files from repository context

Auto-Run Mode

Configure Agent's shell command auto-execution permissions.

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-Run
Change command auto-execution security settings

Tab Settings

Customize Tab completion behavior.

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 → Tab
Open Tab completion detailed settings

.cursorignore

Specify files to exclude from AI indexing and reference. Uses .gitignore format.

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 indexing

MCP Servers

Configure Model Context Protocol (MCP) servers. Add custom tools to AI.

Key points

  • Location: Cursor Settings → MCP, or .cursor/mcp.json
  • Configure MCP tool allowlists for sandbox execution.

Examples

.cursor/mcp.json
Configure project-specific MCP servers

.cursor/worktrees.json

Configure worktrees for Parallel Agents. Define setup scripts.

Key points

  • Location: .cursor/worktrees.json
  • Setting: cursor.worktreeCleanupIntervalHours (cleanup interval).
  • cursor.worktreeMaxCount: max worktrees per workspace (default 20).

Examples

.cursor/worktrees.json
Define worktree setup scripts

.cursor/skills/

Skill system that adds specialized capabilities to agents. Package domain knowledge and workflows in SKILL.md files.

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.md
Create a custom code review skill

.cursor/hooks.json

Run custom scripts before or after each stage of the agent loop. Use for security checks, auto-formatting, and auditing.

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 → preToolUse
Run a security check before each tool execution

Plugins

Distributable bundles packaging rules, skills, agents, commands, MCP servers, and hooks. Shared via Cursor Marketplace.

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.json
Define a custom plugin manifest

Team Rules

Organization-wide rules managed via dashboard for Teams/Enterprise plans. Take precedence over project rules.

Key points

  • Configured from the Cursor dashboard.
  • Precedence: Team Rules > Project Rules > User Rules.

Examples

cursor.com → Team Rules
Set AI rules for the entire team

Auto-review

A new Cursor 3.6 run mode that lets agents work with fewer approval prompts and more secure execution. Applies to Shell, MCP, and Fetch tool calls.

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 Mode
Switch the run mode to Auto-review

CLI

curl https://cursor.com/install -fsS | bash

One-line installer for the Cursor CLI (binary name: agent) on macOS, Linux, and WSL. It places the binary in ~/.local/bin.

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 | bash
Install the Cursor CLI on macOS, Linux, or WSL
agent --version
Check the installed version

agent

Starts an interactive session with the Cursor agent in your terminal. Pass a prompt as an argument to launch with an initial instruction.

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

agent
Start an interactive session
agent "refactor the auth module to use JWT tokens"
Start a session with an initial prompt

agent ls

Opens a picker of your previous chats so you can resume one. Since the July 6, 2026 release it shows chats across all workspaces by default.

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 ls
Pick a previous chat from the list and resume it

agent resume

Resumes your most recent conversation. Pass a thread id to open a specific one instead.

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 resume
Resume the most recent conversation
agent --resume="chat-id-here"
Resume a specific conversation by thread id

agent update

Updates the Cursor CLI in place to the latest version. Background auto-update also runs by default.

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 update
Update the Cursor CLI to the latest version
agent --version
Check the installed version

agent login

Authenticates the CLI with your Cursor account. Since the July 6, 2026 release you can press q for a QR code and finish authentication from a phone, even over SSH.

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 login
Authenticate the CLI with your Cursor account
export CURSOR_API_KEY=your_api_key_here
Set an API key so scripts can use the CLI

agent mcp list

Lists your configured MCP servers without opening an interactive session, so scripts can check connectivity.

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 list
List configured MCP servers and their connection state

agent plugin marketplace

Subcommands for managing plugin marketplaces from the shell, so scripts can register, refresh, and remove them without an interactive session (July 13, 2026 release).

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-plugins
Register a marketplace by git URL
agent plugin marketplace list --format json
List registered marketplaces as JSON

agent bedrock

Configures AWS Bedrock with your own credentials, using access keys or a team IAM role (February 2026 release).

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 bedrock
Configure AWS Bedrock credentials

agent worker

Starts and manages self-hosted workers for cloud agents. The August 11, 2026 release added pool membership and idle-release controls.

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-fleet
Start a worker that joins a named pool
agent worker --idle-release-timeout 0
Keep a worker running by disabling idle release

agent acp

Runs the Cursor CLI as an Agent Client Protocol (ACP) server over stdio with JSON-RPC messaging, so editors and other clients can drive it.

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 acp
Run the CLI as an ACP server over stdio

--print

Runs the agent in non-interactive mode and prints the response to stdout, for use in scripts and CI pipelines.

Key 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 answer
agent -p --force "Add JSDoc comments across src"
Run a file-modifying task from a script

--output-format

Selects the output format for headless runs: text, json, or stream-json.

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 JSON
agent -p --output-format stream-json --stream-partial-output "Summarize the project structure"
Stream progress incrementally

--model

Selects the model to use, in both interactive and headless runs.

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

Sets the startup mode. It accepts plan and ask, switching between the same Agent / Plan / Ask modes as the editor.

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 implementing
agent --mode=ask "Where is authentication implemented?"
Explore read-only in Ask mode

--force

Auto-approves the agent's actions without approval prompts. Required to actually modify files in headless runs.

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

Trusts the workspace up front so the trust dialog is skipped. Since the July 20, 2026 release it works in interactive sessions too.

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

Runs the agent in a new Git worktree instead of editing your current checkout directly. The short form is -w.

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 name
agent --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

Adds directories at launch to start a multi-root session. Repeat the flag for more directories (June 29, 2026 release).

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

Loads local plugin directories without going through a marketplace (May 7, 2026 release).

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-plugin
Start with a local plugin under development

--sandbox

Sets the command-execution sandbox mode, accepting enabled or disabled.

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 enabled
Start a session with the sandbox enabled

--auto-review

Enables the Auto-review run mode in the CLI — a middle ground between the allowlist and Run Everything that keeps the agent moving with fewer approval prompts (June 22, 2026 release).

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

Adds custom HTTP headers to the CLI's requests, curl-style and repeatable (February 2026 release).

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

A CLI slash command that tracks a durable goal (August 11, 2026 release), continuing it across idle and headless runs.

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

/goal
Set a durable goal that continues across idle and headless runs

/usage

A slash command that shows your account's usage and spend inside the CLI, substantially expanded in the July 13, 2026 release.

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

/usage
Check usage meters, spend, and the billing-cycle reset date

/model

A slash command that opens the CLI model picker, with fuzzy search, typeahead, and per-model shortcuts.

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

/model
Open the model picker and switch models
/model sonnet
Open the model picker pre-filtered

/rewind

A CLI timeline for undoing agent turns. The June 22, 2026 release turned it on by default, so it no longer needs enabling in /config.

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

/rewind
Undo agent turns and restore an earlier state

/fork

A CLI slash command that branches the current conversation into a copy so you can continue down a different path (June 9, 2026 release).

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

/fork
Duplicate the current conversation to try a different approach

/context

A CLI slash command that visualizes what is consuming the context window, broken down by category (June 9, 2026 release).

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

/context
Inspect what is consuming the context window

/mcp

A pager for managing MCP servers inside the CLI, revamped into a per-server detail view in the May 14, 2026 release.

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

/mcp
List, log into, and enable MCP servers from inside the CLI

/plugin

A slash command for browsing, installing, and removing plugins inside the CLI at user or project scope (March 2026 release).

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

/plugin
Search for plugins and install or remove them
/plugin marketplace add https://github.com/acme/cursor-plugins
Add a marketplace by git URL

/changes

A unified view for reviewing changes inside the CLI, also opened with Ctrl+R (February 2026 release).

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

/changes
Review this session's changes inside the CLI

/skills

A slash command for browsing and running the skills available in the CLI, alongside browsers for rules and custom commands.

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

/skills
Browse the available skills and run one

/logs

A CLI slash command that shows the path to this session's debug log and copies it to the clipboard (June 9, 2026 release).

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

/logs
Show and copy the debug log path

/copy

A CLI slash command for copying past messages. The June 22, 2026 release added picking a single step out of a multi-step reply.

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

/copy
Copy a past message or response to the clipboard

/vim

A CLI slash command that turns on inline Vim editing in the prompt. Since the June 22, 2026 release it can be triggered from any position, not just an empty prompt.

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

/vim
Enable Vim editing inside the prompt

/save-workspace

A CLI slash command that names and saves a set of directories (June 22, 2026 release), so you can reproduce work that spans several repositories.

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-workspace
Name and save the current multi-directory setup
/load-workspace
Load a saved workspace

& <prompt>

CLI syntax for handing a live conversation off to a Cloud Agent by prefixing your message with an ampersand, so it keeps running while you are away.

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 tests
Hand the conversation off to a Cloud Agent to keep running

~/.cursor/cli-config.json

The Cursor CLI settings file. It holds model, permission, and runtime preferences, and can be edited interactively from inside a session.

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

/config
Open the CLI settings editor to change models or permissions

autoAcceptWebSearch

A permission key in cli-config.json that lets the agent run web searches without pausing for approval each time (July 13, 2026 release). It is off by default.

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 Search
Enable auto-accept for web searches from the settings panel
"autoAcceptWebSearch": true
Enable it directly in cli-config.json

agent persist

Starts a persistent session (August 26, 2026 release), so the agent keeps running after you close the terminal or lose the connection.

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 persist
Start a persistent session that survives disconnects
agent persist attach
Reconnect to a running persistent session

/detach

A CLI slash command that leaves a persistent session (August 26, 2026 release), disconnecting you while the agent keeps running.

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

/detach
Disconnect from the session while the agent keeps running

Origin CLI

curl -fsSL https://downloads.cursor.com/origin/install.sh | sh

One-line installer for the Origin CLI (binary name: origin) on macOS, Linux, and Windows (WSL). It places the binary at ~/.local/bin/origin. This is a separate binary from the Cursor Agent CLI (agent).

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 | sh
Install the Origin CLI on macOS, Linux, or Windows (WSL)
origin --version
Check the installed version

origin auth login

Signs in to Origin. Completing the browser flow also configures the git credential helper, so git push and git pull against Origin remotes work without further setup.

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 login
Sign in through the browser and configure git authentication
origin auth status
Show the current authentication method and account

origin repo create

Creates, lists, views, clones, and deletes Origin repositories. Target a repository with org/name; a name without a slash is created in your own account namespace.

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-project
Create a repository in your own namespace
origin repo clone acme/checkout
Clone an Origin repository over HTTPS
origin repo create-mirrored acme/checkout
Create an Origin mirror of a GitHub repository

origin pr create

Creates, reviews, and merges pull requests on Origin repositories. The target is inferred from your current branch, and you can also pass a number or a branch name.

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 branch
origin pr list --mine
List the pull requests you authored
origin pr review --approve
File an approving review on a pull request

origin ruleset list

Views the merge-time and push-time rulesets configured for a repository. The alias is rs.

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 list
List the rulesets configured for a repository
origin rs list
The rs alias does the same thing

origin ssh-key list

Manages the SSH public keys registered with your Origin account, including adding, listing, and deleting them.

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.pub
Register a public key with your Origin account
origin ssh-key list
List the SSH public keys on your account

origin api

Makes an authenticated request to the Origin REST API at api.cursor.com/v1/origin for anything without a first-class command. The flags mirror gh 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/checkout
Fetch repository details from the Origin REST API
origin api /repos/acme/checkout -q .defaultBranch
Pull a single field out of the response with a jq expression

origin completion

Prints a bash or zsh tab-completion script. Append it to your shell config and flags that take a branch will complete local branch names.

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 >> ~/.zshrc
Append the completion script to zsh
origin --help
Show the command list and global options

origin config get-channel

Manages Origin CLI configuration. Today it covers reading and switching the release channel used for updates.

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-channel
Show the current release channel
origin config set-channel latest
Switch to the early-release channel

origin update

Updates the Origin CLI to the current release on your channel.

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 update
Update the Origin CLI to the latest build on your channel

Version Updates

Major Cursor version updates and new features.

Self-hosted machines for cloud agents (September 2, 2026)

Source

  • 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)

Source

  • agent persist starts a persistent session: the agent keeps running after you close the terminal or lose the connection, and /detach disconnects you while the work continues
  • agent persist attach reconnects to a running session, agent persist list and agent persist stop manage sessions, and agent persist --resume continues an existing chat as a persistent session
  • Workers started with --computer-use --share-desktop now share a managed desktop instead of a dedicated session
  • 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
Start from scratch, without a repo (August 27, 2026)

Source

  • 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)
Cloud Agents and Cursor Harness Improvements (August 19, 2026)

Source

  • 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
  • /goal gives 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 /loop for 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
Origin Code Hosting (August 17, 2026)

Source

  • 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
Cloud Agents Start 3x Faster with Builds (August 13, 2026)

Source

  • 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
CLI: /goal and self-hosted worker controls (August 11, 2026)

Source

  • 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 0 keeps 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 /model and editing a model's parameters selects it; a headless --model that 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
Google Workspace Plugins (August 3, 2026)

Source

  • 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, now on iPad (July 29, 2026)

Source

  • 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
Cursor Start (July 28, 2026)

Source

  • Introduces "Cursor Start," a new pricing plan for the Indian market at ₹649/month
Cursor Router (July 22, 2026)

Source

  • 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
CLI: --trust in interactive sessions (July 20, 2026)

Source

  • --trust is 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 /model without a restart
  • The git branch watcher backs off exponentially instead of pegging a CPU core after exhausting the inotify watch limit on Linux
Improvements to Cursor in Slack (July 17, 2026)

Source

  • 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
CLI: shell marketplace management and a richer /usage (July 13, 2026)

Source

  • agent plugin marketplace add|list|update|remove manages plugin marketplaces from the shell, with --git-ref to pin a branch, tag, or commit and --format json for scripts
  • /usage shows 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 /config or set autoAcceptWebSearch in 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.json run only after the workspace is trusted
Cursor 3.11: Side Chats and Conversation Search (July 10, 2026)

Source

  • 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 with Cmd 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
CLI: model shortcuts and QR-code login (July 6, 2026)

Source

  • Shortcuts like /opus and /composer jump straight to a model, each family remembers your last choice, and /fast toggles Fast when the model supports it
  • Fresh installs default to Auto model routing; existing choices are unchanged
  • Press q during agent login to reveal a QR code for the login URL and finish authentication from a phone, even over SSH
  • agent ls, agent --resume, and /resume open All chats across workspaces by default, with Left/Right to switch to This workspace
  • Setting user-invocable: false in a skill's SKILL.md frontmatter 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
MCPs and Organizations in Team Marketplaces (June 30, 2026)

Source

  • 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
Cursor Mobile App for iOS (June 29, 2026)

Source

  • 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
CLI: multi-root sessions with --add-dir (June 29, 2026)

Source

  • Repeat --add-dir to add directories at launch, including alongside --workspace
  • /add-dir refreshes 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 /mcp and agent mcp list when their tools or instructions were available
  • AGENT_CLI_CREDENTIAL_STORE=file stores 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
Cursor 3.9: Customize Cursor (June 22, 2026)

Source

  • 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
CLI: Auto-review run mode and named workspaces (June 22, 2026)

Source

  • 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 in permissions.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
  • /rewind is on by default and no longer needs enabling in /config, and /vim can be triggered from any position in the prompt
  • /copy gains a per-step picker for multi-step replies and can include your own messages, and /logs writes 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 start waits for the bridge before reporting ready, and workers keep a stable logical ID per authenticated user
Cursor 3.8: Improvements to Cursor Automations (June 18, 2026)

Source

  • Adds the /automate skill 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
Cursor 3.7: Cloud Environment Setup and Cloud Subagents (June 17, 2026)

Source

  • Adds /in-cloud to spin up a cloud subagent in its own VM for the next task, keeping the local session free
  • Adds /babysit so a cloud subagent can iterate on a PR remotely to prepare it for merge, with handoff between local and cloud sessions
Bugbot 3x Faster, Cheaper, and More Accurate (June 10, 2026)

Source

  • 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 /review before pushing code, or use /review-bugbot and /review-security directly
CLI: /fork, /update, and /context (June 9, 2026)

Source

  • /fork branches the current conversation into a copy so you can continue down a different path (aliases /branch and /duplicate)
  • /update updates the CLI in place from inside the session
  • /context visualizes what is consuming the context window by category, and /logs shows 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 .envrc automatically, and long shell output truncates from the top so you see the latest lines
Cursor 3.7: Design Mode Improvements (June 5, 2026)

Source

  • 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
Cursor 3.7: Canvas Design Mode and Context Usage Report (June 4, 2026)

Source

  • 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
Organizations for Cursor Enterprise (June 3, 2026)

Source

  • 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
Cursor 3.6: Auto-review Run Mode (May 29, 2026)

Source

  • 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
Cursor 3.5: Shared Canvases and /loop Skill (May 20, 2026)

Source

  • Shared Canvases let you share a link to a live snapshot of a canvas so teammates can open it directly in their browser
  • New /loop skill repeatedly runs a prompt on a local schedule (e.g. 'check deploy status every 5 minutes', 'work on this feature until tests pass')
  • If /loop is given no interval, the agent decides when or what event should trigger the next run
Improvements to Cursor Automations (May 20, 2026)

Source

  • 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
CLI: /summarize rename and multi-root workers (May 20, 2026)

Source

  • /compress is renamed /summarize to match the IDE, with /compact and /compress kept as aliases
  • Composer 2.5 becomes the default model for new CLI sessions
  • Point the enabled_plugins key in ~/.cursor/settings.json at local plugin folders, no marketplace needed
  • Self-hosted workers span multiple repositories with repeatable --worker-dir flags and keep a stable identity
  • Rewinding restores that turn's image attachments, and logging in or toggling a server from /mcp updates the agent's available tools immediately
Cursor in Jira (May 19, 2026)

Source

  • Assign work items to Cursor or mention @Cursor in 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
Composer 2.5 (May 18, 2026)

Source

  • 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
CLI: revamped /mcp detail view (May 14, 2026)

Source

  • /mcp becomes 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 $EDITOR so you can compose there and drop the result back into the prompt bar
  • Nested rules and skills: .cursor/rules and .cursor/skills in subdirectories are discovered everywhere, matching the IDE
  • HTTPS_PROXY is honored on the streaming connection, completing corporate proxy support end to end
Full-screen Tabs and Compact Chats (v3.4) (May 13, 2026)

Source

  • New Cmd/Ctrl+Shift+M shortcut 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
Development environments for cloud agents (May 13, 2026)

Source

  • 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
Cursor in Microsoft Teams (May 11, 2026)

Source

  • Mention @Cursor in 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
Bugbot Effort Levels (May 11, 2026)

Source

  • 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
Cursor 3.3 (May 7, 2026)

Source

  • 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
  • /multitask slash 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
CLI: plugin marketplaces and --plugin-dir (May 7, 2026)

Source

  • 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-dir loads local plugin directories, and plugins imported from Claude Code appear alongside native ones
  • /model typeahead: type something like /model sonnet and the picker opens pre-filtered without submitting your prompt
  • /mcp groups 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
Context Usage Breakdown (May 6, 2026)

Source

  • 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
Model Controls, Spend Management, and Usage Analytics (May 4, 2026)

Source

  • 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)
Team Marketplace Updates (May 1, 2026)

Source

  • 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
Cursor Security Review (April 30, 2026)

Source

  • 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
Cursor SDK (April 29, 2026)

Source

  • import { Agent } from '@cursor/sdk' enables developers to build agents programmatically with minimal setup
  • npm install @cursor/sdk provides 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
Multitask, Worktrees, and Multi-root Workspaces (April 24, 2026)

Source

  • /multitask dispatches 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
Canvases (April 15, 2026)

Source

  • Canvases let 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
CLI Debug Mode & /btw Support (April 14, 2026)

Source

  • /debug enters Debug Mode to pinpoint root causes via hypotheses and inserted log statements
  • /btw lets you ask a side question without derailing the agent's current task
  • /config opens an interactive CLI panel to adjust model choices, defaults, and runtime preferences
  • /statusline customizes 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
Cursor 3.1 (April 13, 2026)

Source

  • Tiled Layout splits the Agents Window into panes so multiple agents can run and be managed in parallel
  • Ctrl+M captures 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
Bugbot Learned Rules & MCP Support (April 8, 2026)

Source

  • Learned Rules let Bugbot self-improve in real time from pull-request feedback
  • Bugbot MCP Support gives reviews access to MCP servers for additional context
  • Fix All applies multiple Bugbot fixes in a single operation
  • Improvements to Bugbot Autofix push the resolution rate to 78%
Cursor 3.0 (April 2, 2026)

Source

  • Agents Window runs multiple agents in parallel across local, worktree, cloud, and remote SSH environments
  • Design Mode annotates and targets UI elements directly in the browser for precise agent feedback
  • Agent Tabs displays multiple chats side-by-side or in a grid layout within the editor
  • /worktree command for isolated git worktree execution, /best-of-n for parallel multi-model comparison
  • New Await tool for agents, enhanced screenshot-based browser automation
CLI: /rewind and interactive /config (April 2026)

Source

  • /rewind adds an interactive timeline for undoing agent turns, with per-turn file diffs, conversation-only restore, and /undo and /restore aliases
  • /config becomes a full settings editor inside the CLI, replacing hand-edited JSON, including a version and account page
  • Point statusLine at your own command to render its output, with live token usage data, in the prompt footer
  • /btw asks 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 Agents (March 25, 2026)

Source

  • Self-hosted Cloud Agents keep 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
Composer 2 (March 19, 2026)

Source

  • New Composer 2 model 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)
Marketplace Expansion (March 11, 2026)

Source

  • 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
Automations (March 5, 2026)

Source

  • Automations runs 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
JetBrains Support (March 4, 2026)

Source

  • Use Cursor AI features inside IntelliJ IDEA, PyCharm, and WebStorm
  • Integrated through Agent Client Protocol
  • Supports OpenAI, Anthropic, Google, and Cursor models
Cursor 2.6 (March 3, 2026)

Source

  • MCP Apps embeds interactive UI from Amplitude, Figma, tldraw, and more inside Cursor
  • Team Marketplaces allows 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
CLI: subagents and plugins (March 2026)

Source

  • Subagents arrive in the CLI: parallel agents execute locally in interactive, headless, and editor sessions, inheriting your credentials, rules, and approval policy
  • /plugin browses 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.json support: 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 through HTTPS_PROXY for corporate networks
Bugbot Autofix (February 26, 2026)

Source

  • 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
Cursor 2.5 (February 2026)

Source

  • Plugins and Cursor Marketplace for installing and managing extensions
  • Async Subagents supports background execution and nesting of subagents
  • Long-Running Agents becomes available as a research preview
  • Sandbox Network Controls adds domain-level network access controls
  • CLI improvements: Plan Mode menu and terminal Mermaid ASCII rendering
CLI: git worktrees and Bedrock support (February 2026)

Source

  • --worktree and -w run the agent in an isolated Git worktree, with --worktree-base for the base branch, and the sandbox fully understands worktree layouts
  • --yolo enables fully autonomous runs that auto-approve trust, MCP, and command approvals consistently
  • agent bedrock configures access keys or a team IAM role so you can use AWS Bedrock with your own credentials
  • Adds the unified /changes review UI (Ctrl+R), with a Session tab showing only this session's edits and o/O to open diffs in your editor
  • -H/--header is repeatable curl-style, and per-turn input, output, and cache token totals plus a request_id are added to stream-json output
  • Sandbox policy files ~/.cursor/sandbox.json and .cursor/sandbox.json are 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.