Note
GitHub Copilot usage metrics are currently in public preview with data protection and subject to change.
The code generation dashboard shows how Copilot is generating code across your enterprise. By comparing user-initiated and agent-initiated activity across models, languages, and modes, you can see how teams are adopting AI-assisted and agent-driven development.
Prerequisite
"Copilot usage metrics" must be enabled on the AI Control tab. See Managing policies and features for GitHub Copilot in your enterprise.
Accessing the dashboard
- Go to the Enterprises page and select your enterprise.
- Click the Insights tab.
- In the left sidebar, click Code generation.
What you can view
The dashboard shows aggregated code generation activity across your enterprise, including:
- Lines of code changed with AI. The total lines of code added and deleted across all modes.
- User-initiated code changes. Lines suggested or manually added through completions and chat actions.
- Agent-initiated code changes. Lines automatically added or deleted by agents across edit, agent, and custom modes.
- Activity by model and language. User-initiated and agent-initiated activity grouped by model and language.
For a full list of available metrics and definitions, see Data available in Copilot usage metrics.
Next steps
- To explore adoption and usage trends across your enterprise, see Viewing the Copilot usage metrics dashboard.
- To understand how Lines of Code (LoC) metrics are measured and what affects their accuracy and coverage, see Lines of Code metrics.
- To access usage data programmatically, see REST API endpoints for Copilot usage metrics.