Skip to main content

Using the Copilot coding agent logs

You can use the session logs to understand Copilot's approach.

Wer kann dieses Feature verwenden?

Copilot-Programmier-Agent ist für benutzende Personen von GitHub Copilot Pro+ und GitHub Copilot Enterprise-Kunden verfügbar. Wir haben außerdem mit der Einführung für GitHub Copilot Business-Kunden begonnen. Du erhältst eine E-Mail, sobald das Feature für dich verfügbar ist.
Sign up for Copilot

Hinweis

Copilot-Programmier-Agent befindet sich in der public preview. Änderungen sind vorbehalten. Während der Vorschauphase unterliegt die Verwendung des Features den Lizenzbestimmungen für die Vorabversion von GitHub.

Introduction

After you assign an issue to Copilot, or use Copilot Chat to ask Copilot to create a pull request, Copilot works autonomously to complete the task. See About assigning tasks to Copilot.

During or after an agent session, you can inspect the session logs to understand Copilot's approach to your problem.

Using the session logs to understand Copilot's approach

To view the session logs, click View session in the pull request timeline.

Screenshot of a section of a pull request with the 'View session' button highlighted.

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.

Hinweis

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.

Screenshot of the log viewer with the 'Stop session' button highlighted.

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.

Further reading