The pitch for writing agent permissions down is sound and barely needs arguing: approving the same safe command on reflex is not safety, because the reflex approves the dangerous command with the same keystroke. Replacing the prompt with a committed allow list, a deny rule and a sandbox is the right move. But the value of that move depends entirely on what each of the three actually guarantees, and reading one vendor's reference end to end turns up three places where the guarantee is weaker than the mental model — one of them weaker in a way the documentation does not state outright.
The three mechanisms, as specified
Permissions live in two files with two different names: a project file at <project>/.cursor/cli.json, and a global one at ~/.cursor/cli-config.json. That asymmetry is worth noting before anyone copies a path from a tutorial; only permissions can be set at project level, and every other setting is global. Both hold a permissions object with two string arrays, allow and deny, whose entries are exact strings of the form Type(pattern).
There are exactly five rule types: shell commands matched on the first token of the command line, file reads, file writes, outbound fetches matched by domain, and MCP tools matched as server-and-tool. Globs use the usual three wildcards, relative paths are scoped to the workspace and absolute paths can reach outside it. The reference marks two patterns with an explicit "use with caution": allowing fetches from any domain, and allowing all MCP tools.
Three approval modes exist. In configuration they are named allowlist, auto-review and unrestricted; the desktop interface calls them Allowlist, Auto-review and Run Everything. Allowlist runs what is on the list and asks about everything else. Auto-review runs allowlisted calls immediately, sandboxes other shell commands where it can, and sends the rest to a classifier. Run Everything, in the reference's own words, "runs every call without checks."
The deny rule whose scope is not stated
The reference says plainly that deny rules take precedence over allow rules, with no mode qualifier attached. Read alone, that is the guarantee you want: a denied command never runs, whatever else is configured.
But nothing states that deny rules are evaluated in the most permissive mode, and one adjacent sentence points the other way: read-access restrictions, it says, do not apply in Run Everything, "which runs every call without checks." If that clause means what it appears to mean, the mode bypasses the rule layer rather than defaulting it open — and a deny rule written to stop a push would be inert for anyone who switched modes to get through a long task. The documentation neither confirms nor denies this, which is the actual finding: the single property a deny rule exists to have — that it holds unconditionally — is the one the reference does not state.
That gap has a practical consequence. If you cannot establish that deny survives every mode, then the mode itself is the control and the deny rule is a convenience. Treat "which mode am I in" as the security question and the rule file as secondary, until you have tested the combination yourself on your own version.
The sandbox that can rerun outside itself
The sandbox is real and better specified than most: it uses the platform's own isolation on each OS, restricts writes to the workspace, protects a named set of sensitive paths including version-control configuration and hooks, and blocks network access by default before reopening it according to a network mode and a separate sandbox configuration file.
Three limitations are stated outright and all three matter more than the feature.
First, some commands need full system access and bypass the sandbox entirely; the tool says so and asks for approval instead. So the sandbox is not a universal envelope, it is a best-effort one with a documented escape hatch back to the prompt you were trying to eliminate.
Second — and this is the one to internalise — if a sandboxed command fails on a sandbox restriction, the agent can rerun it outside the sandbox. A sandbox whose failure mode is "try again without the sandbox" is not a boundary; it is a hint with a retry. A command that would be blocked is therefore not reliably blocked, it is merely delayed by one failed attempt, and the signal that should have been a stop is instead the trigger for the escalation.
Third, reads are not restricted by default at all: the default read boundary is the whole system, and the agent can read files outside the workspace without approval. Sandboxed commands can also write to the host's temporary directories. Anyone who assumed the sandbox meant "the agent cannot see my home directory" has it backwards — it fences writes, not reads, unless you change the boundary.
The default network posture deserves the same scrutiny. Blocked-by-default sounds strong until you read that the default mode reopens roughly ninety domains, including the major package registries and code-hosting sites. That is a sensible developer-ergonomics choice and it is also a perfectly serviceable exfiltration path. It is the right default; it is not a containment story.
The default nobody documents
The question most worth answering — which mode a fresh install starts in — is not answered anywhere in the reference. The closest the documentation comes is a changelog line noting that Auto-review shipped as the recommended default, and a guidance sentence calling it the safest useful setup for most people. Neither says what a new account actually gets.
That is a familiar and consequential shape: a product with a well-specified policy language whose shipped starting state is left to inference. It means no one can tell from the documentation whether an untouched install is asking, classifying, or running everything, and a team's security posture on day one is therefore unknown rather than chosen. Check it on a real install and write the answer down; it is a one-line observation that no amount of reading will substitute for.
Two smaller traps belong with it. There is a second, differently-named permissions file used by the classifier mode, holding plain-English allow and block instructions rather than typed rules — easy to confuse with the real rule file, and the reference does not say whether the command-line tool reads it. And whether project-level permissions merge with the global file or replace it is simply not documented, which makes a two-file setup's effective policy a matter of experiment.
The vendor is, to its credit, candid about the weakest link: the classifier mode "is not a security boundary" and "can make mistakes." That honesty is the right frame for all of it. These are ergonomics features that reduce how often a human is asked, built on a policy language that is genuinely expressive. They are not a sandbox in the security sense, and the documentation does not claim otherwise — but the shape of the feature invites readers to assume it is.
Review checklist
Determine, by experiment on your own version, whether a deny rule is still evaluated in the most permissive mode. Until you have, treat the mode as the control.
Decide what happens when a sandboxed command fails on a restriction. The documented behaviour is that the agent may rerun it unsandboxed; if that is unacceptable, the sandbox is not your boundary and you need another one.
Check your read boundary. The default lets the agent read outside the workspace, which is probably not what you assumed from the word "sandbox."
Look at the default allowed-domain list before treating network restriction as containment. Package registries are an egress path.
Record which approval mode a fresh install lands in. It is not in the documentation.
If you keep both a project and a global permission file, test whether they merge or one wins. That is also not documented.
Put the command that must never run where you have proven it cannot run, not merely where it is listed as denied.
Keep the typed rule file and the plain-English classifier instructions straight; they are different files with different semantics.