TLDR overview
- After a year that swung from tokenmaxxing to strict budget cuts, 2027 planning keeps circling back to one question: does AI-powered software delivery produce value the business can count, at the pace the business expects?
- So far the answer is “not really, at least not yet,” with lines of code growing far faster than releases and most teams reporting lower returns from AI coding tools than they expected.
- Usage dashboards show what you spent, while the ROI conversation needs to show what that spend delivered, which is why AI spend benefits from the same governance as any other budget line.
- We suggest a five-step working plan, from budget ownership to a review process built around business value.
Where are we with ROI from AI-generated code?
Not quite where the budget slides promised, at least not yet.
The end of the year has a familiar rhythm: holiday calendars fill up while budget owners sit with a spreadsheet trying to explain what last year’s money actually bought. In 2026, AI coding spend made that last exercise especially lively. Many teams started the year in tokenmaxxing mode, where consumption itself felt like progress, and ended it with strict budget cuts once the invoices caught up. Now, with the 2027 planning season almost behind us, the conversation has settled on ROI, and specifically on whether productivity savings convert to value that the business can count.
Two figures show why that conversation is harder than it looks. A National Bureau of Economic Research study by Demirer, Musolff, and Yang, which combines data on more than 500,000 GitHub developers with their AI usage telemetry, finds that lines of code are up 2,450% while releases are up only 30%. The authors describe the gap as consistent with human bottlenecks further down the production chain, so the extra code is real, but most of it has yet to reach users. Sonar’s State of Code Developer Survey Report 2027 adds some color from the teams themselves: among the 75% of respondents who could estimate both their expected and observed return, 57% report a lower return from AI coding tools than they expected, and across all 1,026 respondents, 22% can’t say what return they have seen at all.
If you recognized yourself in any of these numbers and are thinking about how to make sure next year’s checkpoint shows up in green, we have a working plan.
Why don’t lines of code alone count as value?
Lines of code measure activity, and the business pays for outcomes that reach customers.
Code volume is the easiest number to collect, which is exactly why it keeps sneaking into ROI decks. According to the Developer Survey Report 2027, 82% of developers and engineering managers say they generate more lines of code than before AI, and 55% agree that too many lines of code are being generated with AI (up from 43% a year earlier).
More code also means more to review and maintain, and only 39% of respondents completely agree that they always check AI-generated code before committing it, down from 48% last year. Every unverified change that later turns into rework quietly moves from the “productivity” column into the “cost” column. One director of software engineering in the survey summed it up well: “The industry needs better standards for measuring real productivity gains, verifying AI-generated code… rather than optimizing only for code volume.”
To be fair to AI, the productivity gains are real. Half of respondents say AI makes them much more productive, and 79% of those reporting a gain say it has kept growing over the past year. The difficulty sits in proving that the gain turns into shipped, working software, and in governing the spend that produces it.
How do you govern AI spend so the return becomes tangible?
You treat the AI coding budget the way you would treat any other significant investment, with a named owner and a regular review against clear goals. Here’s the five-step plan we’d start with.
- Define ownership for AI coding budgets and acceptable usage: Someone needs to own the AI coding budget and the policy for how tools and agents are used; otherwise, spend drifts between teams and nobody is in a position to answer for the return. It is also the step that makes the others possible, since metrics, budgets, and reviews all need a person who acts on them.
- Define goals and metrics that are connected to business goals: Tie AI investment to outcomes the business already tracks, such as release frequency, cycle time, escaped defects, and rework hours, and leave volume metrics out of the scorecard.
- Separate model, tooling, CI, review, and corrective work costs: Model and token spend is only one line of the bill. Review time and the corrective work created by low-quality code are costs as well, and they are usually where returns quietly erode. Most organizations already track part of this, since 72% of respondents say their organization tracks AI tool and token costs, yet 65% agree it is difficult to predict the financial impact of AI tools. Breaking the bill into its parts is what makes that prediction possible.
- Establish budgets, approval boundaries, and exception processes: Spending limits with approval thresholds for premium models or long-running agents, plus a clear path for exceptions, turn open-ended consumption into a managed investment. Cost concern is rising quickly, with 45% of respondents very or extremely concerned about the cost of advanced AI coding tools (up from 30%), so agreeing on boundaries early beats renegotiating them mid-quarter.
- Set a review process that emphasizes business value delivered: Review AI spend against accepted, secure changes that reach production, and against the business goals from step 2. Clear standards also make the review itself easier: teams with well-defined or automated AI guidelines are more likely to report an ROI of 50% or more (41% versus 25% for teams with informal rules), and more likely to be able to estimate their ROI at all (90% versus 84%).
But how do you know which AI-generated code actually counts as value?
It is a fair question, since a governance plan is only as good as the evidence it runs on. This is where we come in. SonarQube performs automated code verification and governance in your workflows, from the moment before an agent is ready to start generating code all the way to CI/CD, and applies the same quality gate no matter which model or agent wrote the code. Gitar works in the pull request loop, reviewing, fixing, and verifying PRs until CI passes.
Together, they turn “an agent wrote this” into “this change was verified and accepted against your standards and release conditions,” which is the evidence that metrics like cost per accepted change and first-pass acceptance rate depend on.
The survey data points in the same direction. Among 319 SonarQube users and 707 non-users, SonarQube users were 81% more likely to say AI-generated code has had a very positive impact on code security, 42% more likely to say the same for defect rates, 46% for technical debt, and 39% for productivity.
Getting next year’s checkpoint to green
Next year’s ROI conversation will go much more smoothly if the plan is in place before the spend is, so start with ownership and metrics, and let the other steps follow. If you’d like a second pair of eyes on how verification fits into your AI spend governance, talk to our sales team, ideally before the 2027 budget gets locked and someone suggests counting lines of code again.
