---
id: 18847
lang: en
title: "22 AI Agents Reviewed the Code and Missed a Bug a Human Found in 3 Minutes"
published_at: "2026-12-01 16:31:05"
source_name: "Habr AI"
source_url: "https://habr.com/ru/companies/cloud_ru/articles/1114676/?utm_campaign=1114676&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18847"
categories: ["llm", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# 22 AI Agents Reviewed the Code and Missed a Bug a Human Found in 3 Minutes

> **Краткая суть (BLUF):** In an experiment by Maxim Nikitin, 22 AI agents reviewed code and missed a bug that a single reviewer found in three minutes. The agents only looked at the changed files, while the error was hiding in a neighboring module. Team lead Igor Savelin reported a similar case: the tests passed, but an external client still expected the old API response format. The conclusion: review quality depends on context and acceptance criteria, not on the number of agents.  • Multi-agent review is more expensive: 12–15 times more tokens and 4–5 times longer • Agent permissions are limited with separate accounts and isolated VMs • Acceptance criteria are written before code generation, otherwise the agent will fit the tests to its own output

Agents write code so fast that review has become the bottleneck. In an experiment by developer Maxim Nikitin, 22 AI agents reviewed the same code and missed an error that a single human reviewer found in three minutes. The reason was mundane: the agents read only the changed files and did not see that the change broke a dependency on a neighboring module. It is like checking an amendment to one chapter of a contract without looking at the appendix the chapter refers to. Backend developer and team lead Igor Savelin collected such stories from the GoCloud Tech 2026 conference and added his own experience. His six-person team already works with agents every day.

Savelin had a similar case. An agent was asked to unify error handling across several APIs. The task was routine, the PR appeared quickly, and the build and tests passed. But during review it turned out that one external client expected the previous response format. Only people knew about this implicit agreement. The bug was caught before release, but the lesson is clear: an agent writes fast, but it does not read product agreements from people's heads.

## More agents does not mean better review

According to Alexander Lukyanchenko of Avito, since the beginning of the year the volume of changes in the codebase has roughly doubled, and code review time has also improved roughly twofold. The calculation method was not disclosed in the discussion. Avito credited investments in CI and automated checks, including the detection of product anomalies.

Each tool catches its own class of errors. Linters do not know about agreements with clients. Unit tests check individual components. Contract tests such as Pact will catch a change in response format, but only if that format is documented somewhere. They will not see an undocumented requirement of an old integration.

Edgar Sipki of SIPKI Tech uses cross-agent review: one agent writes the code, a second checks it, and a third writes the tests, and the models can be different. But Nikitin's experiment shows the limit of this approach. After expanding the context and the review rules, the results improved. However, multi-agent review required 12–15 times more tokens and 4–5 times more time. The author kept it for complex cases and moved the useful rules into ordinary single-agent review. And if several models misunderstand a task in the same way, they will unanimously approve the error. That is why acceptance criteria must be written before code generation, otherwise the agent will write both the implementation and the tests around its own mistaken interpretation.

## Permissions matter more than instructions

The most striking story of the discussion was not about code. Sipki enabled Always Approved mode and asked an agent to prepare a tax report. The agent did not stop at preparation: it signed and submitted the report itself. A month later, the tax authority asked who had done it. Now Edgar brings in an accountant for such tasks.

The cause was that the agent's authority turned out to be broader than the person had assumed. At SIPKI Tech, this is handled with separate accounts, keys, and isolated virtual machines: the agent has its own limited set of permissions, not the developer's rights. The prompt line "don't change the working database" offers little protection if the agent holds a production credential with the right to drop tables. It is more reliable when permissions physically prevent actions that were never delegated.

Example with PostgreSQL: an agent can prepare a migration and run it on a separate database. Applying it to the production database without control is dangerous, because it may block queries, break compatibility with the old application version, or lead to data loss. Before launch, locks, execution time, compatibility, and recoverability are assessed. Isolation, however, does not replace the security of the result: SAST, secret scanning, and dependency checks remain mandatory.

## Context, responsibility, and metrics

Once, while adding an export feature, an agent wrote its own export mechanism even though the project already had a shared one. The task was formally solved, but the architecture was bypassed. To prevent this, knowledge has to be delivered to the agent systematically. OpenAI's approach, described in its material on harness engineering, is a short AGENTS.md that works as a map, a main knowledge base in the docs/ directory, and constraints enforced by custom linters and structural tests. In Go, some rules can be set through depguard in golangci-lint, which checks allowed imports. It will not catch semantic duplication; that requires acceptance criteria and review.

A large context window does not solve the problem. The Lost in the Middle study showed that quality drops when the needed information sits in the middle of a long context. Moreover, a model does not always know which document is current: an old ADR, a new one, or a comment in the task. Savelin prefers small tasks with explicit boundaries.

The author of a PR is responsible for the change, Lukyanchenko argues. Anatoly Shipov of SberTech adds the responsibility of the process owner: risks must remain acceptable and rollback must remain possible. If the author's only argument is "the agent suggested it," the PR is not ready to merge.

Savelin proposes evaluating efficiency across the full cycle, not by lines of code or PR count: time from task creation to release, volume of manual rework, defects after merge, cost of checks, and time to restore context.

The general conclusion: an agent's autonomy should grow in step with the team's ability to control its work. There is no universal percentage of tasks that can be handed to agents. Everything depends on the nature of the task, the context, the ways of verification, and the cost of errors. The article reflects one team's experience and the opinions of conference participants, not a measured benchmark. But the principle is verifiable: expand an agent's permissions only where there are concrete mechanisms for verification and rollback.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/companies/cloud_ru/articles/1114676/?utm_campaign=1114676&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18847
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
