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.
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.
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 tiles: Sessions, Cost, Tokens, Models, AI Efficiency, Rework, and People.
- Linear Issues: the Linear issues that the pull request links to, when Linear is connected. See Pull requests and sessions.
- CI Runs and Agent Sessions vs. CI.
- Session Attribution: the linked sessions.
- 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.