How we set up the comparison
We backported 20 real upstream pull requests to Flask 3.0.3, including their tests and documentation. They changed how Flask routes requests, loads configuration, signs session cookies and more. The median backport changed 132.5 lines.
We opened the same 20 branch heads in the same order on fresh benchmark copies. Merget saw all 20 before planning. The workflow had no Actions or dependency cache configured. The model meters include cached input.
Both queues ran the same required GitHub Actions job on Python 3.12. It tested the proposed merge with Flask’s own suite. We recorded the commit each job tested, its start and finish times, and which changes landed.
Six batches used 149 fewer integration runner-seconds
On GitHub, 19 merge-group jobs tested candidate commits. Merget grouped compatible changes into six integration batches and ran the same required Flask tests on each batch commit.
| Measure | Merget | GitHub queue + Codex | Merget vs. GitHub |
|---|---|---|---|
| Integration CI jobs | 6 | 19 | 68.4% fewer |
| Integration runner time | 73 s | 222 s | 67.1% less |
| Active integration CI time | 73 s | 100 s | 27.0% less |
Runner time adds the duration of each job. Active time counts overlapping seconds once. For example, (222 − 73) ÷ 222 = 67.1%. Each reduction uses GitHub as the baseline.
PR-head checks fall outside both integration totals. Merget also ran two checks to verify fixes before batching, adding 22 runner-seconds. Including those checks, its eight queue-branch jobs used 95 runner-seconds. Runner-seconds measure compute use. Billing also depends on the runner and its rate.
What the agents spent tokens on
GitHub’s queue needs an external fix when branches conflict. Codex inspected and edited the branches outside the queue, then the fixes were tested and pushed. Merget resolved conflicting text while preparing the queued changes.
| Measure | Merget | GitHub queue + Codex | Merget vs. GitHub |
|---|---|---|---|
| Textual conflict fixes | 42,910 | 697,950 | 93.9% fewer |
| Investigating blocking findings | 2,332,724 | No such stage | — |
The 93.9% figure is (697,950 − 42,910) ÷ 697,950. It applies to textual repairs. Both phases include metered retries.
Optional semantic review was off. A separate queue check flagged interactions in the combined code before landing. Merget made 51 model requests to investigate blocking alerts, compared with five to fix textual conflicts. The investigations dismissed the alerts without code edits.
On the streaming change (exhibit #14, capture #13), the first investigation used 1,253,523 tokens. GitHub rate-limited Merget after the investigation and before a verification commit was published. Retrying the same PR head used another 376,377 investigation tokens. Both attempts count.
We summed provider-reported usage once per meter. Codex input already includes cached input and its output includes reasoning. Merget reports input, cached input, output and reasoning separately. Cached reads account for 2,039,179 of Merget’s tokens and 646,272 of Codex’s. These are token volumes, not invoices.
How long the queues took to land all 20
GitHub took 5 min 31 s. Merget took 45 min 15 s. The clock starts at the first queue admission and stops when the last PR lands. We used the raw timestamps for both queues.
Merget landed 19 changes in 5 min 14 s. The streaming change landed last. During its retry, the queue reported unhealthy planning for 34 min 53 s between observations. A GitHub HTTP 403 confirmed rate limiting during that window. The observations do not identify exactly how much of it was caused by the rate limit, so the full interval stays in the published time.
CI, agent work, queue scheduling and waiting can overlap. Adding the CI and repair times would give a different number from elapsed queue time.
The last PR to open landed in the first batch
The last change to open, exhibit PR #21, improved type checking for deprecated code. Merget identified it as independent and ranked it fourth. It was one of five changes tested on the first batch commit.
One repair finished while another was still running
In a separate rehearsal on the same 20 PRs, one conflict affected Flask’s streaming helper and another affected routing. Merget started the routing repair while it was still working on the streaming code.
Both repairs were active for 12.4 seconds.
How to read thisEach line runs from the start of a fix to its finish on the same clock.
Together, these two rehearsal repairs took 40.7 seconds of elapsed time and used 17,138 tokens.
What passed after landing
We built a wheel from each final checkout and installed it in a clean environment. Both compiled, passed 498 tests with two skips, and served the expected JSON from a health endpoint. We verified that both final commits included all 20 original PR heads.
Follow a PR from opening to landing. Explore the earlier recorded run of the same 20 changes, inspect an in-queue fix or try a different priority in your own session.
Open the Flask demoMerget vs graphify: more complete call graphs