{"slug": "improved-accuracy-and-coverage-in-copilot-usage-metrics-reports", "title": "Improved accuracy and coverage in Copilot usage metrics reports", "summary": "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.", "body_md": "Improvement\n\n# Improved accuracy and coverage in Copilot usage metrics reports\n\nWe’ve made three improvements to the [Copilot usage metrics API](https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-usage-metrics?apiVersion=2026-03-10) 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.\n\n[What’s new](#whats-new)\n\n**GitHub Copilot CLI now reports suggested lines of code.** CLI activity now contributes to the`loc_suggested_to_add_sum`\n\nand`loc_suggested_to_delete_sum`\n\nfields, which previously always reported`0`\n\nfor 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 in`totals_by_ide`\n\n, so`totals_by_ide`\n\nreflects more of your Copilot users.**AI credits attributed more accurately.** We fixed two issues that caused some users to show`0.0`\n\nAI 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`\n\ntotals more completely reflect actual consumption.\n\n[Why this matters](#why-this-matters)\n\n**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 means`ai_credits_used`\n\ntotals 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.\n\n[Important notes](#important-notes)\n\n- These metrics are available to enterprise administrators and organization owners who have access to\n[Copilot usage metrics](https://docs.github.com/copilot/concepts/copilot-usage-metrics)through the REST API. - Copilot CLI reports suggested lines of code from CLI version\n`1.0.57`\n\nonward. Code generation de-duplication applies from version`1.0.64`\n\nonward. Between`1.0.57`\n\nand`1.0.64`\n\n, 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.\n\nVisit the [Copilot usage metrics API documentation](https://docs.github.com/enterprise-cloud@latest/rest/copilot/copilot-usage-metrics?apiVersion=2026-03-10) to learn more.", "url": "https://wpnews.pro/news/improved-accuracy-and-coverage-in-copilot-usage-metrics-reports", "canonical_source": "https://github.blog/changelog/2026-07-02-improved-accuracy-and-coverage-in-copilot-usage-metrics-reports", "published_at": "2026-07-02 23:19:06+00:00", "updated_at": "2026-07-07 01:25:57.311702+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["GitHub", "GitHub Copilot", "Copilot CLI"], "alternates": {"html": "https://wpnews.pro/news/improved-accuracy-and-coverage-in-copilot-usage-metrics-reports", "markdown": "https://wpnews.pro/news/improved-accuracy-and-coverage-in-copilot-usage-metrics-reports.md", "text": "https://wpnews.pro/news/improved-accuracy-and-coverage-in-copilot-usage-metrics-reports.txt", "jsonld": "https://wpnews.pro/news/improved-accuracy-and-coverage-in-copilot-usage-metrics-reports.jsonld"}}