Track Copilot Metrics In GitHub: A Dashboard View
GitHub has introduced a new feature that allows users to track GitHub Copilot lines of code (LoC) metrics directly within a code generation insights dashboard. This update provides valuable insights into how Copilot is being utilized across an enterprise, offering a clear view of code generation activities.
Accessing the Code Generation Insights Dashboard
To access this new dashboard, navigate to the Enterprises page in GitHub. Select your enterprise, and then click on the Insights tab. In the left sidebar, you'll find the Code generation option. Clicking on this will take you to the dashboard where you can view aggregated code generation activity across your entire enterprise. For those needing more detailed data, NDJSON downloads are available in the top-right corner of the dashboard. This feature ensures that enterprise owners and administrators have a comprehensive understanding of Copilot's impact on their organization's code development processes. The ability to track these metrics is crucial for optimizing the use of AI-assisted coding and ensuring that it aligns with the company's goals and standards. The dashboard not only provides a high-level overview but also allows for a deeper dive into specific aspects of code generation, making it an indispensable tool for managing and improving code quality and efficiency. Furthermore, the availability of NDJSON downloads ensures that data can be analyzed and integrated with other internal systems for a more holistic view of development operations. This level of detail and accessibility empowers enterprises to make informed decisions about their Copilot usage and to continuously refine their strategies for leveraging AI in coding. In summary, the code generation insights dashboard represents a significant step forward in providing transparency and control over AI-assisted code development, enabling enterprises to harness the full potential of Copilot while maintaining oversight and accountability.
Key Metrics Available
The dashboard offers a range of key metrics to provide a comprehensive view of code generation activity:
- Lines of code changed with AI: This metric shows the total lines of code added or deleted across all modes, giving you an overall sense of Copilot's impact on your codebase.
- User-initiated code changes: This includes lines suggested or manually added through completions and chat actions, reflecting how users are directly interacting with Copilot's suggestions.
- Agent-initiated code changes: This covers lines automatically added or deleted by agents across edit, agent, and custom modes, highlighting the autonomous contributions of Copilot.
- Activity by model and language: This breaks down both user-initiated and agent-initiated activity, grouped by model and language, allowing you to see which models and languages are most impacted by Copilot. Understanding these metrics is essential for several reasons. Firstly, it allows organizations to quantify the impact of Copilot on their development processes, providing concrete data to support investment in AI-assisted coding tools. Secondly, it enables them to identify areas where Copilot is most effective and areas where it may need further refinement or user training. Thirdly, it facilitates the tracking of code quality and consistency, ensuring that AI-generated code meets the same standards as manually written code. By monitoring these metrics over time, enterprises can continuously optimize their use of Copilot and maximize its benefits. The granularity of the data, particularly the breakdown by model and language, allows for targeted improvements and adjustments, ensuring that Copilot is tailored to the specific needs of each development team. In essence, the key metrics provided by the dashboard serve as a compass, guiding organizations towards more efficient, effective, and high-quality code development practices. This data-driven approach empowers them to make informed decisions and to continuously improve their utilization of AI in coding.
Enabling Copilot Usage Metrics
To access these metrics, the Copilot usage metrics policy must be enabled. To enable it, go to the Enterprises page, select your enterprise, and click on the AI Controls tab. In the left sidebar, select Copilot and scroll down to Metrics. Enabling this policy is a straightforward process, but it's crucial for unlocking the full potential of the code generation insights dashboard. Without this policy enabled, the dashboard will not display the valuable metrics described above, limiting your ability to track and optimize Copilot's usage. The AI Controls tab serves as a central hub for managing various aspects of AI-assisted coding within your enterprise, and the Metrics section specifically focuses on data collection and reporting. By enabling the Copilot usage metrics policy, you are granting GitHub permission to collect and aggregate data on code generation activity within your organization. This data is then used to populate the dashboard and provide you with the insights you need to make informed decisions. It's important to note that the data collected is anonymized and aggregated, ensuring that individual developers' contributions are not identifiable. The focus is on understanding overall trends and patterns in code generation activity, rather than scrutinizing individual performance. Therefore, enabling this policy is not only beneficial for gaining valuable insights but also for promoting a data-driven culture within your development teams. By providing transparency and accountability, you can foster a greater understanding of how AI is impacting your coding processes and encourage continuous improvement. In summary, enabling the Copilot usage metrics policy is a simple but essential step towards unlocking the full potential of the code generation insights dashboard and leveraging data to optimize your use of AI in coding.
Access Permissions
Enterprise owners, billing managers, and users with an enterprise custom role that has the View Enterprise Copilot Metrics permission can access the dashboard. Ensuring the right people have access to the dashboard is vital for effective monitoring and decision-making. Enterprise owners and billing managers typically have broad access to organizational data and settings, making it natural for them to also have access to Copilot metrics. This allows them to oversee the overall impact of Copilot on the enterprise and to make informed decisions about licensing and resource allocation. However, it's equally important to grant access to users with enterprise custom roles that have the View Enterprise Copilot Metrics permission. This allows for more granular control over who can view the data, ensuring that it's available to those who need it most. For example, a team lead or engineering manager might need access to the dashboard to track the impact of Copilot on their team's productivity and code quality. By granting them the appropriate custom role, you can ensure that they have the data they need to make informed decisions and to optimize their team's workflow. Furthermore, providing access to a wider range of users can promote a data-driven culture within the organization, encouraging everyone to understand and leverage the insights provided by the dashboard. It's important to carefully consider who needs access to the dashboard and to grant them the appropriate permissions accordingly. This ensures that the data is accessible to those who can use it most effectively, while also maintaining appropriate levels of security and control. In essence, access permissions are a key component of the overall governance and management of Copilot within an enterprise, ensuring that the right people have the right information to make informed decisions and to drive continuous improvement.
Additional Resources
For more detailed information, refer to our documentation. Disclaimer: The UI for features in public preview is subject to change.
The post Track Copilot code generation metrics in a dashboard appeared first on The GitHub Blog.
🔗 View original changelog entry
📅 Published: Fri, 05 Dec 2025 18:40:33 +0000
For further reading on GitHub Copilot and its capabilities, you can check out GitHub Copilot Documentation.