注意
Copilot 编码智能体 为 公共预览版,可能会变动。 在预览期间,该功能的使用须遵循“GitHub 预发行许可条款”。
For an overview of Copilot 编码智能体, see About Copilot coding agent.
Introduction
After you give Copilot a task, it works autonomously in the background to complete it. See About Copilot coding agent.
The Agents page provides an overview of your agent sessions across repositories. From this page, you can kick off new tasks and track Copilot's progress.
During or after an agent session, you can inspect the session logs to understand Copilot's approach to your problem.
Tracking agent sessions from the Agents page
You can see a list of your running and past agent sessions on the Agents page at github.com/copilot/agents.
You can also reach this page by clicking the button next to the search bar on any page on GitHub, then selecting Agents from the sidebar.
For each session listed below the prompt field, you can see its status at a glance, or click on it to navigate to the linked pull request.
You can also start new agent sessions from this page. See 要求 Copilot 创建拉取请求.
Using the session logs to understand Copilot's approach
You can dive into Copilot's session logs to understand how it approached your task.
To view the session logs, click View session in the pull request timeline.
In the session logs, you can see Copilot's internal monologue and the tools it used to understand your repository, make changes and validate its work.
注意
Copilot has its own development environment, including the ability to run automated tests and linters, to validate its changes before it pushes.
Stopping a Copilot session
You can stop Copilot from continuing to work on a task by clicking Stop session in the session log viewer.
Reasons you might want to stop a session include:
- Copilot appears to be going in a wrong direction, and you want to stop it and give it more clarity.
- You made a mistake in your description of the required work, and you've decided to start over.
- You've realized that the change you asked for doesn't need to be made, so you want to stop Copilot from doing any more work on it.