Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI tool detection & filters

Swarmia automatically detects pull requests assisted by AI tools you've connected

Automatic AI tool detection

To help you understand how AI use affects developer productivity metrics, Swarmia automatically detects pull requests assisted by the AI tools you've connected. You can see the AI tools involved in an individual pull request by opening it anywhere in the app.

AI-assisted

In the app, this mode was previously called “Local edits (editor/CLI).” A pull request is considered AI-assisted if at least one of these conditions is met:

  • Any of its commits were authored or co-authored by an AI tool (high confidence)

  • Any of its commits has the Made-with: Cursor Git trailer (high confidence)

  • It has the claude-code-assisted label (high confidence)

  • Any of its commits were made by an author who used an AI tool within the previous 24 hours (low confidence)

You can see the reason for tagging an individual pull request in a tooltip by hovering over the AI tool badge:

Cloud agent

Swarmia attributes a PR to a cloud agent if the PR or its first commit has been authored by a cloud agent linked to one of the AI tools.

The AI coding agent used to create a pull request is shown on top of the pull request author’s avatar. You can hover over the avatar to see more details:

In Swarmia, pull requests authored by AI tools are attributed to the people who initiated them. For example, if GitHub Copilot creates a PR on your behalf, Swarmia shows you as its author.

Review agent

Swarmia attributes a PR to a review agent if it has reviews from a built-in review agent, or an author linked to a custom AI tool.

AI tool filter

You can use the AI tool filter to view pull requests in Code metrics, PR exclusion rules, and investment category rules based on the AI tools involved.

The filter includes two selections:

AI-assisted: High confidence only

This is an optional setting that applies to AI-assisted work only.

  • Enabled: Match only work directly tagged by AI tools (labeled with "high confidence" in the list above). This can result in underreporting AI involvement.

  • Disabled: Also match work based on the authors' activity times in AI tools (labeled with "low confidence" in the list above). This can result in overreporting AI involvement.

Frequently asked questions

Why is my PR marked AI-assisted even though I didn't use AI for it?

Some AI coding tool providers don't share PR-level activity data in their analytics APIs. To address this, we use certain heuristics, such as checking if the commit authors have used an AI tool within the previous 24 hours. (See the full list of rules above.)

This can result in false positives (overreporting AI involvement). For example, if you simultaneously work on tasks A and B, but only use AI for task A, Swarmia inaccurately associates the tool usage also with task B. You can use the high-confidence filter to avoid reporting false positives.

You can hover over the AI tool label to see the exact attribution reason for any pull request:

Why is the attribution window 24 hours?

It accounts for cases where you create code with AI today but commit it tomorrow. Also, some AI coding tool providers report user activity only on the daily level, so we can't get more granular than that.

You can use the high-confidence filter to disable the time-based attribution.

Why is my PR not attributed to a cloud agent?

Swarmia attributes a PR to a cloud agent if the PR or its first commit has been authored by a built-in cloud agent, or an author linked to a custom AI tool.

See the examples here.

Why is my PR not attributed to a review agent?

Swarmia identifies a review agent by matching the author of review comments against known email addresses, GitHub login patterns or display names for built-in review agents, or against the author linked to a custom AI tool.

Read more here.

Last updated

Was this helpful?