Article proposes measuring AI coding cost per merged PR instead of by token count
This HPE-sponsored opinion article argues that the cost question for AI coding agents is shifting from how many tokens are used to how much each merged PR costs. It says a single agent task can consume 10 to 50 times the tokens of an ordinary chat prompt; Uber reportedly exhausted its entire 2026 AI budget in April, GitHub Copilot has moved from flat-rate to usage-based billing, and Gartner predicts that by 2028 token costs for AI coding will exceed the average developer salary. The author recommends replacing token usage with cost per merged PR as the core metric, while also tracking rework and defects so that low cost does not mask falling quality. The article also proposes routing models by task complexity and handing repetitive work to self-hosted open-weight models, citing HPE itself as an example: after its hybrid platform routed more than 150 internal applications to local models, token costs fell 30% to 50%. These figures come from the vendor's own account and the article provides no independent verification.
In a forecast dated June 24, 2026, Gartner stated that by 2028 AI coding costs will exceed the average developer salary, as large-model token consumption rises and licensing shifts toward usage-based billing. The forecast lists GitHub Copilot's move to usage-based billing on June 1 as one of the triggers. Against this backdrop, the article discusses how to replace token counting with cost per merged PR as the measure of AI coding spending.
The article recommends that engineering teams shift cost accounting from per-token price to cost per merged PR, while also tracking rework and defects so that cheaper changes do not mask falling quality. The HPE internal case cited in the article shows that after routing routine workloads from more than 150 applications to local open-weight models, token costs fell 30% to 50%; however, this is vendor-reported data, and the article itself was produced with HPE sponsorship. For teams with low or highly variable usage, the article argues that usage-based APIs remain more suitable, because self-hosted capacity carries electricity, operations, maintenance and depreciation costs.