# GitHub Copilot activity (old)

{% hint style="warning" %}
The data on this view **stopped updating on April 2nd, 2026** as GitHub closed their old GitHub metrics API. The page and the underlying **data will be removed June 1st, 2026**.\
\
See the documentation for the new GitHub Copilot activity breakdown view with more detailed data [here](/features/ai-tools/github-copilot-activity.md).
{% endhint %}

Available at [AI tools → AI activity → GitHub Copilot (old)](https://app.swarmia.com/ai/activity/github-copilot/old)

<figure><img src="/files/M4JYmUNnEWROB8BrwEXD" alt=""><figcaption></figcaption></figure>

If you're looking for a productivity boost from GitHub Copilot, it's not enough to enable the tool for your teams and then forget it. People need to pick up the new habit and invest the time to learn how to use it effectively. To support that, you need proper visibility into the current activity patterns.

With GitHub Copilot activity breakdown, you can:

* Understand where Copilot is gaining traction and where extra support may be needed.
* Know if people are just trying it out or actively relying on it in their work.
* Notice patterns in how suggestions are used across editors and programming languages.

{% hint style="warning" %}
GitHub reports Copilot usage only:

1. for teams with **at least 5 users** with an active license
2. based on the **direct members** of the GitHub team, not the child teams' members
   {% endhint %}

Read more in our full guide on [measuring the productivity impact of AI tools](/features/ai-tools.md).

To track GitHub Copilot adoption and licenses, see [AI adoption metrics](/features/ai-tools/ai-adoption.md).

## Setup

See our instructions for [enabling the GitHub Copilot integration](/settings/integrations/ai-coding-tool-integrations/github-copilot-integration.md).

## Definitions

* **Active users** = Users who received a suggestion (even if they didn't accept it) in their IDE or chatted with Copilot on a given day. Users must have telemetry enabled in their IDE for their activity to be included. [Read more](https://docs.github.com/en/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization#understanding-the-last_activity_at-calculation)
* **Engaged users** = Users who engaged with Copilot (accepted a code suggestion, prompted Copilot chat, triggered a PR Summary, etc) on a given day.
* **Code suggestions** = The number of Copilot code suggestions (from IDE code completions)
* **Code acceptances** = The number of Copilot code suggestions (from IDE code completions) accepted by users
* **Acceptance rate (suggestions)** = *Code acceptances / Code suggestions*
* **Lines suggested** = The number of lines of code suggested by Copilot (via IDE code completions)
* **Lines accepted** = The number of lines of code suggested by Copilot (via IDE code completions) and accepted by users
* **Acceptance rate (lines)** = *Lines suggested / Lines accepted*

{% hint style="warning" %}
Not all accepted code ends up in the codebase. An engineer could accept 200 Copilot-generated lines over the course of creating a 10-line pull request.

You can't use these metrics to get an accurate number of the share of your code that's AI-generated.
{% endhint %}

## Frequently asked questions

### Why does the team selector have different teams than the ones I have configured in Swarmia?

GitHub reports Copilot usage only based on the GitHub teams in your organization. You can configure the [team memberships in GitHub](https://docs.github.com/en/organizations/organizing-members-into-teams/about-teams). We recommend [setting up your Swarmia teams](/settings/organization/managing-teams.md) based on your GitHub teams, so that they're a one-to-one match.

### Why is some/all of the data missing for the selected team?

Possible reasons:

1. **Copilot Metrics API** must be enabled in your organization for us to get the usage data. [Check your organization's settings](https://help.swarmia.com/features/ai-tools/pages/MWquPeW0E3B9tkb9hchn#id-2.-enable-copilot-metrics-api). It can take up to 6 hours for Swarmia to sync the data after you've enabled the API.
2. GitHub reports Copilot usage only for days when the team had **at least 5 users** with an active license. Try selecting a larger team or another timeframe.
3. GitHub reports Copilot usage only based on the **direct members** of the GitHub team, not the child teams' members.

### Do these metrics include the Copilot coding agent and Copilot agent mode?

* [**Copilot coding agent**](https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent) works autonomously in GitHub Actions to complete tasks assigned through GitHub issues or GitHub Copilot Chat prompts, and creates pull requests with the results.
* [**Copilot agent mode**](https://docs.github.com/en/copilot/how-tos/chat-with-copilot/chat-in-ide?tool=visualstudio#copilot-edits-1) allows Copilot to make autonomous edits directly in your local development environment (as a part of the Copilot Edits feature in Visual Studio and Visual Studio Code).

No, the GitHub Copilot activity breakdown in Swarmia includes only IDE code completions.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.swarmia.com/features/ai-tools/github-copilot-activity-old.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
