B RU Habr author (powerman)·Practitioner post·

Reviewing AI-agent code: what you can skip and how to read the rest (Ревью кода от ИИ-агента: что можно не читать и как читать остальное)

B · Useful, limited A first-hand review method from an experienced Go developer, concrete and copyable (directory zone, linter rules, review order), but tested on his own projects only and with no metrics.

Summary based on the full text·Original: about 12 minutes to read

In short

A Habr post (22 November 2026) by powerman on reviewing code that a coding agent wrote for the same person who reviews it. Non-critical code goes into a vibecode/ directory treated like a vendored dependency: nobody reviews it, it sits behind a simple interface, and it has no I/O of its own. All other code is reviewed top-down against a model of the solution the reviewer forms before opening the diff, and the agent rewrites anything that departs from it.

Key numbers

  • about 1,800 + 1,400 linescode and own tests in the first package moved to the unreviewed vibecode zone
  • 2 depguard ruleslinter rules that keep unreviewed code to the standard library and block its own I/O
  • about 500 vs 300 linesagent-written log handler against the largest existing handler in the library, before rewrite
  • 2, rarely 3agents he runs in parallel while still reviewing their output

As reported by the source.

Read the original on habr.com

Russian·Web page·opens habr.com

What it reports

  • Two zones: code outside vibecode/ gets full review (tests a light one); code inside gets none, like vendor/.
  • Zone rules: non-critical, no non-functional requirements, isolated behind a simple interface, all project linters and tests apply, not to be copied as an example; written into AGENTS.md.
  • Zone tests written by the agent are not trusted; a few reviewed tests outside the zone cover main scenarios.
  • Two depguard rules enforce the zone in Go: one allows only the standard library and listed packages, the other denies os, net, database, syscall, unsafe and similar. A new import fails the linter and triggers a decision.
  • First case: tomlmerge, a three-way TOML merge package of about 1,800 lines plus 1,400 lines of tests, moved in with four outside scenarios.
  • Outside the zone he stops at the first mismatch with his expected design. Example: a log handler of about 500 lines (largest existing one about 300) used a weak-pointer registry; after he described what he expected, the agent rewrote it smaller.
  • Other habits: split large changes into logical parts, separate mechanical from semantic edits, ask for a comment when surprising code turns out right, check only deleted or changed tests.
  • Open problems: waiting minutes for rewrites breaks focus; tracking review state between iterations (WIP commits for now); only two, rarely three, agents in parallel.

How they got it

The author's own practice on his projects, with configuration excerpts and two worked examples. Some ideas were tested on one project only.

Limits

  • One developer, own projects; no measured time saved or defect rates.
  • Applies to the case where the same person generates and reviews.
  • The no-I/O rule is stated as a hypothesis still being tested; non-functional problems can leak through interfaces (for example N+1 queries).

Why it matters for companies

Agent output volume makes "review everything" unrealistic and "review nothing" unsafe. This gives a middle path that a team can encode: mark unreviewed code by path, keep it behind a narrow interface, block its I/O with linter rules, and make the review status visible in every import. The reviewer-first habit of forming a design before reading the diff, and asking the agent to rewrite rather than decoding it, is cheap to adopt.

Key passages in translation

Russian original

Сгенерированный код правдоподобен фрагмент за фрагментом, но цельной модели решения за ним может не оказаться

English translation

Generated code is plausible fragment by fragment, but there may be no coherent model of the solution behind it.

Russian original

Всё это маркирует авторство, а для ответственности важен статус ревью.

English translation

All of this marks authorship, while for accountability what matters is review status.

Russian original

Сам по себе ИИ не сделал ревью дешевле, но изменил то, что можно требовать от автора кода.

English translation

AI on its own did not make review cheaper, but it changed what you can demand from the author of the code.

Summary based on the full text. Read the original for the full argument and data.Read the original on habr.com

Tags

Same week

All of Week 47