github GitHub Changelog ·

GitHub Copilot usage metrics API improvements

aiengineer
patch

GitHub has enhanced its Copilot usage metrics API with three key improvements for greater accuracy and coverage. These updates include reporting suggested lines of code from Copilot CLI, identifying IDEs for users previously seen only via server-side telemetry, and more complete AI credit attribution. These changes provide enterprise administrators and organization owners with more trustworthy data for analyzing Copilot adoption and consumption.

  • Copilot CLI reports suggested lines of code
  • IDE identification for more Copilot users
  • Accurate AI credit attribution
  • Metrics available to enterprise and organization owners
  • Version specifics for CLI reporting
Enhancements (3)
  • Copilot CLI reports suggested lines of code

    GitHub Copilot CLI now reports suggested lines of code, contributing to `loc_suggested_to_add_sum` and `loc_suggested_to_delete_sum` fields. Code generation counts are also more accurate on newer CLI versions due to de-duplication of suggested and accepted edits.

  • IDE identification for more Copilot users

    Users previously visible only through server-side telemetry now have their IDE and plugin versions surfaced in `totals_by_ide`, improving the reflection of your total Copilot user base.

  • Accurate AI credit attribution

    Two issues causing zero AI credit consumption for some users have been fixed. AI credit consumption not initially associated with an organization is now correctly attributed, and server-side telemetry users are now matched to their billing data for more complete consumption reporting.

Notes (2)
  • Metrics available to enterprise and organization owners

    These improved Copilot usage metrics are available through the REST API to enterprise administrators and organization owners.

  • Version specifics for CLI reporting

    Copilot CLI reports suggested lines of code from version 1.0.57 onward, with code generation de-duplication applying from version 1.0.64. Between versions 1.0.57 and 1.0.64, code generation activity may be slightly undercounted for the CLI.

Read the original announcement →

https://github.blog/changelog/2026-07-02-improved-accuracy-and-coverage-in-copilot-usage-metrics-reports