GitHub Copilot Coding Agent: Commit-to-Session-Log Tracing via Agent-Logs-Url
GitHub Copilot's coding agent now embeds an Agent-Logs-Url trailer in every commit it authors, creating a permanent, clickable link from any agent-generated commit back to the full session log that produced it. This makes it straightforward for reviewers to understand exactly why Copilot made a specific change during code review, and enables after-the-fact auditing of agent decisions without relying on reconstructed context. The feature is available to all Copilot Pro, Pro+, Business, and Enterprise subscribers.
Sources & Mentions
4 external resources covering this update
Overview
GitHub has added a new commit tracing capability to the Copilot coding agent: every commit the agent authors now includes an Agent-Logs-Url trailer that links directly back to the session log that generated that commit. This closes a key gap in agent auditability, giving developers and reviewers a permanent, navigable connection between the code change and the reasoning behind it.
How It Works
When the Copilot coding agent completes a unit of work and commits changes, it writes a Git trailer into the commit message:
Agent-Logs-Url: https://github.com/.../<session-logs-url>
This trailer is a standard Git extended header and appears alongside the existing commit attribution. Copilot-authored commits already carry the human task initiator as a co-author; the Agent-Logs-Url trailer adds a third piece of metadata: the direct URL to the session log.
Why This Matters
During Code Review
When a reviewer encounters an agent-generated commit in a pull request, they previously had to navigate separately to find the session that produced it — or rely on whatever context was visible in the PR description. The Agent-Logs-Url trailer eliminates that friction. A single click takes the reviewer to the full session log, where they can see the agent's reasoning, tool calls, subagent delegations, and validation steps.
For Audit and Compliance
Organizations operating Copilot coding agent at scale now have a durable, permanent link between every line of agent-generated code and the decision trail that produced it. This is particularly valuable in regulated environments where traceability requirements apply to code changes regardless of whether they were authored by a human or an AI system.
Commit Attribution
The commit structure for agent-authored work includes:
- Author: Copilot (the coding agent)
- Co-author: The human who assigned the issue or requested the change
- Trailer:
Agent-Logs-Urlpointing to the session log
This layered attribution model ensures that both the human accountability and the AI decision trail are captured in the commit history.
Availability
The feature is available to all subscribers of Copilot Pro, Copilot Pro+, Copilot Business, and Copilot Enterprise. For Business and Enterprise customers, an administrator must first enable Copilot coding agent from the Policies page.