适合初学者的 GitHub Copilot 应用程序:同时运行多个代理
了解如何在 GitHub Copilot 应用程序中运行并行代理,并体验它不再令人恐惧并开始感觉强大的那一刻。面向初学者的 GitHub Copilot 应用程序:同时运行多个代理一文首先出现在 GitHub 博客 上。

来自 GitHub AI 的官方动态,版本与适用范围以发布方说明为准。
GitHub AI · 查看官方发布中文机器翻译 · 原文附后
正文 · 来源原文
开始使用 GitHub Copilot 应用 >
高级人工智能开发工具倡导者
在同一个项目上运行多个人工智能代理似乎完全是混乱的,因为你的开发厨房里有太多厨师。但使用 GitHub Copilot 应用程序,这些代理可以单独工作并且不会相互干扰,从而让您可以在更短的时间内完成更多工作。
将并行代理会话想象成去自助洗衣店。您可以在各自的机器中同时启动多批衣物。您可以使用自己的设置来设置每个洗衣机,并且不会影响其他负载。最重要的是,您不必等待一个任务完成才能开始另一个任务。
让我们看看它是如何工作的。
座席会话是您从头到尾交给 Copilot 的一项任务。
在 GitHub Copilot 应用程序中,您可以通过会话视图管理多个会话。每张卡片都会显示其标题以及代理完成任务的进度。
每个会话独立于其他会话运行。这意味着您可以随时开始新的会话,并且已经运行的会话不会受到干扰。
但这才是真正的魔法发生的地方。 GitHub Copilot 应用程序中的每个代理会话都可以在其自己的 Git 工作树上运行。由于每个会话都是隔离的,因此它们可以同时并行运行。
这意味着您将时间花在审查和做出决策上,而不是观察代理的工作情况。
另外,每个会话都保留自己的上下文,因此您可以在它们之间自由切换。每个都准确地从你离开的地方继续,你永远不需要重新解释你在做什么。更少的上下文切换意味着你感觉不那么分散。
让我们看一个示例存储库,tailspin-toys。今天我想对这个项目做三件事:添加资助排序、执行可访问性审查以及对该项目运行一些测试。
第一步是要求 Copilot 构建资助排序功能。刚开始时,打开一个新会话并要求 Copilot 执行辅助功能审查。当这个过程开始时,开始提示 Copilot 在第三个会话中运行一些测试。
在会话视图中,您可以跟踪所有这些进展并在完成时查看结果。或者,您可以完全离开,喝杯咖啡,然后知道您的工作正在进行,而无需您照顾。
准备好感受并行代理会话的力量了吗?
尝试在 GitHub Copilot 应用程序中同时启动两个小任务。这是一种独立观察任务进展的低风险方式。
在代理商之前,这种规模的重写是无法承受的。以下是将 Copilot 代理运行时移植到 Rust 的 800,000 条生产线实际需要的工作。
如果你能写下你的工作方式,你就可以将其自动化。以下是我为支持 GitHub 亚太地区营销团队所做的工作。
检查代理生成的代码通常意味着在选项卡之间跳转。了解如何在 GitHub Copilot 应用程序中查看差异、运行终端命令以及并排预览 Web 应用程序。
查看英文原文
GitHub Copilot app for Beginners: Run several agents at once
Learn how to run parallel agents in the GitHub Copilot app, and experience the moment it stops feeling scary and starts feeling powerful. The post GitHub Copilot app for Beginners: Run several agents at once appeared first on The GitHub Blog .
正文 · 来源原文
Start using the GitHub Copilot app >
Senior AI Developer Tools Advocate
Running multiple AI agents on the same project seems like pure chaos, with too many cooks in your development kitchen. But with the GitHub Copilot app, these agents work separately and don’t interfere with each other, allowing you to get more done in less time.
Think of parallel agent sessions like a trip to the laundromat. You can start multiple loads of laundry at the same time, in their own machines. You can set each washer with its own settings, and it won’t impact the other loads. Most importantly, you don’t have to wait for one to finish before you can start another one.
Let’s look at how it works.
An agent session is a task you’ve given Copilot, start to finish.
In the GitHub Copilot app, you can manage several sessions through the sessions view. Each card shows its title and how far along the agent is in completing its task.
Each session runs independently of the others. That means you can start a new session whenever you want, and the ones already running won’t be disturbed.
But here’s where the real magic happens. Each agent session in the GitHub Copilot app can run on its own Git worktree. Since each session is isolated, they can run in parallel, all at the same time.
