- How you use it
- A setting in your project
- What it can do
- writes files
- What's inside
The option
| Option | AConfig · v1.0.0Cursor workspace read-boundary fragment |
|---|---|
| How you use it | A setting in your project |
| What it can do | writes files |
| What's inside |
What this thread does
Do first: set Settings > Agents > Approvals & Execution > Read Access to Workspace. Review execution mode and allowlists before relying on the open folder as a read boundary.
Configure the boundary
1. Open Settings > Agents > Approvals & Execution > Read Access and choose Workspace. The official Run Modes guide, checked 2026-10-28, documents System as the default and requires Cursor 3.23 or later for this setting. 2. Review the Read Allowlist and remove unintended grants. Run Everything hides and bypasses this control. Allowlisted commands can run outside the sandbox; inspect those separately. 3. For a project policy, merge this into .cursor/sandbox.json without overwriting unrelated settings:
{
"readBoundary": "workspace",
"additionalReadPaths": []
}
4. Use supported sandboxed terminal execution. Check the approval card before granting broader access. External MCP servers need their own access controls. 5. Proposed acceptance check, untested: create harmless fixtures in the project and a sibling folder. Ask the agent to read both through file tools and search. Require the sibling read to ask for approval and searches to exclude it. Test terminal access separately; deny escalation.
Diagnostic: the agent reads files above the open folder
The boundary still includes documented Cursor support/configuration paths and system runtime paths; it is not literal access to just one directory. Run Modes, checked 2026-10-28.
.cursorignore helps hide selected files, but the ignore-file documentation, checked 2026-10-28, says terminal and MCP tools can still access ignored code. A prompt or ignore pattern alone does not establish containment.
Public evidence
In report #176490, gschelotto reports parent-folder reads on Cursor 3.27.22. Support member Colin explains the default and the Workspace setting on 2026-10-28: “Opening Cursor on the firmware folder doesn’t limit reads on its own.” Checked 2026-10-28. The reply explains configuration; it does not report a successful retest.
Limits
No boundary or terminal-denial test was run. Platform support, allowlists, configuration overrides and MCP permissions affect actual access. Auto-review guidance is best effort; inspect execution outside the sandbox.
Started from a post by @gschelotto, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.