> 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-impact/ai-adoption/ai-assisted-prs.md).

# AI-assisted PRs

See how merged pull requests break down by AI tool and mode, and explore the pull requests behind the numbers.

Available at [AI impact → AI adoption → AI-assisted PRs](https://app.swarmia.com/ai/adoption/code)

AI-assisted PRs shows how many pull requests your teams merge with different AI tools and modes. Use it to understand how AI involvement in your code changes over time and investigate the pull requests behind the numbers.

## How to use it

Choose a timeframe and, optionally, a team or pull request filters. Use the tool and mode selectors to focus on the AI involvement you want to examine:

* **Tools:** Select the [AI tools](https://help.swarmia.com/settings/integrations/ai-coding-tool-integrations.md) to include.
* **Modes:** Select [AI-assisted](https://help.swarmia.com/features/ai-impact/ai-tool-detection-and-filters.md#ai-assisted), [cloud agent](https://help.swarmia.com/features/ai-impact/ai-tool-detection-and-filters.md#cloud-agent), and/or [review agent](https://help.swarmia.com/features/ai-impact/ai-tool-detection-and-filters.md#review-agent). AI-assisted and cloud agent are selected by default.
* **High confidence only:** Optionally restrict AI-assisted matches to [high-confidence matches](https://help.swarmia.com/features/ai-impact/ai-tool-detection-and-filters.md#ai-assisted-high-confidence-only).

The **PRs merged by tool** and **PRs merged by mode** charts show the same merged pull requests grouped in two ways. Both reflect your tool, mode, and confidence selections. **Everything else** includes pull requests that don't match those selections, including pull requests with no AI detected and those attributed only to unselected tools or modes.

A pull request can appear in more than one tool or mode group. The total counts each pull request once, so it may be lower than the sum of the groups.

## Explore pull requests

The tables below the charts list the merged pull requests in the selected timeframe:

* **Selected AI:** Pull requests that match at least one selected tool and mode combination, subject to the confidence selection.
* **Everything else:** Pull requests that don't match those selections.

Each table shows the repository, detected AI tools and modes, lines changed, and author for each pull request. You can sort by repository or lines changed and download the table as a CSV.

## What to look for

Look at how the number of merged pull requests changes over time and how different tools and modes contribute. Explore the tables to understand the work behind a trend. A change in throughput alone doesn't show whether AI caused it or whether the work delivered more value.

For a broader view of delivery, use [code metrics](https://app.swarmia.com/metrics/code) to examine cycle time, review time, and [batch size](https://help.swarmia.com/guides/improve-pull-request-flow/analyzing-pull-request-batch-size.md). You can use the [AI tool filter](https://help.swarmia.com/features/ai-impact/ai-tool-detection-and-filters.md#ai-tool-filter) to focus on pull requests involving particular tools and modes.

## Frequently asked questions

### Why is the total under "PRs merged" lower than the sum of its parts?

A single pull request can be associated with multiple AI tools and modes. For example, a developer might use both Cursor and Claude Code on the same PR. In that case, the PR is counted once in the Cursor category and once in the Claude Code category.

### How do you determine which AI tools to show for a PR?

Read more about our [automatic AI tool detection](https://help.swarmia.com/features/ai-impact/ai-tool-detection-and-filters.md).


---

# 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-impact/ai-adoption/ai-assisted-prs.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.
