As AI coding agents become more autonomous, the industry is grappling with the financial implications of agentic workflows that consume significantly more tokens than traditional chat interactions. Analysts and vendors are now advocating for a shift in how enterprises measure AI value, moving away from raw token consumption toward metrics that track actual software output.
What Happened
A single agentic coding task can utilize 10 to 50 times more tokens than a basic prompt because the agent plans, generates code, runs tests, and iterates to correct errors. This increased utility has led to rising costs under per-token pricing models. The financial strain is already evident in the market: Uber reportedly exhausted its 2026 AI budget by April after expanding its use of Claude Code, and GitHub Copilot has transitioned from flat-rate pricing to metered credits. Additionally, Gartner predicts that AI coding token costs will surpass average developer salaries by 2028.
In response, some organizations have implemented usage caps and seat limits, but critics argue these measures restrict valuable workflows and optimize for consumption rather than results. A proposed alternative metric is the cost per merged pull request, which divides total AI-assisted development costs by the number of changes that pass review and merge. This approach aims to distinguish between wasteful spending, such as retries and runaway loops, and productive work that ships software.
Why It Matters
The shift in measurement philosophy encourages enterprises to optimize their infrastructure and model selection. Experts suggest reserving expensive frontier models for complex planning and novel reasoning, while routing routine tasks like code generation and refactoring to open-weight models. This strategy is supported by data from HPE, which reports that its hybrid AI platform reduced token costs by 30 to 50% by routing routine workloads from over 150 internal applications to on-premises open-weight models.
Ownership of inference capacity also plays a critical role in cost management. While per-token pricing makes heavy use increasingly expensive, owned capacity becomes more efficient as usage grows, despite upfront costs for power, operations, and maintenance. Furthermore, running code generation and testing on-premises allows enterprises to keep proprietary code secure, addressing a key barrier to adoption in sensitive repositories. HPE’s internal data highlights that usage, not headcount, drives spend, with the top 5% of users generating the majority of consumption. The heaviest users consumed roughly 450 times more than the lightest users on the same license. If power users expand to half the workforce, monthly spend could rise approximately 4.4 times, even with flat headcount.
The Bottom Line
Enterprises are advised to baseline their costs per active developer and per merged pull request before altering infrastructure. By evaluating these metrics, organizations can determine if shifting to owned capacity and hybrid routing improves the conversion of AI consumption into shipped software without compromising quality.