What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
AI coding agents stop making unapproved changes only when you configure two separate safeguards: an approval policy that makes the agent request confirmation, and a sandbox that technically limits what approved commands can touch. For Codex, use sandbox_mode = "read-only" when the agent must not edit, paired with approval_policy = "on-request" for interactive escalation. If it may edit only the current project, use workspace-write with on-request approval. In VS Code Copilot sessions, select Manual permissions, keep the sandbox enabled, and review terminal, URL and tool approvals individually. Avoid global auto-approval, full-access presets and permission-bypass modes for ordinary supervised work.
At a glance
| Name | Best for | Key control | Platforms | Checked |
|---|---|---|---|---|
| Codex read-only with on-request approval | Planning, analysis and code review without file edits | sandbox_mode = "read-only"; approval_policy = "on-request" |
Codex CLI and IDE extension | November 2026 |
| Codex workspace-write with on-request approval | Editing one project while escalating out-of-scope actions | --sandbox workspace-write --ask-for-approval on-request |
Codex CLI and IDE extension | November 2026 |
| VS Code Manual permissions with sandbox | Supervised Copilot or harness sessions | chat.permissions.default = default; sandbox enabled; auto-approval rules reviewed |
VS Code agent sessions | November 2026 |
| VS Code Claude Request approval | Claude harness work where every sensitive action needs consent | Request approval mode; do not enable allowDangerouslySkipPermissions |
VS Code Claude harness | November 2026 |
Which settings actually stop an AI coding agent from changing files without asking?
Use a restrictive permission mode and an approval policy together. The permission mode defines the technical boundary: which paths, network resources and processes commands can reach. The approval policy defines when the agent must pause and ask you. OpenAI’s documentation explicitly says that “Sandboxing and approvals are different controls that work together” (approval and security guidance).
As an Amazon Associate I earn from qualifying purchases.
Free tools Windows power users keep installed
One-click scans. No signup required.
For a no-edit workflow, read-only sandboxing is the clearest control. It prevents writes even if an agent proposes a patch, while on-request approval lets you authorize exceptional actions deliberately. For a coding workflow in one repository, workspace-write allows edits inside that workspace; it is not an approval-before-every-edit setting. Routine in-workspace edits and local commands can proceed automatically, while actions outside the workspace or commands requiring network access trigger a request under the documented Auto preset.
In VS Code, start with Manual permissions (the default value), leave global auto-approval off, and keep terminal sandboxing enabled. Then inspect each tool call, URL and terminal command. A prompt that you approve is still constrained by the sandbox; conversely, a sandbox does not tell you whether a risky action should run, so approvals remain necessary.
Popular on Amazon
- 【90 Degree Full Function USB C Adapter】Supports the latest USB4 standard for up to 40Gbps of bandwidth, 8K video support, and up to 240W Fast charging; Support USB PD 3.1 Extended Power Range (EPR) including 140W, 180W and 240W. Your productivity is easily doubled. *Warm Tip: For the best fit, please make sure the USB-C port is fully exposed; thick or bulky cases may affect compatibility.
- 【Reliable Quality】Made from high-quality, scratch-resistant aluminum alloy, delicate metal frame. get excellent wear resistance and heat dissipation. Non-Slip Design for easier insertion and removal.
- 【Small and portable】Ultra thin size, ultra compact design, a petite physique that matches the minimalist design of your modern laptops. Coming with a slim figure that won't block the port next to the one it's plugged into.
- 【Compatibility】Widely work with most usb c, thunderbolt 4/3 devices. Compatibilit for ROG Ally, Steam Deck, Switch, MacBook Pro, Quest 3 VR headset, Surface Book 2, iPhone 18/17/16/15, Samsung Galaxy S23/S22/S21, Note 20/10, Google Pixel, ChromeBook, etc.
- 【Excellence Customer Support】If you experience any issues or cable failure, simply reach out to our dedicated customer service team. We provide a prompt response within 18 hours, providing you with the necessary technical support to resolve any concerns.
What is the difference between approval prompts and sandboxing?
Approval is a human decision gate; sandboxing is an enforcement boundary. Approvals determine whether an action runs automatically or requires your confirmation. Sandboxing restricts the file system and network resources that agent terminal commands can access, even after the commands are approved (VS Code approvals guide).
What approvals control
- Whether a tool call, terminal command, URL request or other action runs immediately.
- How broad your consent is: one command, a command pattern, a path, a host, a session or every workspace.
- Whether the agent pauses when it leaves its permitted scope.
What sandboxing controls
- Which filesystem locations a command can read or write.
- Whether network access is available to package managers, downloaders, APIs or remote services.
- What spawned processes such as Git, test runners and package scripts can reach.
These controls answer different questions. “Should this command run?” is an approval question. “Even if it runs, what can it technically access?” is a sandbox question. Keep both enabled because an approved command can still have damaging side effects within its allowed boundary, while a sandbox alone provides no human review of an otherwise permitted action.
How do I configure OpenAI Codex so it cannot edit files?
Choose read-only sandboxing and on-request approvals. This combination is intended for chatting, planning, explaining code and reviewing a repository without allowing the agent to save changes.
- Open the Codex configuration used by your CLI or IDE extension.
- Set the approval policy to
on-request. - Set the sandbox mode to
read-only. - Optionally set
allow_login_shell = falseto remove login-shell behavior when you do not need it. - Start a new session and confirm that proposed edits are presented for discussion rather than written into the workspace.
approval_policy = "on-request"
sandbox_mode = "read-only"
allow_login_shell = false
The policy controls the prompt; read-only controls the write capability. If a command needs a file-writing side effect, approval alone should not be treated as permission to bypass the read-only boundary. Use this profile when the cost of an unsolicited edit is higher than the convenience of automatic changes.
Can a read-only session still run commands?
It can run commands that fit the sandbox, such as inspection, searching and many read-only checks. Commands that need to create build artifacts, modify dependency files or write test output may fail because the filesystem boundary blocks their writes. Treat those failures as an expected consequence of the safety setting, not as a reason to grant unrestricted access.
Also popular on Amazon
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
How do I let Codex edit only the active project?
Use the workspace-write sandbox with on-request approval when the agent needs to modify files in the current project but should escalate for broader access. The documented command-line pattern is:
codex --sandbox workspace-write --ask-for-approval on-request
In this mode, edits inside the active workspace and routine local commands may run without a prompt. Codex requests approval for edits outside that workspace and for commands that require network access. Therefore, workspace-write does not mean “ask before every edit”; it means “allow ordinary in-scope work and ask when the operation crosses a boundary.”
Before starting, define what the workspace includes. Opening a parent directory that contains secrets, deployment credentials or unrelated repositories silently expands the area in which automatic edits can occur. Keep the session rooted at the smallest project directory that contains the files the agent needs.
Codex documents operating-system enforcement for local CLI and IDE execution, including macOS Seatbelt, Linux bwrap with seccomp, Windows mechanisms with legacy fallbacks, and sandbox use in WSL2. Exact behavior depends on platform and installation, so consult the sandbox documentation for the environment you use.
Which VS Code settings require approval before Copilot actions?
Set the session to Manual permissions, keep the agent sandbox enabled, and review the separate auto-approval controls. VS Code documents these settings independently, so changing one does not automatically change the others.
Also popular on Amazon
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
- Open Settings and search for
chat.permissions.default. Leave it atdefault, which represents Manual permissions. - Check
chat.tools.global.autoApproveand keep itfalseunless an organization policy explicitly requires a different model. - Review
chat.tools.eligibleForAutoApproval, removing tools that should always require a prompt. - Review
chat.tools.urls.autoApproveand restrict approved hosts to destinations the task genuinely needs. - Review
chat.tools.terminal.autoApprove. The documented defaults include explicit false rules for potentially dangerous commands such asrm,rmdir,del,kill,curl,wget,eval,chmodandchown. - Leave
chat.tools.terminal.enableAutoApproveunderstood as a mechanism, not a blanket grant: it can be enabled while individual risky-command rules still require approval. - Enable
chat.agent.sandbox.enabledand verify that the session is actually using the sandbox.
The AI settings reference lists the current setting names and defaults. Defaults and organization policies can change, so inspect the effective settings rather than relying on a remembered value.
Why keep the sandbox enabled if Manual permissions are on?
VS Code says sandboxing is independent of the permission level. Terminal access can remain restricted even when a user selects Allow all or Autopilot. The sandbox does not cover every tool, however, which is why URL, tool and terminal approvals still need separate review. VS Code also cautions that the sandbox is not a virtual machine, user-account boundary, standalone security boundary or replacement for endpoint security (security guidance).
What Claude harness mode should I use in VS Code?
Use Request approval for supervised work, or Plan when the session should reason without carrying out changes. The available harness modes are Edit automatically, Request approval and Plan.
Do not enable github.copilot.chat.claudeAgent.allowDangerouslySkipPermissions for ordinary development. VS Code describes that option as bypassing all permission checks and says it should be limited to an isolated sandbox without internet access. A bypass setting changes the risk model more dramatically than merely allowing a broader command pattern, because the agent no longer has to stop at the normal permission gate.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11How should I review an approval request?
Read the exact command, parameters, path and URL before selecting Allow. Then review the resulting file and terminal changes separately; approving an action is not the same as validating its outcome.
Also popular on Amazon
- Portable and powerful USB-C HUB: BENFEI USB Type-C HUB, with super-soft and knot-free silicone woven design cable, meets most mobile office needs. Compact, lightweight, stylish, and powerful portable USB C Hub equipped with 1 x HDMI port, 1 x 100W charging, and 3 x USB ports. 18-month warranty, 24-hour response, to ensure you feel at ease when using our product.
- Design centered on comfort and reliability: Thanks to BENFEI's end-to-end in-house cable production capability, in-house PCBA and assembly capability, using the industry's most advanced silicone woven design and process, 20cm cable in length, no knots, super-soft, the HUB is easy to use in all scenarios: laptop, tablet, stand etc. Super-soft, 25000+ life cycles, to meet your daily carrying and office needs.
- 100W Charging: Support up to 90W USB C pass-through charging via Type-C port to keep your laptop powered. 10W is reserved for other interface operations. No data and video function on the Type-C port.
- 4K HDMI Display: The HDMI port supports media display at resolutions up to 4K 30Hz, keeping every incredible moment detailed and ultra vivid. Please note that the C port of the Host device needs to support video output.
- Transfer Files in Seconds: Transfer files and from your laptop at speeds up to 10 Gbps with USB A 3.2 port. Extra 2 USB A 2.0 ports are perfectly for your keyboards and mouse.
- Identify the actor. Confirm which tool, harness or terminal process is requesting access.
- Read the full command. Look for shell operators, scripts, redirects, recursive flags, downloads and privilege changes rather than judging only the first command name.
- Check paths. Verify that reads and writes are inside the intended project and do not include credential directories, home-directory configuration or unrelated repositories.
- Check network destinations. Confirm the hostname and why the task needs it. A package install, API call and arbitrary download have different implications.
- Choose the narrowest approval scope. Prefer one action or a narrowly defined rule over a session-wide or all-workspaces grant.
- Inspect the result. Review the diff, generated files, deleted files and command output before committing, merging or opening a pull request.
VS Code’s working-set interface can keep or undo supported editor changes, but it tracks only edits made through supported edit tools. Changes made by terminal commands need separate review; a terminal-generated migration, formatter output or script rewrite may not appear in the same keep/undo flow (VS Code security documentation).
Which settings should ordinary users avoid?
Avoid global auto-approval, full-access presets and permission-bypass switches unless you have a narrowly defined, isolated use case. These options remove the pauses that let you inspect intent and can expand filesystem or network reach at the same time.
- Global auto-approval: VS Code warns that it removes prompts in every workspace, not just the repository you are currently viewing.
- Full access: The Codex Full Access preset permits internet and outside-workspace access. Codex describes
danger-full-accessas full access and warns that a development container does not protect credentials or other data exposed inside it. - Claude permission bypass:
allowDangerouslySkipPermissionsskips all permission checks and should be reserved for an isolated, offline environment. - Overbroad workspace roots: Even workspace-write can affect every file under the selected root. A small project root is safer than a home directory or monorepo parent containing unrelated secrets.
Convenience settings are not inherently wrong; they are simply unsuitable when the requirement is “do not change anything without asking.” If you need automation, isolate the session, remove secrets from its reach, disable unnecessary network access and use a disposable branch or workspace.
How do these controls compare in practice?
| Configuration | Automatic in-scope edits | Approval trigger | Technical boundary | Best use |
|---|---|---|---|---|
| Codex read-only + on-request | No file edits | Actions requiring authorization | Read-only filesystem and sandbox limits | Planning, explanation and review |
| Codex workspace-write + on-request | Yes, inside workspace | Outside-workspace edits and network-required commands | Workspace filesystem boundary and disabled-by-default network behavior | Routine project implementation |
| VS Code Manual permissions + sandbox | Only where individual rules allow | Tool, URL and terminal rules | Agent terminal filesystem and network limits | Interactive Copilot supervision |
| VS Code Allow all or Autopilot + sandbox | Broadly, according to session settings | Fewer permission prompts | Sandbox may still restrict terminal access | Controlled automation, not default personal development |
Use the same questions whenever you compare configurations: When is approval requested? What is technically bounded? Does the boundary remain if prompts are bypassed? What is the scope of each approval? Which file, terminal and external-tool effects can you review afterward?
What should I do when an agent still makes an unexpected change?
First stop the session and preserve the current state so you can identify what happened. Then check the effective permission, sandbox and auto-approval settings rather than assuming the visible prompt represented the whole policy.
Also popular on Amazon
- 【Read before You Buy】 Note: This adapter is USB 2.0 version and cannot transmit HDM, VGA, or other video signals. Nevertheless, they are fully capable of charging devices,duplicating files, and can be seamlessly integrated with USB-C earphones, wireless network adapters, and SD card adapters.
- 【Easy to Use and Safe】Thanks to modern manufacturing techniques, we've made these adapters sufficiently compact so that they can remain inserted in your device without noticeable protrusion or inconvenience. This means you don't have to constantly plug and unplug them, reducing the likelihood of wear and misalignment, and making them more convenient to carry around.
- 【Reliable Quality】Engineered for enhanced durability, durable aluminum alloy shell material,get excellent wear resistance and heat dissipation,the male USB C and female USB connectors & the male USB and female USB C connectors are designed to be plugged and unplugged up to 20000 times. Provides data transfer, device charging, memory space expansion, and additional computer peripherals.
- 【Think more for you】Do you need to connect a USB-C-enabled device to an odd device that only has USB-A ports? Then these USB-A male to USB-C female adapters are made for you.Simply insert the adapter into the USB-A port on the device, and you can instantly connect your USB-C device to the device that originally didn't have the correct connection port.
- 【Trusted xiwxi Quality and Service】As a responsible brand seller, you will receive xiwxi's 12-month Quality assurance and lifetime friendly customer service, you're not just buying a product,you're investing in peace of mind with all-round quality and exceptional customer service.
- Pause or terminate the agent process.
- Capture the command, tool parameters, path and URL from the session log.
- Run a version-control diff, including untracked files, and inspect terminal output for generated or deleted content.
- Check whether the change came from an editor tool or a terminal command; terminal changes may bypass the editor’s keep/undo tracking.
- Inspect workspace roots, network settings, URL approvals, terminal auto-approval rules and organization policies.
- Restart with read-only mode for investigation, or narrow the workspace and approval scope before continuing.
If an approved command behaved unexpectedly, the approval gate worked as designed but the request was too broad or the command’s side effect was misunderstood. Tighten command patterns, host allowlists and workspace boundaries; do not respond by enabling a global bypass.
How we picked these settings
The configurations above follow the controls documented by OpenAI and Microsoft: approval timing, filesystem and network boundaries, independence between sandboxing and permissions, approval scope, and the ability to review file and terminal effects separately. No performance score or prompt-frequency statistic is implied; these are policy choices based on documented behavior, not hands-on test results. Product labels and defaults can change, so recheck the linked official documentation before applying them to a team policy.
Frequently Asked Questions
Can a read-only AI coding session run tests?
It can run tests that only read source files and write permitted temporary output, but many test runners create coverage, cache or report files. Those writes may be blocked in read-only mode, so use a disposable workspace or a narrowly scoped write mode when test artifacts are required.
Does approving one command approve the agent’s later commands?
Not necessarily. Approval scope depends on the harness and rule: it may cover one invocation, a command pattern, a path, a URL host or a session. Read the scope shown in the prompt and avoid assuming that consent carries across workspaces.
Can a sandbox protect secrets stored inside my project?
No. A sandbox limits access according to its configured boundary; secrets inside an allowed workspace can still be read or changed by an approved command. Remove unnecessary credentials from the workspace and use environment and organization controls in addition to agent settings.
Why did a terminal edit not appear in VS Code’s undo review?
VS Code’s working-set review tracks changes made through supported edit tools, not every side effect of a terminal process. Check version-control diffs and terminal output separately for formatter, migration, generator and script changes.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →

