官方更新 GitHub Blog AI/ML Mon, 27 Jul 2026 正文 ok 906 words

GitHub Copilot app 新手入门:快速上手指南

英文标题:GitHub Copilot app for Beginners: Getting started

GitHub 介绍了 GitHub Copilot app 面向新用户的核心工作流:以项目为上下文启动 Agent 会话,并可并行处理多项任务。开发者可通过 Quick Chat 建立独立对话,通过 canvas 在应用预览中直接迭代 UI,并利用 Pick & Polish 提供可视化上下文。对于拉取请求,Agent Merge 可监控 CI 和评审进度,协助处理评审反馈、CI 失败及合并冲突。这些功能旨在将 AI Agent 整合进从开发、验证到代码审查和合并的完整软件交付流程。
打开原文相关 5 · 机会 5
media75.6 KB media33.6 KB media84.8 KB media40.0 KB media58.0 KB media27.6 KB media124.7 KB media50.1 KB media75.4 KB media34.5 KB media67.7 KB media32.0 KB media84.0 KB media40.3 KB media190.0 KB media129.1 KB media10.7 KB media21.4 KB media143.0 KB media22.6 KB

中文

AI 编码工具通常从一个聊天窗口开始。虽然这适合快速提问或生成代码,但真实的软件开发很少沿着一条直线进行:前一分钟你可能在修复 bug,下一分钟则可能在审查拉取请求、研究代码库中不熟悉的部分,或探索一个新想法。

GitHub Copilot app 专为这类工作流设计。它并不将 AI 视作一次单独的对话,而是提供了一个工作区:你可以管理多个 Agent 会话,在不同任务之间切换而不失去工作节奏,并在工作流的不同环节中与 AI Agent 协作。

工作从项目开始

Agent 会话与项目关联,为每个会话提供完成特定任务所需的仓库上下文。

在 GitHub Copilot app 的主屏幕上,你可以选择此前使用过的项目,或从 GitHub 或本地计算机添加一个新项目。选择项目后,你即可启动一个会话,其中包含开始处理任务所需的代码库、文件和工具。

例如,你可能希望为现有应用添加一个面包屑导航组件。无需手动在文件中搜索适合修改的位置,只需描述你希望完成的更新。该会话可以检查项目、识别相关文件、进行修改,并运行测试以帮助验证工作结果。

由于每次会话开始时均已连接项目,你可以将更多时间用于实际工作,减少准备环境所花的时间。

让多条工作线并行推进

选择项目并启动 Agent 会话后,你可以为其他问题、想法或任务创建额外会话,而不会中断已有工作。Quick Chat 可让你从 Copilot app 主屏幕发起新的对话。每个对话都可以专注于不同的工作领域,为探索想法、提出问题或梳理变更提供专属空间。

例如,当另一个 Agent 会话仍在处理项目更新时,你可以打开一个 Quick Chat 会话,向 Copilot 询问有关 Copilot 的问题,例如 app 中的 worktree 如何工作。你还可以使用 Quick Chat 调查代码库的工作方式、探索潜在方案,或在决定下一步行动前收集上下文。

当你返回原始会话时,可以从上次中断的位置继续,审查变更,并进行推动任务进展所需的更新。

多个会话让你能够跟进不同的工作线索,同时不会失去对各项任务进度的掌握。

使用 canvas 让工作更具交互性

处理 UI 变更时,看到最终效果可能与审查其背后的代码同样重要。GitHub Copilot app 允许你直接在工作流中打开浏览器 canvas,以便预览应用,并根据所见结果进行修改。

canvas 是围绕工作产物构建的共享交互空间,例如计划、看板、检查清单或正在运行的应用程序。它在对话旁提供工作的可视化呈现,使你能够超越基于文本的任务视图。

你无需打开新的终端并启动独立浏览器,而是可以使用 /create-canvas 斜杠命令,在 GitHub Copilot app 中创建浏览器 canvas。

例如,在请求 Copilot 更新一个 UI 组件后,你可以使用以下命令创建 canvas:/create-canvas Open this app in a browser canvas

这会在 canvas 中打开你的应用程序,以便预览结果。如果某些部分需要调整,你可以启用 Enable Canvas Dev Mode,并使用 Pick & Polish 直接在 canvas 中选择元素,将其作为下一次请求的上下文。你可以指向页面的特定部分、请求更新,并持续优化结果。

使用 Agent Merge 保持工作推进

变更准备就绪后,下一步是创建拉取请求,并进入标准的 CI 和评审流程。Agent Merge 通过监控拉取请求并协助处理评审期间出现的任务,将这一工作流延伸到初始代码变更之后。

要启动 Agent Merge 工作流,请在 Copilot app 中打开拉取请求选项并选择 Agent Merge。随后,你可以选择允许 Agent Merge 执行的操作,例如处理评审反馈、协助解决 CI 失败,或处理合并冲突。

启用 Agent Merge 后,它会在拉取请求经过评审和 CI 流程时持续监控。如果出现问题,它可以协助处理所要求的修改,并为拉取请求合并做好准备。所需检查全部通过后,你可以选择合并该拉取请求。

开始探索 Copilot app

Copilot app 将开发工作流的不同环节集中于一处。从一个项目开始:随后,你可以为不同工作线创建独立会话,创建 canvas 来可视化和优化工作,并通过 Agent Merge 推动变更完成拉取请求流程。

还有更多内容值得探索,包括进一步定制和扩展工作流的方法。了解 GitHub Copilot app 的最佳方式,就是亲自试用。

是否有一项任务一直搁置在你的待办列表中?不妨使用 GitHub Copilot app 尝试处理它,看看你如何借助 AI Agent 进行探索、构建和交付。

作者

GitHub 高级开发者倡导者

English / 原文

AI coding tools often begin with a chat window. While that works for quick questions or generating code, real software development rarely happens in a straight line. One minute you’re fixing a bug, the next you’re reviewing a pull request, digging into an unfamiliar part of the codebase, or exploring a new idea.

The GitHub Copilot app is designed for that kind of workflow. Instead of treating AI as a single conversation, it gives you a workspace where you can manage multiple agent sessions, switch between tasks without losing momentum, and work with AI agents across the different parts of your workflow.

Your work starts with a project

Agent sessions are connected to a project, giving each session the repository context needed for a specific task.

From the GitHub Copilot app home screen, you can choose a project you’ve worked with before or add a new one from GitHub or your local machine. Once a project is selected, you can start a session with the codebase, files, and tools needed to begin working on a task.

For example, you might want to add a breadcrumb navigation component to an existing application. Instead of manually searching through files to find the right place to make the change, you can describe the update you want to make. The session can examine the project, identify relevant files, make the changes, and run tests to help validate the work.

By starting each session with the project already connected, you can spend more time working and less time preparing your environment.

Keep multiple threads moving

Once you’ve selected a project and started an agent session, you can create additional sessions for other questions, ideas, or tasks without interrupting your existing work. Quick Chat lets you start a new conversation from the Copilot app home screen. Each conversation can focus on a different area of work, giving you a dedicated space to explore ideas, ask questions, or work through changes.

For example, you can open a Quick Chat session to ask Copilot about Copilot, such as how worktrees function in the app, while another agent session continues working on a project update. You can also use Quick Chat to investigate how your codebase works, explore potential approaches, or gather context before deciding how to move forward.

When you return to your original session, you can pick up where you left off, review the changes, and make any updates needed to move the task forward.

Multiple sessions let you follow different threads of work without losing track of where each task stands.

Make your work interactive with canvas

When working on a UI change, seeing the result can be just as important as reviewing the code behind it. The GitHub Copilot app lets you open a browser canvas directly within your workflow, giving you a way to preview your application and make changes based on what you see.

A canvas is a shared, interactive space built around work artifacts, such as a plan, a kanban board, a checklist, or a running application. It provides a visual representation of your work alongside your conversation, so you can move beyond a text-based view of the task.

Rather than opening a new terminal and launching a separate browser, you can create a browser canvas in the GitHub Copilot app using the /create-canvas slash command.

For example, after asking Copilot to update a UI component, you can create a canvas with: /create-canvas Open this app in a browser canvas

This opens your application in a canvas where you can preview the result. If something needs adjusting, you can Enable Canvas Dev Mode and use Pick & Polish to select elements directly in the canvas and use them as context for your next request. You can point to a specific part of the page, request an update, and continue refining the result.

Keep work moving with Agent Merge

Once your changes are ready, the next step is creating a pull request and moving through the standard CI and review process. Agent Merge helps extend that workflow beyond the initial code change by monitoring the pull request and assisting with tasks that come up during review.

To start an Agent Merge workflow, open the pull request options in the Copilot app and select Agent Merge. From there, you can choose which actions Agent Merge can take, such as addressing review feedback, helping resolve CI failures, or handling merge conflicts.

After Agent Merge is enabled, it monitors the pull request as it moves through the review and CI process. If issues come up, it can help address requested changes and prepare the pull request for merge. Once the required checks have passed, you can choose to merge the pull request.

Start exploring the Copilot app

The Copilot app brings together the different parts of your development workflow in one place. Start with a project. From there, you can create separate sessions for different threads of work, create a canvas to visualize and refine your work, and keep changes moving through the pull request process with Agent Merge.

There’s more to explore, including additional ways to customize and extend your workflow. The best way to learn the GitHub Copilot app is to try it yourself.

Have a task that’s been sitting in your backlog? Try it with the GitHub Copilot app and see how you can explore, build, and ship with AI agents.

Written by

Senior Developer Advocate, GitHub