You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/reference/copilot-usage-metrics/copilot-usage-metrics.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,10 +43,10 @@ These metrics appear directly in the {% data variables.product.prodname_copilot_
43
43
| Language usage per day | Daily breakdown of languages used. |
44
44
| Model usage | Distribution of AI models used for chat. |
45
45
| Model usage per day | Daily breakdown of chat model usage. |
46
-
| Model usage per chat mode | Model usage by {% data variables.product.prodname_copilot_short %} feature (Ask, Edit, Agent). |
46
+
| Model usage per chat mode | Model usage by {% data variables.product.prodname_copilot_short %} feature (ask, edit, agent). |
47
47
| Model usage per language | Distribution of languages broken down by model. |
48
48
| Most used chat model | The most frequently used chat model in the last 28 days. |
49
-
| Requests per chat mode | Number of chat requests by mode (Ask, Edit, Agent). |
49
+
| Requests per chat mode | Number of chat requests by mode (ask, edit, agent). |
50
50
51
51
## Code generation dashboard metrics
52
52
@@ -55,11 +55,11 @@ These metrics appear in the code generation dashboard and provide a breakdown of
55
55
| Metric | Description |
56
56
|:--|:--|
57
57
| Lines of code changed with AI | Total lines of code added and deleted across all modes in the last 28 days. |
58
-
| Agent contribution | Percentage of lines of code added and deleted by agents (including Edit, Agent, and custom modes) in the last 28 days. |
58
+
| Agent contribution | Percentage of lines of code added and deleted by agents (including edit, agent, and custom modes) in the last 28 days. |
59
59
| Average lines deleted by agent | Average number of lines automatically deleted by agents on behalf of active users during the current calendar month. |
60
60
| Daily total of lines added and deleted | Total number of lines added to and deleted from the codebase across all modes for each day. |
61
61
| User-initiated code changes | Lines suggested or manually added by users through code completions and chat panel actions (insert, copy, or apply). |
62
-
| Agent-initiated code changes | Lines automatically added to or deleted from the codebase by agents on behalf of users across Edit, Agent, and custom modes. |
62
+
| Agent-initiated code changes | Lines automatically added to or deleted from the codebase by agents on behalf of users across edit, agent, and custom modes. |
63
63
| User-initiated code changes per model | User-initiated lines of code, grouped by model used in the IDE. |
64
64
| Agent-initiated code changes per model | Agent-initiated lines of code, grouped by model performing the agent actions. |
65
65
| User-initiated code changes per language | User-initiated lines of code, grouped by programming language. |
@@ -71,19 +71,24 @@ These fields appear in the exported NDJSON reports and in the {% data variables.
71
71
72
72
| Field | Description |
73
73
|:--|:--|
74
-
|`agent_edit`|A dedicated bucket in the API and reports. Captures lines added and deleted directly by {% data variables.product.prodname_copilot_short %} Agent and Edit mode.<br>These are not included in suggested metrics, since agent edits don’t follow a simple suggestion to acceptance flow. |
74
+
|`agent_edit`| Captures lines added and deleted when {% data variables.product.prodname_copilot_short %} (in agent and edit mode) writes changes directly into your files in the IDE. `agent_edit` is not included in suggestion-based metrics and may not populate suggestion-style fields (for example, `user_initiated_interaction_count`). Counts edits from custom agents as well. |
75
75
|`report_start_day` / `report_end_day`| Start and end dates for the 28-day reporting period. |
76
76
|`day`| Calendar day this record represents. |
77
77
|`enterprise_id`| Unique ID of the enterprise. |
78
78
|`organization_id` (API only) | Unique ID of the organization. |
79
79
|`user_id` / `user_login`| Unique identifier and {% data variables.product.github %} username for the user. |
80
-
|`user_initiated_interaction_count`| Number of explicit prompts sent to {% data variables.product.prodname_copilot_short %}.<br><br> Only counts messages or prompts actively sent to the model. Does **not** include opening the chat panel, switching modes (for example, Ask, Edit, or Agent), using keyboard shortcuts to open the inline UI, or making configuration changes. |
80
+
|`user_initiated_interaction_count`| Number of explicit prompts sent to {% data variables.product.prodname_copilot_short %}.<br><br> Only counts messages or prompts actively sent to the model. Does **not** include opening the chat panel, switching modes (for example, ask, edit, or agent), using keyboard shortcuts to open the inline UI, or making configuration changes. |
81
+
|`chat_panel_agent_mode`| Captures user-initiated interactions in the chat panel with agent mode selected. |
82
+
|`chat_panel_ask_mode`| Captures user-initiated interactions in the chat panel with ask mode selected. |
83
+
|`chat_panel_custom_mode`| Captures user-initiated interactions in the chat panel with a custom agent selected. |
84
+
|`chat_panel_edit_mode`| Captures user-initiated interactions in the chat panel with edit mode selected. |
85
+
|`chat_panel_unknown_mode`| Captures user-initiated interactions in the chat panel where the mode is unknown. |
81
86
|`code_generation_activity_count`| Number of distinct {% data variables.product.prodname_copilot_short %} output events generated. <br><br> **Includes:** All generated content, including comments and docstrings. <br> **Multiple blocks:** Each distinct code block from a single user prompt counts as a separate generation. <br> **Note:** This metric is not directly comparable to `user_initiated_interaction_count`, since one prompt can produce multiple generations. |
82
87
|`code_acceptance_activity_count`| Number of suggestions or code blocks accepted by users. <br><br> **Counts:** All built-in accept actions, such as “apply to file,” “insert at cursor,” “insert into terminal,” and use of the **Copy** button. <br> **Does not count:** Manual OS clipboard actions (for example, <kbd>Ctrl</kbd>+<kbd>C</kbd>). <br> **Granularity:** Each acceptance action increments the count once, regardless of how many code blocks were generated by the initial prompt. |
83
-
|`loc_suggested_to_add_sum`| Lines of code {% data variables.product.prodname_copilot_short %} suggested to add (completions, inline chat, chat panel, etc.; **excludes**Agent edits). |
88
+
|`loc_suggested_to_add_sum`| Lines of code {% data variables.product.prodname_copilot_short %} suggested to add (completions, inline chat, chat panel, etc.; **excludes**agent edits). |
84
89
|`loc_suggested_to_delete_sum`| Lines of code {% data variables.product.prodname_copilot_short %} suggested to delete (future support planned). |
85
90
|`loc_added_sum`| Lines of code actually added to the editor (accepted completions, applied code blocks, agent/edit mode). |
86
-
|`loc_deleted_sum`| Lines of code deleted from the editor (currently from Agent edits). |
91
+
|`loc_deleted_sum`| Lines of code deleted from the editor (currently from agent edits). |
87
92
|`totals_by_ide`| Breakdown of metrics by IDE used. |
88
93
|`totals_by_feature`| Breakdown of metrics by {% data variables.product.prodname_copilot_short %} feature (e.g., inline chat, chat panel). |
89
94
|`totals_by_language_feature`| Breakdown combining language and feature dimensions. |
0 commit comments