Allison introduces an update for GitHub Copilot enterprise users: the ability to track lines of code metrics from Copilot directly in the code generation insights dashboard using detailed AI controls.

Track Copilot Code Generation Metrics in GitHub Insights Dashboard

GitHub enterprise users now have access to an enhanced dashboard for monitoring Copilot’s impact on code generation. The code generation insights dashboard provides:

  • Lines of Code (LoC) Metrics: Total lines added or deleted with AI assistance across all interaction modes.
  • User-Initiated Code Changes: Tracks code suggested or manually added through completions and chat actions in Copilot.
  • Agent-Initiated Code Changes: Includes lines automatically managed by agents in edit, agent, and custom modes.
  • Activity Breakdown: Metrics grouped by Copilot model, programming language, and initiation type (user or agent).

How to Access Metrics

  1. Go to the Enterprises page.
  2. Select your enterprise, then click on the Insights tab.
  3. In the sidebar, choose Code generation to view activity metrics.
  4. NDJSON files with more detailed data can be downloaded from the dashboard.

Enabling Metrics Collection

  • Metrics are visible only if the Copilot usage metrics policy is enabled.
  • Enable it via AI Controls, select your enterprise, then Copilot > Metrics.

Permissions and Access

  • The dashboard is accessible to enterprise owners, billing managers, and custom role users with View Enterprise Copilot Metrics permission.
  • For full details, consult GitHub’s official documentation.

Features in public preview may change as GitHub updates the UI and capabilities.

This post appeared first on “The GitHub Blog”. Read the entire article here