megachangelog
Feature

Copilot usage metrics API adds agent app activity

The Copilot usage metrics API now includes activity data from agent apps running in GitHub workflows, allowing teams to track usage of partner agents like Claude and Codex.

Since agent apps arrived on GitHub, teams have been able to run agents from partners like Claude and Codex directly in their GitHub workflows. The Copilot usage metrics API now reports that activity, broken out by individual agent. The usage metrics API does this in the enterprise, organization, enterprise-user, and organization-user 1-day and 28-day reports.

What’s new

A new optional totals_by_3rd_party_agent array contains one entry per recognized agent app. Each entry includes:

  • agent_name: The agent’s display name. Display names can change, so group on agent_id rather than this field.
  • agent_id: The agent’s stable identifier, and the right key for joining across reporting periods.
  • user_initiated_interaction_count: The number of user-initiated agent app job starts.
  • session_count: The number of agent app sessions. Included in the aggregated enterprise and organization reports only. Per-user entries omit this field.

Why this matters

Until now, agent activity in your usage metrics was effectively a single bucket, so there was no way to tell Copilot coding agent work apart from work done through other agents. As teams adopt more than one agent, that made it hard to answer basic questions: which agents are actually being used, by how many people, and how does adoption of a newly rolled-out agent compare to the one it was meant to supplement.

Breaking activity out per agent lets you distinctly track each agent app, compare adoption across them, and ground rollout and licensing decisions in real usage rather than assumption.

Important notes

  • The nested user_initiated_interaction_count counts agent app job starts. It is distinct from the top-level field of the same name, which counts explicit prompts from other supported telemetry. Do not sum the two or treat them as interchangeable.
  • Activity is aggregated by agent, so multiple apps belonging to the same agent are collapsed into one entry. Activity from agents that cannot be identified is omitted.
  • These metrics are available to enterprise owners and billing managers, organization owners, and anyone with a custom organization or enterprise role that grants the View Copilot Metrics permission. The Copilot usage metrics policy must be enabled.
  • The change is backward compatible. Existing fields keep their current shape, and reports omit totals_by_3rd_party_agent entirely when there is no recognized agent app activity for the reporting period.

Visit the Copilot usage metrics API documentation to get started, or see Agent apps metrics fields for the full field definitions.

The post Copilot usage metrics API adds agent app activity appeared first on The GitHub Blog.

copilotapiagentsmetrics

Source: original entry ↗

More from GitHub

Follow GitHub to get its new changes in your feed and email digest.

Feature

Copilot model policy API for enterprise, orgs, and teams

REST API endpoints now available to retrieve and update Copilot model policies for enterprises, teams, apps, and organizations, enabling centralized policy management at scale.

copilotapienterprisepolicymanagement
Announcement2026.10.19

GitHub Copilot models deprecated

GitHub has deprecated certain models across GitHub Copilot experiences including Chat, inline edits, and code completions, effective October 19, 2026. Users may need to migrate to supported models.

copilotmodelsdeprecationai
Announcement

Some Git over HTTPS may temporarily require authentication

GitHub may temporarily require authentication for clones and fetches of public repositories over HTTPS during periods of unusual traffic to protect service availability.

githttpsauthenticationavailabilitytraffic
See all GitHub changes →