All Agent Engineering

Choose a Cursor Agent run mode and record its approval boundary

Match Auto-review, Allowlist or Run Everything to your tasks, then record what runs, what still asks and how you review. Docs read only.

AINavWritten / Updated
On this page

At a glance

Run Modes control how the agent runs tool calls and when Cursor interrupts you for approval; they apply to shell commands, MCP tools and Fetch calls from the local agent. The official page lists three modes, Auto-review, Allowlist and Run Everything, and records that Ask Every Time was deprecated in version 3.5 so new users cannot select it. This guide turns them into a decision sheet you fill in field by field: confirm where each call happens, state what lets it through, list what still protects you outside the sandbox, and name who reviews. The page itself says the Auto-review classifier can make mistakes, so it is not a security boundary.

Runtime and applicability

Article type
Engineering practice
Verified
Applies to
  • Cursor Choose a Cursor Agent run mode and record its approval boundary

Execution locations and responsibilities

  • Cursor Agent execution environment and host Use the workflow below to distinguish responsibilities of the caller, runtime, and external actions.
Engineering workflow order
Engineering workflow order1. 1. List the calls this task will make → 2. 2. Confirm the subject and the current mode → 3. 3. Pick a mode by risk → 4. 4. Write the allow and block instructions → 5. 5. Fix the sandbox's actual reach → 6. 6. List the protections that still prompt → 7. 7. Write the review action and stop condition. Arrows show the order of checks in the guide. Follow each step’s prerequisites, branches and stop conditions; unexecuted steps are not completed work.1. 1. List the calls this task will make2. 2. Confirm the subject and the current mode3. 3. Pick a mode by risk4. 4. Write the allow and block instructions5. 5. Fix the sandbox's actual reach6. 6. List the protections that still prompt7. 7. Write the review action and stop condition

Arrows show the order of checks in the guide. Follow each step’s prerequisites, branches and stop conditions; unexecuted steps are not completed work.

When to use

  • Under Auto-review, allowlisted shell, Fetch and MCP calls run outside the sandbox. Other shell commands run in the sandbox when they can. Commands that need more access, sandboxed commands that fail on a sandbox restriction, and other calls go to the classifier on the Cursor backend. To judge a call, the classifier may make read-only ReadFile, Grep, Glob and ListDir calls on your machine, for example to read the script a command runs.

When not to use

  • Auto-review is not a security boundary: the page says the classifier can allow a call you would have blocked or block one you would have allowed, so it cannot replace human review.
  • Run Everything has neither sandbox nor classifier, and the read access setting is hidden in that mode, so it does not suit work that needs a read boundary.
  • A team-level Auto-review configuration takes priority over user-level and project-level permissions.json; changing local files will not change behavior and the request has to go to an administrator.
  • The sandbox is a layer on top of Run Modes for shell commands: it controls where a supported command runs, not whether the mode consults the classifier, so one cannot stand in for the other.
  • If the models the classifier needs are blocked by model access controls, Auto-review may be unavailable and members fall back to Allowlist; record this as an environment prerequisite rather than an assumed capability.

Prerequisites and input

  • You can list the concrete actions this task will trigger: file edits, terminal commands, MCP tools or Fetch calls, and whether any needs network access.
  • You can open Settings > Agents > Approvals & Execution to see the current mode and read access setting, or read cli-config.json and the permissions configuration when working from the CLI.
  • You know whether this is a local agent or a Cloud Agent: the page states Cloud Agents run inside their own dedicated machine and do not use Run Modes.
  • Read Access requires Cursor 3.23 or later. For Linux sandboxing check Kernel 6.2, Landlock v3, CONFIG_SECURITY_LANDLOCK=y and unprivileged user namespaces; if unavailable, record the documented per-call approval fallback instead of claiming sandbox isolation.

Engineering checks

Where a call runs — Under Auto-review, allowlisted shell, Fetch and MCP calls run outside the sandbox. Other shell commands run in the sandbox when they can. Commands that need more access, sandboxed commands that fail on a sandbox restriction, and other calls go to the classifier on the Cursor backend. To judge a call, the classifier may make read-only ReadFile, Grep, Glob and ListDir calls on your machine, for example to read the script a command runs.

What lets a call through — Allowlist, sandbox limits and classifier stack rather than forming one permission system. permissions.json decides which calls run automatically and which get reviewed; sandbox.json decides what a sandboxed command can reach, such as network domains and extra readable or writable paths. They do different jobs. When a team defines a global Auto-review configuration in the dashboard, the user-level and project-level files are ignored.

What remains outside the sandbox — Browser Protection, File-Deletion Protection and External-File Protection can still require approval even when a mode would run automatically. The read access boundary, System or Workspace, separately governs whether the agent may read files outside the workspace. When a platform does not meet the sandbox requirements, Cursor falls back to asking for approval before running commands.

1. 1. List the calls this task will make

