Updates

GitHub Copilot gets local isolation: protection to enable for each project

GitHub added local isolation to the Copilot app, allowing agent tools' access to files, networks and credentials to be restricted. Announced on September 23, the update is in public preview and disabled by default. It must be enabled for the relevant project.

The distinction matters: opening a branch or separate workspace does not necessarily restrict what a command can read outside the project. According to GitHub's documentation, Sandbox adds operating-system-level restrictions to tools the agent runs.

Enablement and permissions are two separate decisions

To enable isolation in new sessions, open app settings, select a project and enable Sandbox new sessions. In an active local session, use /sandbox on, which does not change the project's default.

After enabling it, also check policy. Folders can receive read-only access, read and write access, or be blocked. Internet and local network access, and Git and GitHub CLI permissions, can also be controlled. Enabling Sandbox alone does not close all these channels: the default permits network connections and authenticated Git operations.

Policy changes apply in new sessions or after a restart. Organizational settings may make the project policy stricter.

Boundaries vary by environment

The update announcement clarifies that the option does not apply to cloud sessions or remote hosts. Copilot app settings and Copilot CLI settings are separate. When the operating system cannot enforce the requested policy, the command should fail rather than run without isolation.

Documentation also lists a Linux limitation: local network access cannot be controlled separately for spawned processes such as shell commands. Read platform limitations rather than assume every toggle works identically on every computer.

A team running an agent alongside sensitive files can begin with a test folder containing no real secrets, configure blocking and verify access is denied. This tests policy in practice before relying on it in a work project. We did not conduct a penetration test or local enforcement test here.