MergeSurge Gauge warns before PR merges outrun your team's review capacity
We replayed 56 days of recorded GitHub API responses from three public repos. Retuning the agent signals on one repo moved its agent-authored share from 39.9% to 15.1%.
By David Discua
Measured in the lab
- 2,125
- merged PRs replayed
- 15.1%
- agent share after tuning
- 23 days
- what-if alert lead time
- 1
- demo exit code
- Agent signals kept per PR, with each signal's share shown
- 8 of 8 default agent logins checked against the GitHub users API
- Replay fails on any request that was not recorded
- Recorded responses never store request headers or tokens
- Issue posting is a dry run unless --issue-apply is set
From reports/mergesurge-gauge.json · run on October 21, 2026. Recorded GitHub API responses for three public repos, 56 full UTC days ending October 21, 2026; 30-day horizon; replayed keyless
How it is wired
01/03MergeSurge pulls merged PRs and their reviews from GitHub.
Coding agents can open and merge PRs faster than people can review them, and most teams notice only after review queues grow. MergeSurge Gauge is our CLI that pulls merged PRs and reviews from GitHub, splits them into agent-authored and human with signals you can check, and compares merge velocity with the review throughput the team has shown. A trend forecast raises the alert before merges outrun review. We replayed 56 days of recorded API responses from three public repos, 2,125 merged PRs in all. The catch is that the agent share depends heavily on which signals you trust. On one repo, excluding an automation bot and adding two machine-user logins moved its share from 39.9% to 15.1%.
The catch
Agent detection only sees what people leave behind. An agent PR opened from a human account, on a normal branch, with no co-author trailer counts as human. A human-driven PR from a bot account counts as agent-authored. In one recorded repo, 273 of the 364 bot-author hits came from a single automation bot whose PRs often carry a person's branch name. In another, every label hit came from a regular user account used for automation, so bot-author never fired on those 607 PRs, and almost all branch-prefix hits were claude/ branches pushed from maintainers' own accounts. Read the signal table before you quote the agent share.
Review capacity is a proxy. It counts reviewed merges, not reviewer hours, and teams that review by pairing or outside GitHub's review feature will show low capacity. The forecast is a least-squares trend line on noisy, weekly-seasonal counts, and the README calls its 95% bands a rough guide. The optional Gemini narrative is tested with a fake HTTP response, and the live path was not run in this lab.
What we ran (keyless)
bun install --frozen-lockfile
bun run demo
bun run scripts/report.ts
bun test tests
From reports/mergesurge-gauge.json, replayed on October 21, 2026. We label the repos by data, not name, since the levels describe their real recent history:
| Gauge | Merged PRs | Agent share | Merges/day (7 d) | Capacity/day | Unreviewed (14 d) | Level |
|---|---|---|---|---|---|---|
| Combined, 3 repos | 2125 | 66.0% | 43.4 | 19.62 | 70.9% | breach |
| Repo with 922 PRs | 922 | 39.9% | 24.9 | 9.33 | 70.8% | breach |
| Repo with 265 PRs | 265 | 51.3% | 4.1 | 5.86 | 0.0% | ok |
| Repo with 938 PRs | 938 | 95.7% | 14.4 | 4.43 | 94.6% | breach |
| What-if, capacity 30/day | 922 | 39.9% | 24.9 | 30 | 70.8% | alert |
| Tuned signals | 922 | 15.1% | 24.9 | 9.33 | 70.8% | breach |
The what-if row is the case the tool exists for. With an explicit capacity of 30 reviewed merges a day, the 7-day mean is still below it, and the trend reaches it in 23 days, so the gauge raises alert early. The demo exits 1 on breach and the what-if exits 1 on alert.
How it is wired
GraphQL search (with a token) or REST (without one) fetches merged PRs, the first 50 reviews and the authors and co-authors of the last 20 commits, splitting date ranges past search's 1,000-result cap. Five signals mark a PR as agent-authored: bot-author, agent-login, co-author, branch-prefix and label. Capacity is your --capacity, or reviewers times reviews per reviewer, or the 90th percentile of the trailing 7-day mean of reviewed merges. Output is an exit code, a Markdown alert, a dry-run issue request and a single-file HTML dashboard with no external scripts.
Minilab (open source)
MergeSurge Gauge is our own lab, written in TypeScript on Bun, at SkilledDragonCorp/mergesurge-gauge. The default --threshold of 30,000 merges a day is the figure Anthropic reported for its own monorepo, and in the recorded data that threshold is never reached within the horizon. Run bun run demo, then point bun run mergesurge -- run --repo owner/name at your repo with your real --capacity.
Run it yourself
SkilledDragonCorp/mergesurge-gauge
Clone, install and run the report with no API keys. The numbers above are what that run writes.
bun install --frozen-lockfile && bun run demoSkilledDragon is not affiliated with, endorsed by, or sponsored by GitHub, Anthropic, Google, OpenAI, Cursor, Cognition, or any repository analyzed. Numbers are from our own keyless replay of recorded public data; re-run the report before relying on them.
All labs