---
title: Code Agents ROI
description: 'See what AI coding-agent spend delivered: follow Claude Code cost to the Jira and Linear features and merged pull requests it produced, and compare AI-assisted work with work that had no AI session.'
url: https://coralogix.com/docs/user-guides/ai/code-agents/roi/
product: ai
feature: Code Agents
feature_id: ai-center-code-agents
feature_identifier: ai/ai-center-code-agents
last_updated: '2026-11-23'
---

# Code Agents ROI

Most code agent dashboards stop at adoption and spend: who uses the agent, how many sessions, how many tokens. They don't answer the question that matters: what did that spend deliver? Code Agents ROI connects Claude Code cost to the work it produced. It follows the cost of each session to the Jira or Linear features it worked on and to the pull requests that merged. It then compares AI-assisted work with work that had no AI session, in your own repositories and teams.

You find it on the **Impact** tab: **AI Center** > **Code Agents** > **Claude** > **Impact**. It answers three questions:

1. Which features did the money fund?
2. Did our AI spend turn into merged code?
3. Do AI-assisted pull requests ship faster than work with no AI session?

[![The Impact tab of the Claude dashboard, with the Features section open](/docs/assets/images/impact-tab-cf66e426786ac8419f871c720022c411.webp)](https://coralogix.com/docs/assets/images/impact-tab-cf66e426786ac8419f871c720022c411.webp)

Availability

Code Agents ROI is available on the **[Claude](https://coralogix.com/docs/user-guides/ai/code-agents/claude-code.md)** dashboard, for Claude Code.

## Use cases

Which features did the money fund?

In **Features**, **Epic cost distribution** shows how many epics fall in each cost range. Select **Most expensive**, then an epic, to list its pull requests. **Cost not attributed** shows how much spend you cannot tie to a feature.

Did our AI spend turn into merged code?

In **Delivery**, read **Cost that merged** and **Cost per merged PR** beside **AI cost**. A large drop on **Cost that merged** means cost went to work that did not merge. Open **Models** to see which model it came from.

Do AI-assisted pull requests ship faster than work with no AI session?

**AI-assisted vs no AI session** compares **Time to PR** and **Time to merge** for the same repositories. **Where the time goes** splits the time into stages. A stage where the AI-assisted median is lower is where AI speeds delivery up.

The comparison runs on your own teams, repositories, and workflows, not on a synthetic benchmark. It compares different pieces of work, so treat it as a signal, not proof of cause.

## Set up

You need `AI-CODE-AGENTS:READ` to view the dashboards and `INTEGRATIONS:DEPLOY` to connect GitHub, Jira, or Linear. See [Permissions](https://coralogix.com/docs/user-guides/aaa/access-control/permissions/permissions-list.md). Connect the sources in any order:

| Source                                                                                                                                                   | What it gives                                                                                                                                                                                      |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Claude Code](https://coralogix.com/docs/integrations/ai-observability/claude/claude-code.md#span-telemetry) with span telemetry turned on               | Session cost at list price. Restart Claude Code after you turn it on. The [Claude Enterprise API](https://coralogix.com/docs/integrations/ai-observability/claude/claude-apis.md) adds actual cost |
| The Claude Code hooks                                                                                                                                    | The branch of each session, which ties cost to pull requests and items                                                                                                                             |
| [GitHub](https://coralogix.com/docs/integrations/ai-observability/github.md), with **Event format** set to **Pull request activity**                     | Pull requests with review and merge times, for **Delivery**                                                                                                                                        |
| [Jira](https://coralogix.com/docs/integrations/ai-observability/jira.md) or [Linear](https://coralogix.com/docs/integrations/ai-observability/linear.md) | Epics and stories, or projects and issues, with assignees and status, for **Features**                                                                                                             |

Without the hooks, these widgets read **Install the Claude hooks to see this data.**

* **Features**: **Cost per epic**, **Cost not attributed**, **Epic cost distribution**, and the **AI cost**, **Stories done**, **Models**, and **Cost / story done** columns of the list.
* **Delivery**: **Cost that merged**, **Cost per merged PR**, **AI cost that merged**, **AI-assisted vs no AI session**, and the **Merged PRs**, **Merge rate**, **Cost / merged PR**, and **Rewritten in 30d** columns of the breakdown.
* **Attributed cost** in the pull request drawers.

Put the Jira or Linear key in the branch name

Coralogix ties cost and pull requests to an item by its key, such as `ABC-123` in Jira or `TEAM-123` in Linear. The branch name exists before the pull request, so put the key there. The key decides how much cost reaches an item: cost on a branch with no key goes to **Cost not attributed**.

## Features

**Features** lists the work your teams delivered. A toggle sets the level: **Epic** or **Story** for Jira, **Project** or **Issue** for Linear. The labels follow the level, so **Epics delivered** and **Cost per epic** read **Stories delivered** and **Cost per story** at story level.

[![The Features portfolio view: Total AI cost, Epics delivered, Cost per epic, and Cost not attributed cards, with the Epic cost distribution and Epics delivered over time charts](/docs/assets/images/features-portfolio-7dd5bf2d69b9b6e18d335ad4309acb9d.webp)](https://coralogix.com/docs/assets/images/features-portfolio-7dd5bf2d69b9b6e18d335ad4309acb9d.webp)

The cards and charts give the portfolio view:

| Widget                        | What it shows                                                                                                                                                                                              |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Total AI cost**             | The AI cost for the period, against the previous period.                                                                                                                                                   |
| **Epics delivered**           | The items that reached the done status in the period, of all the items with AI cost against them.                                                                                                          |
| **Cost per epic**             | The AI cost of the delivered items divided by their number.                                                                                                                                                |
| **Cost not attributed**       | The AI cost that links to no item, and its share of the total.                                                                                                                                             |
| **Epic cost distribution**    | How many items fall in each cost range, so one expensive outlier does not read as the norm. Select **Most expensive** to list the five items with the most AI cost, then select one for its pull requests. |
| **Epics delivered over time** | The items that reached the done status, over time. Select a point to list them.                                                                                                                            |

**All epics** (or **All stories**, **All projects**, **All issues**) lists each item. Search it, or select **Export** to download it. The columns depend on the level:

| Column                | Level | Description                                                                         |
| --------------------- | ----- | ----------------------------------------------------------------------------------- |
| **Epic** or **Story** | Both  | The Jira key and the title of the item.                                             |
| **AI cost**           | Both  | The AI cost attributed to the item.                                                 |
| **Stories done**      | Epic  | The stories of the epic that are done.                                              |
| **Merged PRs**        | Both  | The merged pull requests linked to the item. Shows a dash until you connect GitHub. |
| **Models**            | Both  | The models behind the item's AI cost.                                               |
| **Users**             | Both  | The assignees of the item. For an epic, the assignees of its stories.               |
| **Cost / story done** | Epic  | **AI cost** divided by **Stories done**.                                            |
| **Status**            | Story | **Done** or **In progress**.                                                        |

At story level, the list counts every item at that level, tasks and bugs included, and the cost of a subtask rolls up to its parent. Linear uses the same columns, with project for epic and issue for story.

[![The All epics list with the Epic, AI cost, Stories done, Merged PRs, Models, Users, and Cost / story done columns](/docs/assets/images/features-epic-3a557248806d7d818788a325f6d5d82f.webp)](https://coralogix.com/docs/assets/images/features-epic-3a557248806d7d818788a325f6d5d82f.webp)

Select a row to open **Opened pull requests** for the item. Each pull request shows its **Repository**, **Developer**, **Attributed cost**, **Time to merge**, and **State**: **Open**, **Merged**, or **Closed**. **Attributed cost** is the AI cost of the sessions on the pull request's branch.

[![The Opened pull requests drawer for an epic, with the Pull request, Repository, Developer, Attributed cost, Time to merge, and State columns](/docs/assets/images/features-pr-drawer-27991b70fc4136736b91d0f0aaabd11b.webp)](https://coralogix.com/docs/assets/images/features-pr-drawer-27991b70fc4136736b91d0f0aaabd11b.webp)

## Delivery

**Delivery** needs GitHub. Four cards follow the cost from spend to shipped code.

[![The Delivery funnel: the AI cost, Cost that merged, Merged PRs, and Cost per merged PR cards, each with a change indicator](/docs/assets/images/delivery-funnel-63dfa3d772b7e5d4a8bcd4d1f98b4bb1.webp)](https://coralogix.com/docs/assets/images/delivery-funnel-63dfa3d772b7e5d4a8bcd4d1f98b4bb1.webp)

**AI cost that merged** plots **All AI cost** against the **Merged** part of it, and **Merged PRs** switches it to merged pull requests over time.

[![AI cost that merged, with the All AI cost and Merged bands, next to AI-assisted vs no AI session](/docs/assets/images/delivery-chart-and-comparison-dd4354923e57868510bde0d5d64c33b1.webp)](https://coralogix.com/docs/assets/images/delivery-chart-and-comparison-dd4354923e57868510bde0d5d64c33b1.webp)

**Where the time goes** has three stages, from **First commit → PR opened** to **First review → merged**.

[![Where the time goes: three stage cards, each with the AI-assisted median, a change indicator, and the No AI session baseline](/docs/assets/images/where-the-time-goes-0550dd44157e6dc960346b6c743759c7.webp)](https://coralogix.com/docs/assets/images/where-the-time-goes-0550dd44157e6dc960346b6c743759c7.webp)

The breakdown by **Users** or **Models** ends with the **No AI session** row. Select a model row to list its pull requests.

[![The Models breakdown with the AI cost, Merged PRs, Merge rate, Time to merge PR, Cost / merged PR, and Rewritten in 30d columns, and the No AI session row at the end](/docs/assets/images/delivery-models-506affd7a17321cb354dab701f779ff1.webp)](https://coralogix.com/docs/assets/images/delivery-models-506affd7a17321cb354dab701f779ff1.webp)

The **Actual cost** and **List cost** toggle changes the cost basis. Cost tied to a pull request or an item exists at list price only.

## How cost is attributed

Coralogix links a pull request to an item by the key in the branch name, then in the pull request title, and uses the first key it finds. A pull request without a key counts in **Delivery** but in no row of **Features**. A session's cost lands on its branch, so it reaches that branch's pull request and item.

### How AI-assisted pull requests are identified

A pull request counts as AI-assisted for Claude Code when it carries one of these markers:

* A commit trailer that starts with `Co-authored-by: Claude`, in any case. Claude Code adds it by default, and its [`attribution`](https://code.claude.com/docs/en/settings-reference#attribution) setting can remove it.
* The author `claude[bot]`.
* A branch that starts with `claude/`.
* With the hooks, a branch that a Claude Code session worked on.

Pull requests with the markers of other agents, such as a `Copilot` or `cursor[bot]` author or a `codex/`, `copilot/`, `cursor/`, or `devin/` branch, count for those agents and stay out of the **No AI session** baseline.

## Key metrics

* **Cost that merged**: the AI cost that reached a merged pull request. The indicator shows the share that did not.
* **Cost per epic** (or story, project, issue): the AI cost of delivered items divided by their number. Items in progress do not count.
* **Cost not attributed**: the AI cost that links to no Jira or Linear item.
* **Done**: the item is in the tracker's done status category: Done in Jira, completed in Linear.
* **Merge rate**: the share of pull requests opened in the period that merged. Rows under 20 merged pull requests are greyed out.
* **Rewritten in 30d**: the share of merged lines changed again within 30 days.
* **No AI session**: the baseline. It holds merged pull requests with no agent marker, in repositories where an AI-assisted pull request merged.
* **N/A** versus 0: **N/A** means no data. 0 is a measured zero.

Change indicators compare with the previous period. Stage figures are medians.

## Current limitations and data freshness

These show **N/A** or a dash today, because the data is not available yet: **Merged PRs / dev / wk**, **Rewritten in 30d**, the **Developer** column of the pull request drawers, and, for Linear, **Projects delivered** and **Cost per project**.

Pull requests take up to about an hour to appear. New Jira and Linear issues take up to about two hours, and status changes a few hours.

## Troubleshoot

| Symptom                                                                | Cause                                                                                                                                          | Resolution                                                                                                                                                                                                                                       |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| A setup checklist or a **Connect** notice                              | **Delivery** needs GitHub, and **Features** needs Jira or Linear.                                                                              | Connect [GitHub](https://coralogix.com/docs/integrations/ai-observability/github.md), [Jira](https://coralogix.com/docs/integrations/ai-observability/jira.md), or [Linear](https://coralogix.com/docs/integrations/ai-observability/linear.md). |
| **Install the Claude hooks to see this data.**                         | The widget needs the hooks.                                                                                                                    | See [Set up](#set-up).                                                                                                                                                                                                                           |
| High **Cost not attributed**, or an item with no cost or pull requests | No branch name or pull request title carries the item's key.                                                                                   | Add the key, as the tip in [Set up](#set-up) describes.                                                                                                                                                                                          |
| A Claude Code pull request shows as **No AI session**                  | The trailer is off, and the branch and author carry no marker.                                                                                 | Turn the trailer back on in `attribution`, or start the branch with `claude/`.                                                                                                                                                                   |
| **AI cost** or **Merged PRs** shows no data                            | No session reported cost, or GitHub reported no pull requests.                                                                                 | Widen the time range. Check the [span telemetry](https://coralogix.com/docs/integrations/ai-observability/claude/claude-code.md#span-telemetry) and the Coralogix app on your GitHub organization.                                               |
| **Attributed cost is priced at list price only.**                      | **Actual cost** is on.                                                                                                                         | Select **List cost**.                                                                                                                                                                                                                            |
| **Can't filter by** and a filter name                                  | The widget cannot apply that filter. The pull request widgets need the hooks to apply **Model**, **User**, **Application**, and **Subsystem**. | Remove the filter.                                                                                                                                                                                                                               |

## Related resources

* [Connect Claude Code](https://coralogix.com/docs/integrations/ai-observability/claude/claude-code.md)
* [GitHub integration for Code Agents](https://coralogix.com/docs/integrations/ai-observability/github.md)
* [Jira integration for Code Agents](https://coralogix.com/docs/integrations/ai-observability/jira.md)
* [Linear integration for Code Agents](https://coralogix.com/docs/integrations/ai-observability/linear.md)
* [Code Agents Intelligence](https://coralogix.com/docs/user-guides/ai/code-agents.md)
