Tracing Agent Commits to Session Logs
GitHub has enhanced its Copilot coding agent with improved commit traceability. When the agent makes commits, they now include an Agent-Logs-Url trailer in the commit message that links directly to the full session logs for that task.
Why This Matters
Key benefits of this change:
- Code review transparency: Reviewers can now click through from a commit to understand the full context of why Copilot made a particular change
- Audit trails: Organizations can trace agent-generated code back to the original session for compliance and verification purposes
- Permanent links: The session logs provide a permanent record of the agent's reasoning and actions throughout a task
Implementation Details
The agent continues to author commits with the human who initiated the task marked as co-author, maintaining clear accountability. The addition of the session logs URL in the commit message trailer makes this information easily accessible during code review workflows.
Availability
This feature is available to users of:
- Copilot Pro
- Copilot Pro+
- Copilot Business
- Copilot Enterprise
For Copilot Business and Enterprise subscribers, administrators must enable the coding agent from the "Policies" page before team members can use it.
For more details, see the documentation on tracking GitHub Copilot's sessions.