cd /news/developer-tools/improved-accuracy-and-coverage-in-co… · home topics developer-tools article
[ARTICLE · art-48548] src=github.blog ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Improved accuracy and coverage in Copilot usage metrics reports

GitHub announced three improvements to its Copilot usage metrics API, including CLI suggested lines of code reporting, IDE identification for server-side-only users, and more accurate AI credit attribution. These updates aim to provide enterprise administrators with more complete and trustworthy usage data across IDE, CLI, and server-side surfaces.

read2 min views1 publishedJul 2, 2026
Improved accuracy and coverage in Copilot usage metrics reports
Image: GitHub Changelog

Improvement

We’ve made three improvements to the Copilot usage metrics API that make its reports more complete and accurate: GitHub Copilot CLI now reports suggested lines of code, users seen only through server-side telemetry now have their IDE identified, and AI credit consumption is now attributed more completely.

What’s new GitHub Copilot CLI now reports suggested lines of code. CLI activity now contributes to theloc_suggested_to_add_sum

andloc_suggested_to_delete_sum

fields, which previously always reported0

for the CLI. Code generation counts are also more accurate on newer CLI versions, where suggested and accepted edits are de-duplicated so the same edit isn’t counted twice.IDE identified for more users. Users who were previously visible only through server-side telemetry now have their IDE and plugin versions surfaced intotals_by_ide , sototals_by_ide

reflects more of your Copilot users.AI credits attributed more accurately. We fixed two issues that caused some users to show0.0

AI credits despite real usage. First, AI credit consumption not associated with an organization was being dropped. It’s now attributed to the correct organization or enterprise. Second, users seen only through server-side telemetry were not being matched to their billing data. Their consumption is now included. Thanks to these updates,ai_credits_used

totals more completely reflect actual consumption.

Why this matters More complete coverage: Surfacing CLI suggested lines of code and identifying IDEs for server-side-only users means fewer blind spots in who is using Copilot and how.More trustworthy consumption data: Correcting AI credit attribution meansai_credits_used

totals more accurately reflect what your users actually consumed.Consistent analysis across surfaces: As Copilot usage spans the IDE, CLI, and server-side surfaces, these updates keep the reports aligned with real activity.

Important notes

  • These metrics are available to enterprise administrators and organization owners who have access to Copilot usage metricsthrough the REST API. - Copilot CLI reports suggested lines of code from CLI version 1.0.57

onward. Code generation de-duplication applies from version1.0.64

onward. Between1.0.57

and1.0.64

, code generation activity may be slightly undercounted for the CLI. - AI credit totals for previously-missed usage will increase as a result of these attribution fixes—values that were already reported are unchanged.

Visit the Copilot usage metrics API documentation to learn more.

── more in #developer-tools 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/improved-accuracy-an…] indexed:0 read:2min 2026-07-02 ·