GitHub Copilot in VS Code Universe 发布:跨端会话接力、Agent Host 架构与 Computer Use 全新登场
英文标题:GitHub Copilot in VS Code, Universe releases
在本次 Universe 发布中,GitHub Copilot 在 Visual Studio Code 中迎来重大升级,推出支持在云端持续运行的 Agent 会话连续性,开发者可在手机、桌面 VS Code、网页端及 CLI 之间无缝接续工作。全新的 Agent Host 架构将 Copilot 会话与编辑器窗口解耦,支持后台持续执行、远程机器托管以及通过开放协议(AHP)接入自定义客户端,并新增多模型并行探索与方案合成能力。此外,新版还引入了操作桌面应用的 Computer Use 实验功能、免配置 MCP 的 Connectors 服务连接器以及企业级定制市场,推动 AI 编程助手全面迈向自主协同的 Agent 生态。
668.0 KB
116.8 KB
129.7 KB
1.3 MB
中文
今年,我们专注于让你在使用 Visual Studio Code 中的 GitHub Copilot 时拥有更多选择:使用哪些模型、在哪里运行你的 Agent,以及你如何参与协作。
无需局限于工位或单一工具,即可推动工作持续进行。借助 Visual Studio Code 中的 GitHub Copilot,你可以在晨会时用手机发起一个云端 Agent 会话,回到工位后在 VS Code 中引导它,并在午餐时通过 github.com 查看进度。会话连续性(Session continuity)允许你在这些客户端之间无缝接续同一个会话,而你的 Agent 会在云端持续保持工作。
无需保持电脑开机即可交接工作。从 VS Code 的 Agents 窗口启动云端 Agent 会话,该任务将在 GitHub 的基础设施上运行,因此合上笔记本电脑也不会中断任务。
你可以在 VS Code、GitHub Copilot 应用、GitHub Mobile、github.com 或 Copilot CLI 中查找并继续同一个会话。在 Slack 或 Microsoft Teams 私信中启动的会话同样可以在这些客户端中接续。
无须担心丢失会话,即可切换到另一个任务或项目。全新的 Agent Host 将你的 Copilot 会话与独立的 VS Code 窗口隔离开来,因此在你关闭项目文件夹或窗口后,任务仍会在后台继续运行。
你还可以在独立机器上运行 Agent,同时使用主开发机处理其他工作。VS Code Remote SSH 和 dev tunnels 的强大与灵活性已延伸至 Agents 窗口。远程 Agent 可以使用相同的代码、工具和依赖项,并且在本地断开连接或退出 VS Code 时依然保持运行。此时远程机器及其 Agent Host 必须保持运行状态。
在编辑器与 Agents 窗口之间随时切换而无需重新开始。两个视图始终与同一个实时 Copilot 会话保持同步。
通过 GitHub Mobile 查看进度、提供指导,或在你的开发机上启动新任务。你的手机充当控制器,而 Agent 会在你的开发机上执行实际工作。要开始使用,只需在该开发机上打开终端,并在项目文件夹中运行 VS Code CLI 命令 code agent host --github-environment。从手机使用时,请保持机器和其 Agent Host 处于运行状态。
在 VS Code、Copilot CLI 和 GitHub Copilot 应用中获得更一致的 Agent 行为。基于 Microsoft Copilot SDK 构建的 Copilot harness 现在已成为编辑器和 Agents 窗口中新会话的默认选项。
以更少的手动配置将 Copilot 引入你的终端。你可以通过 Windows 上的 VS Code 安装程序、macOS 上将 VS Code 添加到 PATH 环境变量时,或在 Linux 上运行 copilot 来安装 GitHub Copilot CLI。
探索同一编码任务的不同解决思路。在 Agents 窗口中并行运行多个模型和 harness,并排对比它们的结果。你可以让 Judge 模型推荐最佳解决方案,并选择 Synthesize 来融合来自其他尝试的构想。该功能目前处于预览阶段。
为你的 Agent 分配超越代码或终端命令范畴的任务。借助计算机使用(Computer Use)功能,Copilot 可以读取桌面应用并与之交互,包括点击控件和编辑文本。
在 macOS 或 Windows 上,打开 VS Code 设置,搜索 chat.agentHost.computerUse.enabled 并将其启用。重启 VS Code,然后在计算机上运行的 Copilot 会话中执行 /computer on。
每个应用程序都需要你的明确批准。Computer Use 与 Copilot CLI 及 GitHub Copilot 应用共享设置,因此在 macOS 上只需授予一次所需系统权限。组织可以通过策略禁用 Computer Use。
这是一项实验性功能。
将跨端会话连续性引入你自己的应用。你可以构建一个连接到 Agent Host 的客户端,并与 VS Code 共享相同的实时会话。
开放的 Agent Host Protocol (AHP) 允许已连接的客户端保持同步,并在重新连接后自动同步错过的更新。只需运行 code agent host,即可通过 TypeScript、Rust、Go、Kotlin 或 Swift 客户端库建立连接。
在 VS Code 中一站式创建、发现和管理 Agent 定制项。在 Agents 窗口侧边栏中打开 Customizations,或运行 Chat: Open Customizations。其“Browse”页面汇集了来自可用来源的技能(Skills)、MCP 服务器、插件及其他定制化能力。
Customization Marketplace(定制市场)现已进入预览阶段并默认开启。商业版和企业版管理员需要允许 Editor preview features。了解关于 Agent Customizations 编辑器和市场 的更多信息。
提升现有插件和市场管控的可靠性。在 VS Code 中,管理员可以使用策略强制要求或阻止指定的插件、添加插件市场,并将安装限制在受批准的来源。企业管理的严格市场设置还可以关闭内置市场。受策略管理的插件开关将在 Customize > Plugins 中处于锁定状态。针对跨 Copilot 客户端的控制,管理员可以使用企业管理设置。
在代码仓库层级,通过 .github/copilot/settings.json 可以注册插件市场并启用默认插件。这些属于默认配置而非强制执行:除非企业策略有硬性要求,否则贡献者可以手动关闭这些插件。了解关于插件市场和工作区推荐的更多信息。
无需安装或管理 MCP 服务器,即可将来自 Slack、Notion 和 Microsoft Learn 等服务的上下文引入 Agent 会话。只需从“Browse”连接一次,即可在以同一账户登录的所有受支持 Copilot 客户端中复用该连接。
Connectors(连接器)功能目前处于预览阶段,面向所有 Copilot 方案开放,并兼容 Copilot harness。商业版和企业版管理员需要开启 Editor preview features。了解关于 VS Code 中的 Copilot 连接器 的更多信息。
欢迎查阅 VS Code 发版说明、Agent Host 深度剖析 以及关于 GitHub Copilot 中的 Computer Use 了解详情。
祝编码愉快!💙
English / 原文
This year, we focused on giving you more choice in how you work with GitHub Copilot in Visual Studio Code: which models you use, where your agents run, and how you stay involved.
Keep work moving without staying at your desk or in one tool. With GitHub Copilot in Visual Studio Code, start a cloud agent session from your phone at standup, steer it from VS Code at your desk, and check on it from github.com at lunch. Session continuity lets you pick up the same session across these clients while your agent keeps working in the cloud.
Hand off work without keeping your computer on. Start a cloud agent session from the Agents window in VS Code. The work runs on GitHub’s infrastructure, so closing your laptop doesn’t stop it.
Find and continue the same session in VS Code, the GitHub Copilot app, GitHub Mobile, github.com, or Copilot CLI. Sessions started in a Slack or Microsoft Teams DM can also be continued in these clients.
Move on to another task or project without worrying about losing your session. The new Agent Host isolates your Copilot sessions from individual VS Code windows, so work continues in the background after you close the project folder or window.
You can also run agents on a separate machine while you use your primary development machine for other work. The power and flexibility of VS Code’s Remote SSH and dev tunnels extends to the Agents window. The remote agent works with the same code, tools, and dependencies, and can keep running when you disconnect or quit VS Code locally. The remote machine and its Agent Host must remain running.
Switch between the editor and the Agents window without starting over. Both views stay in sync with the same live Copilot session.
Check progress, give direction, or start a new task on your development machine from GitHub Mobile. Your phone provides the controls, and the agent does the work on your development machine. To get started, open a terminal on that machine and run the VS Code CLI command code agent host --github-environment from your project folder. Keep the machine and its Agent Host running while you use it from your phone.
Get more consistent agent behavior across VS Code, Copilot CLI, and the GitHub Copilot app. The Copilot harness, built on the Microsoft Copilot SDK, is now the default for new sessions in both the editor and the Agents window.
Bring Copilot to your terminal with less setup. Install GitHub Copilot CLI through the VS Code installer on Windows, when adding VS Code to your path on macOS, or by running copilot on Linux.
Explore different approaches to the same coding task. Run models and harnesses in parallel in the Agents window, then review their results side by side. You can ask a Judge model to recommend a solution and choose Synthesize to combine ideas from the other attempts. This is in preview.
Give your agent tasks that need more than code or terminal commands. With computer use, Copilot can read and interact with desktop apps, including clicking controls and editing text.
On macOS or Windows, open VS Code Settings, search for chat.agentHost.computerUse.enabled, and enable it. Restart VS Code, then run /computer on in a Copilot session running on your computer.
Each application requires your approval. Computer use shares its setup with Copilot CLI and the GitHub Copilot app, so on macOS you grant the required system permissions once. Organizations can disable computer use through policy.
This is an experimental feature.
Bring session continuity to your own app. Build a client that connects to an Agent Host and works with the same live sessions as VS Code.
The open Agent Host Protocol (AHP) lets connected clients stay in sync and catch up after reconnecting. Run code agent host, then connect with a client library for TypeScript, Rust, Go, Kotlin, or Swift.
Create, discover, and manage agent customizations from one place in VS Code. Open Customizations in the Agents window sidebar or run Chat: Open Customizations. Its “Browse” page brings together skills, MCP servers, plugins, and other customizations from available sources.
The Customization Marketplace is in preview and enabled by default. Business and Enterprise administrators need to allow Editor preview features. Learn more about the Agent Customizations editor and marketplace.
Make existing plugin and marketplace controls more reliable. In VS Code, administrators can use policies to require or block named plugins, add marketplaces, and restrict installation to approved sources. Enterprise-managed strict marketplace settings can also turn off built-in marketplaces. Policy-managed plugin toggles are locked in Customize > Plugins. For controls across Copilot clients, administrators can use enterprise-managed settings.
At the repository level, .github/copilot/settings.json can register plugin marketplaces and enable default plugins. These are defaults, not enforcement: contributors can turn plugins off unless enterprise policy requires them. Learn more about plugin marketplaces and workspace recommendations.
Bring context from services such as Slack, Notion, and Microsoft Learn into agent sessions without installing or managing an MCP server. Connect once from “Browse” and reuse the connection across supported Copilot clients signed in with the same account.
Connectors are in preview, available on all Copilot plans, and work with the Copilot harness. Business and Enterprise administrators need to allow Editor preview features. Learn more about Copilot connectors in VS Code.
Learn more in the VS Code release notes, the Agent Host deep dive, and About computer use in GitHub Copilot.
Happy coding! 💙