> For the complete documentation index, see [llms.txt](https://help.swarmia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.swarmia.com/features/ai-tools/claude-code-activity.md).

# Claude Code activity

See detailed Claude Code activity patterns across teams and modes

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&amp;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 guide on [understanding the impact of AI tools](/guides/understand-the-impact-of-ai-tools.md).

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

## Setup

See our instructions for [enabling the Claude Code integration](/settings/integrations/ai-coding-tool-integrations/claude-code-integration.md).

## Definitions

* **Active users** = The number of users who have accepted code or used chat.
* **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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.swarmia.com/features/ai-tools/claude-code-activity.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
