Why your GitHub Actions bill tripled with AI agents
Our GitHub Actions bill for one app went from $5.76 in October to about $24 in November 2026. Nothing about the app got bigger. What changed is that AI agents did most of the pushing, and every push runs CI.
The short answer: agents multiply CI runs, and two patterns did most of the damage. Each pull request ran the full suite twice, once on the PR and again on the push to main after the squash merge. And agents opened bursts of small PRs that each ran full CI. Re-testing alone was 40% of the month.
Here is how we found that, what the five common CI waste patterns look like, and the fix for each.
How we measured it
GitHub’s bill shows minutes per repo and runner type, not per pull request or per session. So we read the Actions API directly: every workflow run and every job in November, with its runner labels and timestamps, priced with GitHub’s hosted-runner rate card. That’s now a free command:
promptconduit ci audit --since 2026-11-01 --until 2026-11-30
It reads only run metadata (no logs, no code) with your own GitHub token. For this app it found 349 runs, 979 jobs and 3,768 billed minutes: $22.61, within 3% of the bill. Everything ran on standard Linux runners at $0.006 a minute.
Where the money went
| Waste pattern | Runs | Cost | Share of month |
|---|---|---|---|
| Re-test after merge | 120 | $9.04 | 40% |
| Repo-wide bursts of agent PRs | 103 | $8.10 | 36% |
| Superseded runs | 8 | $0.94 | 4% |
| Per-PR push storms | 14 | $0.69 | 3% |
The patterns overlap (a burst can include re-tests), so the shares don’t add up to a total. What matters is that the top two point at different fixes.
1. Re-testing after merge: 40% of the month
A squash merge creates a brand-new commit on main. A workflow that runs on both pull_request and push: main therefore runs the full test suite twice for every PR: once to approve it and once more after it is merged, on code that already passed.
People merge a few PRs a day, so this is easy to miss. Agents merged dozens. In November it was 120 runs and 1,506 minutes.
Fix: split the workflow so push: main only builds and deploys, or skip the test job on the main push when the PR’s checks passed. A merge queue also works: it tests the merged result once, before it lands.
2. Bursts of small agent PRs: one day cost 39 times a normal day
On November 5, two agent sessions opened about 45 small pull requests. Each ran the full 19-minute CI, then ran again on merge. That day cost $9.78 across 85 runs, against a median day of $0.25.
No single PR looked bad. The repo as a whole did: 10 or more runs in an hour, five separate times that month.
Fix: have agents batch related changes into fewer PRs, or route them through a merge queue so a wave of PRs shares CI runs.
3. A slow job hiding in the totals
The test job’s median time was 19 minutes for the first week of November. When it was fixed to about 3 minutes, daily CI spend fell from $2-10 to under $1. A per-job duration trend would have caught it on day one. A monthly total never will.
Fix: cache dependencies, split long jobs, and watch any job that takes more than twice its usual time.
4. Superseded runs and push storms
Two smaller patterns show up wherever agents push often:
-
Superseded runs: a new commit lands on the branch while the old run is still going, and the old run finishes anyway. Fix it with one block per workflow:
concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -
Push storms: four or more runs of one workflow on one PR within an hour, because the agent pushes after every small edit. Tell the agent to commit locally and push once per task.
Which agent session caused it?
Cheaper runners help with the price per minute. They don’t tell you which change, PR or agent session used the minutes, and that’s what you need in order to fix the cause.
Every PromptConduit event records the commit the agent session was on, so a CI run can be matched to the session that pushed its commit. For this app, $17.86 of the $22.61 (79%) matched 60 agent sessions. The top session spent $4.49 on CI against $9.53 on tokens: CI added almost half again to what that session cost.
Check your own repo
curl -fsSL https://promptconduit.dev/install | bash
cd your-repo
promptconduit ci audit
The CI cost audit is free, runs on your machine, and needs no account. To see CI spend next to token spend for every member, repo and pull request on your team, run promptconduit ci sync after signing in. Budgets and Slack alerts then count CI too.
Frequently asked questions
Why did my GitHub Actions bill go up after I started using AI coding agents?
Agents push and merge far more often than people, and every push runs CI. In our case two things drove it: each pull request ran the full test suite again on the push to main after its squash merge (40% of the month), and agents opened bursts of small PRs that each ran full CI (one day cost 39 times the median day).
How much does a GitHub Actions minute cost in 2026?
Since January 1, 2026, a standard Linux 2-core runner costs $0.006 a minute, Windows $0.010, macOS $0.062 and the 1-core ubuntu-slim runner $0.002. GitHub rounds each job up to the whole minute. Standard runners are free on public repos; larger runners are billed everywhere.
What is the biggest source of wasted CI minutes with agents?
Re-testing after merge. A squash merge creates a new commit on main, so a workflow that already passed on the pull request runs again on the push. On our app that was 120 runs and $9.04 in a month. Skipping the test half of the main push when the PR passed, or using a merge queue, removes most of it.
How can I see which agent session caused a CI run?
Match the run's commit to the session that had that commit checked out. PromptConduit records the commit on every agent event, so promptconduit ci audit can attribute each GitHub Actions run to the Claude Code or Cursor session that pushed it, and show CI dollars next to token dollars per session.