Where: your own task description. Input: the edits, terminal commands and network requests you plan. Action: group them as file edits, shell commands, MCP tools and Fetch calls, and mark which need network access or write outside the workspace. Completion check: each group holds at least one concrete command or tool name rather than a phrase like "change the code". Stop condition: if you cannot say what one group will touch, do not pick a mode yet; narrow the task first.

2. 2. Confirm the subject and the current mode

Where: Settings > Agents > Approvals & Execution. Input: the list from step 1. Action: record the mode currently selected and confirm this is a local agent. Completion check: the sheet states "local plus current mode" and notes whether the run is a Cloud Agent. Stop condition: for a Cloud Agent, stop filling in Run Modes and switch to the cloud environment's isolation, egress and pull-request review items instead.

3. 3. Pick a mode by risk

Where: the same settings page. Input: the highest-risk action on your list. Action: choose Auto-review when you want fewer prompts while keeping a review before higher-risk calls; Allowlist when you repeat a small set of trusted actions and want deterministic behavior, with sandboxing optional; Run Everything only when you accept the risk and want zero prompts. If you need every action to ask, use Allowlist with an empty allowlist. Completion check: the reason names a specific command, such as "every AWS CLI command goes through approval first". Stop condition: before choosing Run Everything, confirm you accept no sandbox, no classifier and a hidden read access setting in that mode; otherwise step back one tier.

4. 4. Write the allow and block instructions

Where: configuration for the chosen mode. Input: the mode and action inventory. Only Auto-review uses autoRun allow_instructions/block_instructions in permissions.json; record user/project merging and team overrides. These steer classifier preferences and cannot guarantee that every command reaches approval. For Allowlist configure a small explicit set and record whether its optional sandbox is enabled. Run Everything uses neither a sandbox nor classifier, so skip Auto-review guidance and sandbox settings; do not choose it when the task requires individual human approval. Completion: each mode has a record of controls actually applicable to it. Stop and change the control plan if observed behavior does not meet the task requirement.

5. 5. Fix the sandbox's actual reach

Where: applicable sandbox settings and sandbox.json. Input: network and additional path needs plus platform prerequisites. Check the sandbox only for Auto-review or sandbox-enabled Allowlist; skip it for Run Everything. Record allowlist-only, allowlist-plus-defaults or allow-all networking and the user/project/team scope. A classifier can permit an out-of-sandbox retry, so outside-network-scope access is not guaranteed to require manual approval. Check the Read Access version and every Linux prerequisite before relying on them. Completion: the mode, platform and reachability record agree. Stop if mandatory approval is required but only classifier preference guidance is available.

6. 6. List the protections that still prompt

Where: the same settings page and the platform notes. Input: actions that delete files, drive the browser or write outside the workspace. Action: mark each one against Browser Protection, File-Deletion Protection and External-File Protection; macOS sandboxing needs Cursor v2.0 or later, and Linux depends on the prerequisites above. Completion check: each high-risk action has one verdict: still needs approval, already inside the sandbox, or will not happen this time. Stop condition: when an action fits none of these, treat it as the strictest tier and mark it as an open question.

7. 7. Write the review action and stop condition

Where: the decision record and human review. Input: file changes and external actions as separate outcomes. For edits inspect diffs, paths and check results. For AWS or kubectl actions separately inspect the actual target environment, resources and remote change records; Terraform file diffs alone are insufficient. Keep real target details in private records; this guide supplies no actual account or cluster data. Completion: every action class has its own feasible review. Stop that class when its target or remote effects cannot be established; any locally chosen repeated-block threshold is a work convention, not a product guarantee.

Task example

Unexecuted synthetic walkthrough: for file-only edits in a local demo repository, assess Auto-review and record that block_instructions are classifier guidance, then observe individual decisions. A separate task requiring human approval for remote resource changes must first select and verify controls meeting that requirement; the guidance alone cannot establish a guarantee. Check whether Allowlist excludes those commands and whether optional sandboxing changes the path. Inspect diffs for files and targets plus resource state for remote actions. Run Everything has no classifier or sandbox and is unsuitable for this example’s mandatory-approval condition. Keep any unreviewable action stopped.

Completion checks

  • The sheet names its subject: a local agent, or a Cloud Agent case that does not apply Run Modes.
  • Every high-risk action has both a stated reason it is allowed (allowlist, sandbox, classifier) and a verdict on whether approval still applies.
  • The judgement on whether a team configuration overrides local permissions.json is recorded rather than assumed.
  • Check platform prerequisites for applicable modes: Read Access version, Linux kernel, Landlock v3, CONFIG_SECURITY_LANDLOCK=y and user namespaces. Do not record nonexistent sandbox protection for Run Everything.
  • Each review action is an executable check, and each carries its own stop condition.

Verification scope

Only the official Cursor Run Modes page and its changelog table were read. Cursor was not installed or signed into, no product API was executed, and no tool call or output was actually produced. Mode behavior, defaults and platform prerequisites come from that page; the example is an original illustration.

Sources

All links are official pages; verification dates are listed per source, and links point to the version checked.

  1. Cursor · Cursor documentation: cursor-security

Found an error? Tell us →