{"meta":{"title":"Viewing the code generation dashboard","intro":"The code generation dashboard shows how Copilot generates code across your enterprise, including activity from both users and agents.","product":"GitHub Copilot","breadcrumbs":[{"href":"/en/copilot","title":"GitHub Copilot"},{"href":"/en/copilot/how-tos","title":"How-tos"},{"href":"/en/copilot/how-tos/administer-copilot","title":"Administer Copilot"},{"href":"/en/copilot/how-tos/administer-copilot/view-code-generation","title":"View code generation"}],"documentType":"article"},"body":"# Viewing the code generation dashboard\n\nThe code generation dashboard shows how Copilot generates code across your enterprise, including activity from both users and agents.\n\nBy 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.\n\nThe dashboard shows aggregated code generation activity, including:\n\n* **Lines of code changed with AI**. The total lines of code added and deleted across all modes.\n* **User-initiated code changes**. Lines suggested or manually added through completions and chat actions.\n* **Agent-initiated code changes**. Lines automatically added or deleted by agents across edit, agent, and custom modes.\n* **Activity by model and language**. User-initiated and agent-initiated activity grouped by model and language.\n\nFor a detailed list of available metrics and definitions, see [Data available in Copilot usage metrics](/en/copilot/reference/copilot-usage-metrics/copilot-usage-metrics#code-generation-dashboard-metrics).\n\n## Prerequisite\n\nTo access Copilot usage metrics, the **\"Copilot usage metrics\"** policy must be enabled:\n\n* [Managing policies and features for GitHub Copilot in your enterprise](/en/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-enterprise-policies#defining-policies-for-your-enterprise)\n* [Managing policies and features for GitHub Copilot in your organization](/en/copilot/how-tos/administer-copilot/manage-for-organization/manage-policies#enabling-copilot-features-and-models-in-your-organization)\n\n## Accessing the dashboard\n\n1. Navigate to your enterprise. For example, from the [Enterprises](https://github.com/settings/enterprises?ref_product=ghec\\&ref_type=engagement\\&ref_style=text) page on GitHub.com.\n2. Click the **Insights** tab.\n3. In the left sidebar, click **Code generation**.\n\n## Next steps\n\nTo learn how to interpret the data in each chart and act on usage trends, see [Interpreting usage and adoption metrics for GitHub Copilot](/en/copilot/reference/interpret-copilot-metrics)."}