官方更新 GitHub Changelog Wed, 07 Oct 2026 正文 ok 211 words

GitHub Copilot 本地沙箱现已全面可用

英文标题:Local sandboxing for GitHub Copilot now generally available

GitHub Copilot 的本地沙箱功能现已在 GitHub Copilot CLI、GitHub Copilot 应用和通过 Agent Host 运行的 VS Code 会话中全面可用。该功能为开发者本机上的 Agent 工作流提供安全执行边界,可按开发者或组织定义的策略限制文件系统、网络、凭据及其他系统能力访问。该能力由 Microsoft eXecution Container(MXC)提供支持,可将统一的沙箱策略转换为 Windows、macOS 和 Linux 原生的操作系统控制机制。GitHub 表示,本地沙箱不额外收费,企业还可通过集中管理策略强制启用沙箱并防止开发者削弱限制。
打开原文相关 3 · 机会 4
media12.2 KB media26.4 KB

中文

GitHub Copilot 的本地沙箱现已在 GitHub Copilot CLI、GitHub Copilot 应用以及使用 Agent Host 的 VS Code 会话中全面可用。

本地沙箱为开发者在自身机器上运行的 Agent 工作流提供了安全执行边界。由 Copilot 发起的工具和命令会根据开发者或其组织定义的策略,以受限权限访问文件系统、网络、凭据及其他系统能力。

本地沙箱由 Microsoft eXecution Container (MXC) 提供支持。MXC 可将通用的沙箱策略转换为适用于 Windows、macOS 和 Linux 的原生操作系统控制机制。

借助本地沙箱,开发者和组织可以:

  • 限制由 Agent 运行的命令可读取或修改的文件和目录。
  • 控制对互联网、本地网络、Git 凭据和 GitHub CLI 凭据的访问。
  • 对本地工具和服务应用沙箱机制,包括在支持的情况下对本地 MCP 和语言服务器进行沙箱隔离。
  • 使用企业集中管理的设置来强制要求使用沙箱,并执行开发者无法削弱的策略。
  • 在明确界定 Copilot 可访问范围的同时,采用更具自主性的 Agent 工作流。

模型执行与工具隔离是两个相互独立的问题。无论 Copilot 使用哪一种模型,沙箱策略都会应用于工具执行。

本地沙箱已包含在 GitHub Copilot 中,无需额外付费。要开始使用,请参阅关于 GitHub Copilot 的云端和本地沙箱。

English / 原文

Local sandboxing for GitHub Copilot is now generally available in GitHub Copilot CLI, the GitHub Copilot app, and VS Code sessions using Agent Host.

Local sandboxes give developers a secure execution boundary for agentic workflows on their own machines. Tools and commands initiated by Copilot run with restricted access to the filesystem, network, credentials, and other system capabilities, based on policies defined by the developer or their organization.

Local sandboxing is powered by Microsoft eXecution Container (MXC), which translates a common sandbox policy into native operating-system controls across Windows, macOS, and Linux.

With local sandboxing, developers and organizations can:

  • Limit the files and directories that agent-run commands can read or modify.
  • Control access to the internet, local networks, Git credentials, and GitHub CLI credentials.
  • Apply sandboxing to local tools and services, including local MCP and language servers where supported.
  • Use enterprise-managed settings to require sandboxing and enforce policies that developers cannot weaken.
  • Adopt more autonomous agent workflows while maintaining clear boundaries around what Copilot can access.

Model execution and tool isolation are separate concerns. Sandbox policies apply to tool execution regardless of which model Copilot uses.

Local sandboxing is included with GitHub Copilot at no additional cost. To get started, see About cloud and local sandboxes for GitHub Copilot.