Skip to main content
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.
  • 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 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: 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.

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. 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.
  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. 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.