Before you begin
- Connect a GitHub organization, and approve the Actions: Read permission of the Agent Golf GitHub App. See Approve Actions access.
- You need View Pull Requests and Repositories to see the CI runs and the CI cost on the Pull Requests, Dashboard, and Team pages.
What Agent Golf reads
Agent Golf reads each GitHub Actions workflow-run attempt that tested a commit of a pull request, with its jobs, their runners, and their minutes. A re-run is a later attempt of the same workflow run. Each attempt counts as a run with its own cost.How CI cost is priced
Agent Golf estimates the cost of each job at its runner’s list price:- GitHub rounds each job up to the next whole minute, and Agent Golf does the same.
- Standard GitHub-hosted runners, for example
ubuntu-latest,windows-latest, andmacos-latest, have the GitHub list price. In a public repository, standard runners cost nothing. - Runners of a CI provider in the Agent Golf runner catalog, for example
blacksmith-2vcpu-ubuntu-2404, have that provider’s list price at the start of the job. - Self-hosted runners and other runners with custom labels have no list price. Agent Golf counts their minutes and shows them as unpriced.
- The estimate does not include your GitHub plan’s free minutes or discounts.
Where CI cost shows
CI Runs card
The CI Runs card on a pull request page shows the count of each run outcome, for example “2 passed · 1 failed”, the CI cost, and the CI minutes.- Unpriced in place of the cost means that no runner has a list price. When only some minutes have no list price, the cost leaves them out and the card shows them as ”+ N min unpriced”.
- “N× the average of the last 7 days” compares the CI cost of the pull request with the CI cost per pull request of all pull requests that GitHub updated in the last 7 days. The
explain_pull_requestMCP tool returns the same multiple ascost_to_baselinefor the7dwindow. The line does not show when no runner has a list price, or when the pull requests of the last 7 days have no CI cost. - “Agent commits: X of Y” is the CI cost on commits made during linked sessions, out of the total CI cost. When no runner has a list price, it compares minutes.
- No CI runs means that no run reached Agent Golf. With Manage Integrations, select Check GitHub Access to check the App’s Actions permission.
Agent Sessions vs. CI
Agent Sessions vs. CI shows the linked sessions and the CI runs on one time axis, and marks each run on a commit made during a session as an Agent Commit.Re-runs
Each re-run adds its own minutes and cost to the pull request’s CI cost. The Pull Requests page shows the share of re-runs as CI Retry Rate. On the CI Runs card, each run attempt has one mark, and a re-run’s mark is outlined. When the pull request has re-runs, the legend shows Run and Re-run, and the details of a re-run name its attempt, for example “CI #12 · re-run, attempt 2”. Select a mark to open the run on GitHub.Find the pull requests where re-runs drive CI cost
- Open Pull Requests and choose the time range.
- In CI Over Time, find the periods where CI Retry Rate rose.
- Choose a time range that covers those periods, and sort the list by Cost, highest first. The CI cost shows under the inference cost of each row.
- Open a pull request with a high CI cost. On the CI Runs card, count the Re-run marks, and read Spent on failed jobs.
- In Agent Sessions vs. CI, check whether the re-runs and the failed runs are Agent Commit runs, which tested commits made during a linked session.