← All projectsGitHub
The software-engineering loop

What does an agent run cost per merged pull request?

research/swe-costpermerge

What does a run cost per merged pull request? 366 priced runs joined to main's merge history: 75% name a merged PR, $1.26 per merged run against $0.94 per run, process runs about 2.4 times research's; red team never links its PR (preliminary; API-equivalent estimates).

6 tests

What it found

Joins the 366 run records (14 to 18 October 2026) that carry an API-equivalent cost_usd to the pull-request numbers in the subject lines of main's first-parent history. 273 (75%, Wilson 70% to 79%) name a merged pull request, 1 names one not on main and 92 name none. A merged run costs $1.26 on average (bootstrap 1.08 to 1.49) against $0.94 per priced run, because 19% of spend sits on runs with no merged PR on record; process runs cost about 2.4 times a research run per merged run. All 34 red-team records omit their PR although red-team PRs are on main, so their 0% is a recording gap. Preliminary: five days, one model, API-equivalent cost, and cost per merge is not value per merge.

A figure from its own output

Figure produced by research/swe-costpermerge: cost_per_merged
swe-costpermerge/experiments/cost_per_merged.svg, written by the project's own experiment code.

Paper, code and results

More in The software-engineering loop

All 43 The software-engineering loop projects →

Other research topics

Proper scoring & elicitation28Effort & peer prediction9Verification games & slashing19Detection & tolerances14Markets as routers13Prediction-market design9Paying contributors8Decentralised training systems23Digital twins & sim-to-real164LLM chip design loops40Robot manufacturing loops53Ambient AI assistant46Self-replicating manufacturing34Simulation-first design64Engineered clothing45Task-specific AI accelerators40Algorithmic chip-design loops42Open-source purpose-built robots44The software-engineering loop43Adversarial human imitation41Open-source residential construction41Autonomous multi-angle capture34Sensing, imaging and 3D31Energy supply and dense energy storage39Robot societies among people31Agentic co-design of low-cost robots27Laundry-hanging robots25Machine learning on qualitative data23Robots on the building site27Civilizations & group psychology1History & human sciences1

Produced with AI assistance (Claude). Results are from the code in this repository and are simulated or stylised unless the abstract says otherwise; nothing here implies affiliation with or endorsement by any lab, researcher or company cited. MIT licensed.