Skip to content

Commit 621cdf7

Browse files
Add more fields to table in "Data available in Copilot usage metrics" (#59642)
Co-authored-by: Laura Coursen <lecoursen@github.com>
1 parent aded6c9 commit 621cdf7

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

content/copilot/reference/copilot-usage-metrics/copilot-usage-metrics.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ These metrics appear directly in the {% data variables.product.prodname_copilot_
4343
| Language usage per day | Daily breakdown of languages used. |
4444
| Model usage | Distribution of AI models used for chat. |
4545
| 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). |
4747
| Model usage per language | Distribution of languages broken down by model. |
4848
| 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). |
5050

5151
## Code generation dashboard metrics
5252

@@ -55,11 +55,11 @@ These metrics appear in the code generation dashboard and provide a breakdown of
5555
| Metric | Description |
5656
|:--|:--|
5757
| 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. |
5959
| Average lines deleted by agent | Average number of lines automatically deleted by agents on behalf of active users during the current calendar month. |
6060
| Daily total of lines added and deleted | Total number of lines added to and deleted from the codebase across all modes for each day. |
6161
| 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. |
6363
| User-initiated code changes per model | User-initiated lines of code, grouped by model used in the IDE. |
6464
| Agent-initiated code changes per model | Agent-initiated lines of code, grouped by model performing the agent actions. |
6565
| 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.
7171

7272
| Field | Description |
7373
|:--|:--|
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. |
7575
| `report_start_day` / `report_end_day` | Start and end dates for the 28-day reporting period. |
7676
| `day` | Calendar day this record represents. |
7777
| `enterprise_id` | Unique ID of the enterprise. |
7878
| `organization_id` (API only) | Unique ID of the organization. |
7979
| `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. |
8186
| `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. |
8287
| `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). |
8489
| `loc_suggested_to_delete_sum` | Lines of code {% data variables.product.prodname_copilot_short %} suggested to delete (future support planned). |
8590
| `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). |
8792
| `totals_by_ide` | Breakdown of metrics by IDE used. |
8893
| `totals_by_feature` | Breakdown of metrics by {% data variables.product.prodname_copilot_short %} feature (e.g., inline chat, chat panel). |
8994
| `totals_by_language_feature` | Breakdown combining language and feature dimensions. |

0 commit comments

Comments
 (0)