Nearly half of LeadDev respondents said AI reviews its own code
At respondents’ workplaces, most AI-written code is still reviewed by hand, 82 per cent said, but 58 per cent said they do not understand every detail. CodeRabbit, which sells a code review tool, funded the survey.
LeadDev, a publication covering engineering leadership, asked 377 engineers and engineering leaders in the US and Europe how AI-written code is reviewed. Of these, 325 completed the survey. CodeRabbit, which sells an AI code review tool, funded it. South Korea’s AI Times and VentureBeat have reported on the findings, and a Russian version of VentureBeat’s article appeared on pcnews.ru.
Agents reviewing their own work have not replaced humans. Of respondents, 82 per cent said developers still review most or all AI-generated code by hand before merging it into the main branch. Reviewers do not always fully understand the code, however: 58 per cent said they understand the purpose of a change but not every detail, and 11 per cent mainly check that the code runs and passes tests.
There is more to review. Half of respondents said the number of pull requests (code changes submitted for review) per developer rose by at least 25 per cent after AI tools were introduced. Changes grew larger, 67 per cent said. More respondents reported slower review cycles (38 per cent) than faster ones (25 per cent), and 45 per cent saw code review capacity as the biggest bottleneck in software development.
Harjot Gill, chief executive of CodeRabbit, told VentureBeat that product managers used to cut work in advance because engineers’ time was expensive. Review is now the only checkpoint left, Gill said.
Only 14 per cent of respondents said their organisation had clear, consistently applied rules for reviewing AI-written code. Reviewers do not always know which changes need closer scrutiny, 68 per cent said.
Paul Nashawaty, principal analyst at Efficiently Connected, told VentureBeat he would not trust the agent that wrote the code as the final reviewer. Companies should combine independent AI review, automated tests, security scanning, policy enforcement and human review according to a change’s risk and complexity, he said.
Gill said the engineer responsible for the area should review the following changes, whoever wrote the code: payment and accounting logic, authorisation rules, database schemas and their migrations, and shared API contracts. The advice comes from the report’s funder, which sells an AI code review tool.
Read more: How an agent works · Agent map