The three run modes
In Cursor's desktop app, go to Settings > Agents > Approvals & Execution. Cursor's docs list three modes (run modes):
| Mode | What runs without asking | Sandbox | Classifier |
|---|---|---|---|
| Auto-review | Allowlisted calls run immediately. Other shell commands run in the sandbox when possible. Anything that cannot be sandboxed goes to the classifier | Yes, for shell commands | Yes |
| Allowlist | Actions on your allowlist. With sandboxing on, supported shell commands can run in the sandbox | Optional | No |
| Run Everything | Every tool call | No | No |
The docs say to use Run Everything when "You accept the risk and want zero prompts." The older "YOLO mode" name is what people still search for, and it maps to this mode.
Why Run Everything is the risky one
There is no sandbox and no classifier between a bad command and your machine. Shell commands, MCP tools and web fetches all run as you, with your files, tokens and logins. A prompt injection or a bad guess has nothing to stop it, other than whatever separate protections you have switched on. Use this mode only in a throwaway VM or container with no real credentials.
What about Auto-review?
It is the recommended default, and a good one: known-safe calls run, shell commands run in a sandbox when they can, and a classifier reviews the rest. Cursor's own docs add a warning box titled "Auto-review is not a security boundary." The classifier can allow a call you would have blocked.
Two details are worth knowing:
- Allowlisted calls run outside the sandbox. One broad allowlist entry can undo the sandbox for everything it covers, so keep the list short and specific.
- If a sandboxed command fails on a restriction, the agent can rerun it outside the sandbox. The classifier reviews that rerun.
How to set it up safely
- Pick Auto-review or Allowlist. Do not leave Run Everything on as a convenience.
- Keep the sandbox on. By default, sandboxed terminal commands can read and write inside the workspace, protected paths such as
.git/configand.git/hooksstay protected, and network is blocked until your network mode andsandbox.jsonopen it. - Check the separate protections. Cursor lists Browser Protection, File-Deletion Protection and External-File Protection, which can require approval even when a mode would otherwise run automatically. Make sure they are on.
- Tell Auto-review what to double-check. In
.cursor/permissions.json,block_instructionsare plain-English sentences that steer the classifier toward asking you. From Cursor's docs:
{
"autoRun": {
"allow_instructions": [],
"block_instructions": [
"Every AWS CLI command should go through approval first.",
"Every command that modifies Kubernetes resources should go through approval first."
]
}
}- Limit what it can read. From Cursor 3.23, Read access can be set to Workspace, so reads outside the workspace ask first. The default is System, and the setting is hidden in Run Everything.
- Add a
.cursorignore, and know its limit. It blocks Agent, Tab and @-mention access to the paths you list. Cursor's docs say the terminal and MCP server tools cannot be blocked by it, and that complete protection is not guaranteed.
**/.env
**/.env.*
**/*.pem
**/*.keyCursor already ignores .env* files by default, along with entries from your .gitignore. The file is still worth having for keys and secret folders that are not covered.
- Review MCP servers. All MCP connections need your approval, and each tool call still needs approval unless you allowlist it. Run Everything skips that, so see Is an MCP server safe to install?.
Cloud Agents do not use run modes. They run on their own dedicated machine, so the agent never asks you to approve an action.
Quick follow-ups
Did Cursor remove YOLO mode?
The old name is gone from the settings, but the behavior is not. Run Everything runs every tool call with no sandbox and no classifier. The default is now Auto-review.
Is Auto-review safe enough?
It is a sensible default, not a wall. Cursor's own docs say it is not a security boundary and that the classifier can make mistakes. Keep the sandbox on and keep real secrets out of reach.
Does .cursorignore stop the agent from reading my .env?
It blocks Agent, Tab and @-mention access to ignored paths, but Cursor's docs say the terminal and MCP server tools cannot be blocked by it. Treat it as a context filter, not a lock.
Sources
- Cursor: Run modes
- Cursor: Agent security
- Cursor: Ignore file
- Cursor: permissions.json reference
- Cursor changelog: Auto-review run mode
- CyBeDefend: Cursor YOLO mode and Auto-run in 2026 (third-party history of the old names)
See also the glossary and the other questions.
