跳到主内容
@wquguru
精选85GitHub ChangelogAI 编程与模型

GitHub Copilot in VS Code Universe:跨端会话

GitHub Copilot in VS Code, Universe releases

原文
发到 X
推荐理由

重度AI编程用户必读。Agent Host和AHP协议彻底改变了Copilot的运行范式,从单点工具变为可跨端、可定制的基础设施。建议关注AHP SDK以评估是否构建内部客户端,并测试Computer Use等新特性。

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.

今年,我们致力于让您在使用 Visual Studio Code 中的 GitHub Copilot 时拥有更多选择:包括使用哪些模型、代理在哪里运行,以及如何保持您的参与。

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.

无需一直坐在办公桌前或局限于单一工具,即可让工作持续推进。在 Visual Studio Code 中使用 GitHub Copilot,您可以在晨会期间从手机启动云端代理会话,在办公桌前通过 VS Code 引导其运行,并在午餐时间通过 github.com 查看进度。会话连续性功能让您能够在这些客户端之间切换并继续同一个会话,同时您的代理仍在云端持续工作。

Start and follow cloud sessions across Copilot clients

在 Copilot 客户端间启动和跟踪云端会话

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.

交接工作时无需保持电脑开机。从 VS Code 的 Agents 窗口启动云端代理会话。该工作在 GitHub 的基础设施上运行,因此合上笔记本电脑并不会中断工作。

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.

在 VS Code、GitHub Copilot 应用、GitHub Mobile、github.com 或 Copilot CLI 中查找并继续同一会话。在 Slack 或 Microsoft Teams 私信中启动的会话也可以在这些客户端中继续。

Keep agents working on your own machines

在自己的机器上运行代理

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.

转向其他任务或项目,而无需担心丢失会话。新的 Agent Host 将您的 Copilot 会话与各个 VS Code 窗口隔离开来,因此关闭项目文件夹或窗口后,工作仍会在后台继续。

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.

您还可以在另一台机器上运行代理,同时使用主要开发机器处理其他工作。VS Code 的 Remote SSH 和 dev tunnels 的强大功能和灵活性已延伸至 Agents 窗口。远程代理使用相同的代码、工具和依赖项,并且即使您在本地断开连接或退出 VS Code,它也能继续运行。远程机器及其 Agent Host 必须保持运行状态。

Move between the editor and Agents windows

在编辑器窗口和 Agents 窗口之间切换

Switch between the editor and the Agents window without starting over. Both views stay in sync with the same live Copilot session.

在编辑器窗口和 Agents 窗口之间切换,无需重新开始。两个视图都与同一个实时 Copilot 会话保持同步。

Control agents on your machine from your phone

从手机控制您机器上的代理

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.

从 GitHub Mobile 检查进度、提供指导或在您的开发机器上启动新任务。您的手机提供控制界面,而代理则在您的开发机器上执行工作。要开始使用,请在该机器上打开终端,并从项目文件夹中运行 VS Code CLI 命令 code agent host --github-environment。在使用手机进行控制期间,请保持机器及其 Agent Host 处于运行状态。

Get a more consistent GitHub Copilot

获得更一致的 GitHub Copilot 体验

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.

在 VS Code、Copilot CLI 和 GitHub Copilot 应用中实现更一致的代理行为。基于 Microsoft Copilot SDK 构建的 Copilot harness 现已成为编辑器和 Agents 窗口中新会话的默认设置。

Install GitHub Copilot CLI with VS Code

通过 VS Code 安装 GitHub Copilot CLI

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.

以更少的配置将 Copilot 引入终端。在 Windows 上通过 VS Code 安装程序、在 macOS 上将 VS Code 添加到路径时,或在 Linux 上运行 copilot 命令来安装 GitHub Copilot CLI。

Compare model results

比较模型结果

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.

探索解决同一编码任务的不同方法。在 Agents 窗口中并行运行模型和 harness,然后并排查看它们的结果。你可以要求 Judge 模型推荐解决方案,并选择 Synthesize 来整合其他尝试中的想法。此功能处于预览阶段。

Let your agent use your desktop apps

让你的代理使用桌面应用

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.

赋予代理需要代码或终端命令之外的任务。借助计算机使用功能,Copilot 可以读取并与桌面应用交互,包括点击控件和编辑文本。

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.

在 macOS 或 Windows 上,打开 VS Code 设置,搜索 chat.agentHost.computerUse.enabled 并启用它。重启 VS Code,然后在本地运行的 Copilot 会话中运行 /computer on。

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.

每个应用都需要你的批准。计算机使用功能与 Copilot CLI 和 GitHub Copilot 应用共享其设置,因此在 macOS 上你只需授予一次所需的系统权限。组织可以通过策略禁用计算机使用功能。

This is an experimental feature.

这是一个实验性功能。

Build your own client

构建你自己的客户端

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.

为你的应用带来会话连续性。构建一个连接到 Agent Host 且能与 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.

开放的 Agent Host 协议 (AHP) 使连接的客户端保持同步并在重新连接后赶上进度。运行 code agent host,然后通过 TypeScript、Rust、Go、Kotlin 或 Swift 的客户端库进行连接。

Discover marketplace customizations

发现市场定制项

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.

在 VS Code 中的一个位置创建、发现和管理工作区定制项。在 Agents 窗口侧边栏中打开 Customizations,或运行 Chat: Open Customizations。其“Browse”页面汇集了来自可用来源的技能、MCP 服务器、插件和其他定制项。

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.

Customization Marketplace 处于预览阶段且默认启用。Business 和 Enterprise 管理员需要允许编辑器预览功能。了解更多关于 Agent Customizations 编辑器和市场的信息。

Strengthen existing plugin and marketplace controls

加强现有的插件和市场控制

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.

使现有插件和市场控件更加可靠。在 VS Code 中,管理员可以使用策略来要求或阻止特定名称的插件、添加市场,并将安装限制为已批准的来源。企业管理的严格市场设置还可以关闭内置市场。由策略管理的插件开关在“自定义 > 插件”中被锁定。对于跨 Copilot 客户端的控制,管理员可以使用企业管理的设置。

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.

在仓库级别,.github/copilot/settings.json 可以注册插件市场并启用默认插件。这些是默认值,而非强制:除非企业策略要求,否则贡献者可以关闭插件。了解更多关于插件市场和 workspace 推荐的信息。

Connect services with Copilot connectors

通过 Copilot 连接器连接服务

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.

无需安装或管理 MCP 服务器,即可将来自 Slack、Notion 和 Microsoft Learn 等服务中的上下文带入代理会话。从“浏览”一次性连接,并在使用同一账户登录的支持 Copilot 客户端之间复用该连接。

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.

连接器处于预览阶段,适用于所有 Copilot 计划,并与 Copilot 框架配合使用。Business 和 Enterprise 管理员需要允许编辑器预览功能。了解有关 VS Code 中 Copilot 连接器的更多信息。

Learn more

了解更多

Learn more in the VS Code release notes, the Agent Host deep dive, and About computer use in GitHub Copilot.

在 VS Code 发行说明、Agent Host 深入解析以及 GitHub Copilot 中的计算机使用概述中了解更多。

Happy coding! 💙

祝你编码愉快!💙

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件