> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agent.golf/llms.txt
> Use this file to discover all available pages before exploring further.

# Pull Requests

> See the agent work, the inference cost, and the CI cost of each pull request in your connected repositories.

The **Pull Requests** page lists the pull requests of your connected repositories, with the agent sessions linked to each one and what it cost. Open a pull request to see its tiles, its CI runs, and its linked sessions.

## Before you begin

* Connect a GitHub organization. See [Connect a GitHub Organization](https://docs.agent.golf/github/organization.md).
* You need **View Pull Requests and Repositories** to open **Pull Requests** and each pull request page.
* With **View Team Activity**, the counts and costs include the sessions of all users, and you can filter by any author. Without it, they include only your own sessions.

See [Default roles](https://docs.agent.golf/account/users.md#default-roles) for the roles that include these permissions.

## The Pull Requests page

The list shows the pull requests that were updated in the time range. Each row shows:

| Column | What it shows |
| - | - |
| **Pull Request** | The state icon and the title, the repository and number, the lines added and removed, and the linked Linear issues. |
| **Linked Sessions** | The agent icon with the number of linked sessions, and in its tooltip the number of distinct models of the authored and reviewed sessions. A pull request without linked sessions shows no icon. See [Attribution](https://docs.agent.golf/dashboard/attribution.md). |
| **Cost** | The inference cost of the linked sessions while each session worked on this pull request ([how this counts](https://docs.agent.golf/dashboard/attribution.md#cost-of-a-pull-request)), plus the CI cost. The pull request page shows the same amount. The CI part shows under it. The cost detail names the estimated part, the requests with unknown cost, and "N manual links not counted". |
| **Author** | The author of the pull request. |
| **Updated** | The time of the last update. |

Sort the list by **Updated** or by **Cost**. The sort uses the amount that the **Cost** column shows.

Filter the list by **Author**, **Repository**, or **Project Spend** (**Linked to a Project** or **Unplanned**), then select **Apply Filters**. **Project Spend** needs Linear. See [Project spend](https://docs.agent.golf/linear/project-spend.md).

### Cost and CI tiles

Six tiles above the list show the cost and CI of all pull requests in the time range. They follow the **Author** filter, but not the other filters.

* **Total Cost per PR**, **Inference Cost per PR**, and **CI Cost per PR**. Each is a sum divided by the number of pull requests, so the total is the inference cost plus the CI cost.
* **CI Wall Time per PR**: the clock time that a pull request's finished CI runs ran. Parallel runs count once, and gaps between runs do not count. The tile shows the average over the pull requests with a finished run.
* **CI Failure Rate**: the runs that failed, timed out, or did not start, divided by all runs.
* **CI Retry Rate**: the re-runs divided by all runs.

Each tile shows the change from the previous period of the same length, and a lower value is better for all six. When some CI minutes ran on runners without a list price, the cost tiles state how many minutes the CI cost leaves out.

**CI Over Time** shows **CI Wall Time per PR**, **CI Failure Rate**, and **CI Retry Rate** for each period of the time range, with the same calculation as the tiles.

## Pull request page

Select a pull request to open its page. The page has two tabs:

* **Overview**: the agent work, the CI runs, the linked sessions, and the description.
* **Rework**: the earlier pull requests that this one reworks, and the later ones that rework it. See [Code](https://docs.agent.golf/dashboard/code.md). The tab badge counts only the links with a verdict that finds rework: revert, bug fix, or corrective.

The **Overview** tab shows, in this order:

1. The tiles: **Sessions**, **Cost**, **Tokens**, **Models**, **AI Efficiency**, **Rework**, and **People**.
2. **Linear Issues**: the Linear issues that the pull request links to, when Linear is connected. See [Pull requests and sessions](https://docs.agent.golf/linear/dashboard-and-team.md#pull-requests-and-sessions).
3. **CI Runs** and **Agent Sessions vs. CI**.
4. **Session Attribution**: the linked sessions.
5. **Description**: the pull request description.

### Tiles

**AI Efficiency** and **People** show only when they have a value.

| Tile | What it shows |
| - | - |
| **Sessions** | The linked sessions that you can see. The detail splits them into authored, reviewed, and manual links. |
| **Cost** | The inference cost of these sessions while each one worked on this pull request, plus the CI cost. The detail shows "X CI · Y%" when the CI has a cost, the estimated part, the requests with unknown cost, and "N manual links not counted". See [Cost of a pull request](https://docs.agent.golf/dashboard/attribution.md#cost-of-a-pull-request). |
| **Tokens** | The input, output, and reasoning tokens of these sessions while each one worked on this pull request. See [Token usage](https://docs.agent.golf/dashboard/sessions.md#token-usage). |
| **Models** | The number of distinct models of the authored and reviewed sessions. Manual links do not count. |
| **AI Efficiency** | **Line Yield**, **Amplification**, **Churn**, and **LPT**. Shows only when every agent session of the pull request has measured lines. The first three show after the merge, and LPT needs HITL turns. See [Pull request metrics](https://docs.agent.golf/dashboard/metrics.md#pull-request-metrics). |
| **Rework** | The part of this pull request's cost that redid earlier work, or **None**. Select the value to open the **Rework** tab. The hover counts the pull requests with a verdict that finds rework, and counts code-turnover links and links with no verdict yet apart. See [Rework Rate](https://docs.agent.golf/dashboard/metrics.md#rework-rate). |
| **People** | The comments of people, and the comments of bots when there are some. The detail shows the [contributors](https://docs.agent.golf/dashboard/sessions.md#contributor) when there is more than one, and the HITL turns when an agent session reports them. |

When no session links to the pull request, **Cost** shows the CI cost, and **Tokens** and **Models** show 0. When a value is not available yet, the tile shows **Not available**.

### Session Attribution

**Session Attribution** lists the linked sessions. The **Cost** column shows the share of each session's cost that goes to this pull request. A session that only a manual link connects shows **Not counted**. When the CI has a cost, each row also shows the CI cost on that session's commits.

## CI runs and CI cost

For the **CI Runs** card, **Agent Sessions vs. CI**, and how Agent Golf prices CI, see [CI Costs](https://docs.agent.golf/dashboard/ci-costs.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.