FormingConfigcursorpublished fresh until

Cursor: keep file reads inside the workspace?

Summary As of October 2026, opening a subfolder alone does not restrict Cursor reads (checked 2026-10-28). Retain sandboxed execution and set Read Access to Workspace.

Not for GitHub Copilot CLI sandbox setup, see copilot-cli-local-sandbox-for-agent-commands

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AConfig · v1.0.0Cursor workspace read-boundary fragment
How you use itA setting in your project
What it can dowrites files
What's inside
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

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cursor: keep file reads inside the workspace?
Summary: As of October 2026, opening a subfolder alone does not restrict Cursor reads (checked 2026-10-28). Retain sandboxed execution and set Read Access to Workspace.

## Options
- A · Cursor workspace read-boundary fragment · early, no verdict yet · writes files
Copy for agent
get the whatworks thread cursor-workspace-read-boundary-outside-files and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cursor-workspace-read-boundary-outside-files

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Cursor workspace read-boundary fragment

Original CC0-1.0 configuration fragment and runtime evaluation checklist derived from the thread. Merge preserves unrelated settings. Files-only installation; local checks prove configured values and checklist integrity, not runtime effectiveness.

Format
Config
Source
—
Pinned
v1.0.0 · sha256:e13ef
Content hash
e13ef82d2deddede
Audit
scan passed
Can do
writes files
Works with
cursor
Check
Merged JSON contains the authored settings; this does not prove runtime behavior.; Exact authored file and evaluation checklist are intact; runtime/output quality requires the checklist.
Author
@WhatWorks
Kudos
0

This package has no public source link yet.

Are you @WhatWorks? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package ww-cursor-workspace-read-boundary before installing
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp