Tracking Copilot's sessions
You can use the Agents page, Visual Studio Code and session logs to track Copilot's progress and understand its approach.
Who can use this feature?
Copilot coding agent is available with the GitHub Copilot Pro, GitHub Copilot Pro+, GitHub Copilot Business and GitHub Copilot Enterprise plans. The agent is available in all repositories, except where it has been explicitly disabled and repositories owned by managed user accounts.
Sign up for Copilot
In this article
Note
Copilot coding agent is in public preview and subject to change. During the preview, use of the feature is subject toGitHub Pre-release License Terms.
For an overview of Copilot coding agent, seeAbout Copilot coding agent.
Introduction
After you give Copilot a task, it works autonomously in the background to complete it. SeeAbout Copilot coding agent.
TheAgents page provides an overview of your agent sessions across repositories. From this page, you can kick off new tasks and track Copilot's progress.
You can also track Copilot's sessions in a specific repository from Visual Studio Code.
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 atgithub.com/copilot/agents.
You can also reach this page by clicking the button next to the search bar on any page on GitHub, then selectingAgents 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.
To view the session logs, click through to the pull request in the list, then find the "Copilot started work..." event in the timeline, and then clickView session.
You can also start new agent sessions from this page. SeeAsking Copilot to create a pull request.
Tracking sessions from Visual Studio Code
You can see a list of your running and past agent sessions for a specific repository in Visual Studio Code with theGitHub Pull Requests extension.
Once you've installed the extension, you can see Copilot's sessions by clicking theGitHub button in the sidebar.
For each session listed, you can see its status at a glance, or click on it to navigate to the pull request within Visual Studio Code.
To view the session logs, click on the pull request in the list, then clickView Session.
You can also start new agent sessions from Visual Studio Code. SeeAsking Copilot to create a pull request.
Using the session logs to understand Copilot's approach
You can dive into Copilot's session logs in GitHub or Visual Studio Code to understand how it approached your task.
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.
Note
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 clickingStop 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.