---
title: AI Impact
description: >-
  Measure the impact of AI coding assistants on your software delivery
  performance.
breadcrumbs: Docs > Delivery Performance > AI Impact
---

# AI Impact

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

{% callout %}
##### Join the Preview!

AI Impact is available to all Datadog customers in Preview.
{% /callout %}

## Overview{% #overview %}

AI Impact measures how AI coding assistants affect your software delivery performance. Measuring their impact requires configuring an integration with a supported provider.

## Setup{% #setup %}

### Prerequisites{% #prerequisites %}

- [DORA Metrics](https://docs.datadoghq.com/delivery_performance/dora_metrics/setup.md) set up with deployment and commit data.
- An integration configured with a supported AI coding tool provider.

### Supported tools{% #supported-tools %}

| Tool                                                                                                | Per-Commit Granularity | User Activity Granularity |
| --------------------------------------------------------------------------------------------------- | ---------------------- | ------------------------- |
| [Cursor](https://docs.datadoghq.com/integrations/cursor.md?tab=cursorintegrationindatadog#overview) | ✔                      | ✔                         |
| [Claude Code API](https://docs.datadoghq.com/integrations/anthropic-usage-and-costs.md)             | ✔                      |
| [GitHub Copilot](https://docs.datadoghq.com/integrations/github-copilot.md)                         | ✔                      |

### Granularity modes{% #granularity-modes %}

AI Impact metrics can be analyzed at two levels of granularity. The granularity mode being used determines how commits are classified as "AI-assisted" or "non-AI" for all metrics.

By default, Datadog selects the most precise granularity mode that all integrated tools have in common, so that metrics are comparable across tools on an equal basis. For example, if you're using only Cursor, metrics are classified per-commit because that's the most precise method available. If you're using both Cursor and Claude Code, metrics are classified based on user activity because per-commit is not available for Claude Code.

{% dl %}

{% dt %}
Per-Commit
{% /dt %}

{% dd %}
A commit is classified as AI-assisted when there is evidence that AI directly contributed code to that specific commit (for example, Cursor reports AI-generated lines). Each commit is independently tagged. This is the most precise method, available for tools that provide commit-level data.
{% /dd %}

{% dt %}
User Activity
{% /dt %}

{% dd %}
Compares delivery metrics between active and non-active users of the selected tool. A user is considered active on a given day if they performed any interaction with the tool (for example, accepted a suggestion, used chat, or triggered an agent). Commits are attributed to the active or non-active group based on their author's activity on the day the commit was created.
{% /dd %}

{% /dl %}

## Impact metrics{% #impact-metrics %}

| Metric              | Definition                                                                                                                                                                                                                                                           |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AI-assisted PRs     | PRs containing at least one AI-assisted commit, divided by total PRs.                                                                                                                                                                                                |
| PR Throughput       | Number of PRs deployed per user per day for AI-assisted authors compared to non-assisted authors.                                                                                                                                                                    |
| PR Cycle Time       | Median time from a PR's first commit to merge for AI-assisted PRs compared to non-assisted PRs.                                                                                                                                                                      |
| Change Failure Rate | Failure rate weighted by the proportion of AI-assisted commits in each deployment, compared to the weighted rate for non-assisted commits. For example, if a failed deployment has 3 out of 10 commits assisted by AI, only 30% of that failure is attributed to AI. |
| Recovery Time       | Median recovery time of failed deployments containing AI-assisted commits compared to deployments without.                                                                                                                                                           |

{% alert level="info" %}
Change Failure Rate only includes deployments linked to code changes. Configuration-only or infrastructure deployments are excluded to help the comparison reflect the impact of AI on code-related failures. This differs from standard DORA Change Failure Rate, which counts all deployment types.
{% /alert %}

{% alert level="info" %}
For GitHub only, PR-level metrics exclude PRs whose commits are entirely bot-authored. This keeps automated activity out of the non-AI baseline.
{% /alert %}

## Further Reading{% #further-reading %}

- [Learn about DORA Metrics](https://docs.datadoghq.com/delivery_performance/dora_metrics.md)
- [Set up DORA Metrics](https://docs.datadoghq.com/delivery_performance/dora_metrics/setup.md)
- [Learn how DORA metrics are calculated](https://docs.datadoghq.com/delivery_performance/dora_metrics/calculation.md)
