# Claude Code activity breakdown

Available at [AI tools → AI activity → Claude Code](https://app.swarmia.com/ai/activity/claude-code)

<figure><img src="https://2772466312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMa8uBmGhQgR7MTPq9yh7%2Fuploads%2FZusKlJUQQDDdBk61tjd1%2F004057%402x.png?alt=media&#x26;token=ed849e64-0c4b-4737-9d1b-807021060d0c" alt=""><figcaption></figcaption></figure>

If you're looking for a productivity boost from Claude Code, 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 the Claude Code activity breakdown, you can:

* Understand where Claude Code 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 action proposals

Read more in our full guide on [measuring the productivity impact of AI tools](https://help.swarmia.com/use-cases/measure-the-productivity-impact-of-ai-tools).

To track Claude Code adoption and licenses, see [AI adoption metrics](https://help.swarmia.com/use-cases/measure-the-productivity-impact-of-ai-tools/ai-adoption-metrics).

## Setup

See our instructions for [enabling the Claude Code integration](https://help.swarmia.com/getting-started/integrations/ai-coding-tool-integrations/claude-code-integration).

## Definitions

* **Active users** = Users who have opened the Claude Code client, and have any logged activity.
* **Lines added / removed** = Total number of lines added / removed by the Claude Code across all files (not necessarily committed)
* **Actions accepted / rejected** = The number of Claude Code tool action proposals that the user accepted / rejected. Includes all file editing and creation actions.
* **Action acceptance rate** = *Actions accepted / (Actions accepted + Actions rejected)*

{% hint style="warning" %}
Not all accepted code ends up in the codebase. An engineer could accept 200 Claude Code-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 %}
