Skip to content

Latest commit

 

History

History
68 lines (47 loc) · 3.92 KB

File metadata and controls

68 lines (47 loc) · 3.92 KB
title Managing agent sessions
shortTitle Manage agent sessions
intro Monitor an agent's progress in real time, steer it with follow-up prompts, and stop or archive sessions.
versions
feature
copilot
contentType how-tos
allowTitleToDifferFromFilename true
category
Author and optimize with Copilot
redirect_from
/copilot/how-tos/use-copilot-agents/manage-agents
/copilot/how-tos/use-copilot-agents/cloud-agent/track-copilot-sessions
/copilot/how-tos/use-copilot-agents/coding-agent/track-copilot-sessions
/copilot/using-github-copilot/using-copilot-coding-agent-to-work-on-tasks/using-the-copilot-coding-agent-logs
/copilot/using-github-copilot/coding-agent/using-the-copilot-coding-agent-logs
/copilot/how-tos/agents/copilot-coding-agent/using-the-copilot-coding-agent-logs
/copilot/how-tos/agents/copilot-coding-agent/tracking-copilots-sessions
/copilot/how-tos/agents/copilot-coding-agent/track-copilot-sessions
/copilot/how-tos/agents/coding-agent/track-copilot-sessions

Use the agents panel on {% data variables.product.github %} to monitor and manage agent sessions across your repositories.

Monitor agent activity

Track sessions from the agents panel (available from any page on {% data variables.product.github %}) or from the agents page. Sessions that you started, or that another user prompted {% data variables.product.prodname_copilot_short %} to work on, appear in your sessions list.

Click a session to open the session log and overview, where you can monitor the agent's progress, token usage, and session length.

Review session logs

Session logs show {% data variables.product.prodname_copilot_short %}'s internal reasoning and the tools it used to understand your repository, make changes, and validate its work. {% data variables.product.prodname_copilot_short %} has its own ephemeral development environment, so it can run automated tests and linters to validate changes before pushing.

Trace commits to session logs

Commits from {% data variables.copilot.copilot_cloud_agent %} are authored by {% data variables.product.prodname_copilot_short %}, with the person who started the task listed as co-author. Each commit message includes a link to the session logs, so you can trace why a change was made during code review or an audit. Commits are signed and appear as "Verified" on {% data variables.product.github %}.

Steer an agent session

If {% data variables.product.prodname_copilot_short %} is heading in the wrong direction, or you realize your original prompt needs adjusting, you can redirect it without stopping the session.

  1. Open the agents page and select the session.

  2. In the prompt box below the session log, type your follow-up. For example:

    Use our existing ErrorHandler utility class instead of writing custom try-catch blocks for each endpoint.
    
  3. Press Enter. {% data variables.product.prodname_copilot_short %} implements your input after it finishes its current tool call.

Each steering message uses one premium request. Steering is not available for third-party coding agents.

Stop a session

If the task no longer needs to be done, or you want to start over with a new prompt, click Stop session in the session log viewer. Stopping a session ends the {% data variables.product.prodname_actions %} run and preserves any commits already pushed.

Archive sessions

Archive stopped sessions to remove them from your sessions list.

  1. Open the stopped session.
  2. Click {% octicon "kebab-horizontal" aria-label="More actions" %}, then click {% octicon "inbox" aria-hidden="true" aria-label="inbox" %} Archive session.
  3. In the dialog, click Yes, archive.

Further reading