{"id":6064,"date":"2026-11-23T17:10:37","date_gmt":"2026-11-23T17:10:37","guid":{"rendered":"https:\/\/www.aviator.co\/blog\/?p=6064"},"modified":"2026-11-23T17:10:39","modified_gmt":"2026-11-23T17:10:39","slug":"how-we-review-4x-more-ai-code-without-reading-every-line","status":"publish","type":"post","link":"https:\/\/www.aviator.co\/blog\/how-we-review-4x-more-ai-code-without-reading-every-line\/","title":{"rendered":"How we review 4x more AI code without reading every line"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Do you need to read every line of AI-generated code to trust it?<\/strong>&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Not necessarily. Instead, check five things: the intent behind a change, its acceptance criteria, the invariants it can&#8217;t break, the decisions made along the way, and evidence that it works.<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At <a href=\"https:\/\/www.aviator.co\/\">Aviator<\/a>, that shift let the same nine engineers merge 4\u00d7 more pull requests, cut median time to merge from 2.1 days to 3.4 hours, and drop reverts by 40%. A human still signs off on every PR. What changed is what that human reads.<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We got the insight by sorting our own review comments. Most of what a reviewer writes on a PR is either a rule they&#8217;ve written before or a decision. Machines should check rules every time. Decisions need a person, and a diff is the worst place to make them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The problem: Code review doesn&#8217;t scale with AI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Our code flipped from human-written with AI help to AI-generated with human help. Weekly merged PRs went from about 100 to more than 400. Our median AI-generated PR reached 640 lines, well past 400 lines, widely considered the limit where bug detection falls off.<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Catching bugs was never the main point of code review anyway. In Microsoft&#8217;s 2013 study (Bacchelli &amp; Bird), only 14% of review comments were about defects. Review is how <a href=\"https:\/\/www.aviator.co\/blog\/ai-code-review-knowledge-sharing\/\">engineers share knowledge<\/a> and keep their mental model of the system current, and that&#8217;s the part worth protecting. When agents write most of the code, it&#8217;s also the part most at risk.<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since I argued that <a href=\"https:\/\/www.aviator.co\/blog\/how-to-kill-the-code-review\/\">code reviews are dead<\/a>, the most common pushback I hear is, &#8220;So you just stopped reviewing?&#8221; No. We stopped reviewing the diff.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">So, what didn&#8217;t work?<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>An AI reviewer.<\/strong> On one of my own PRs, it opened 16 of 18 threads: magic numbers, array-index React keys, a component that ran too long. One thread caught a real race condition. The two comments that mattered, both design decisions from teammates, got buried under nits.<\/li>\n\n\n\n<li><strong>A four-hour review SLA.<\/strong> We couldn&#8217;t add reviewers, so we added a rule. First reviews got faster, and approvals got emptier, as reviewers skimmed to hit the clock and their own work stalled.<\/li>\n\n\n\n<li><strong>A self-review skill tuned to our conventions.<\/strong> Its findings were far better than the generic bot&#8217;s. But it still read the diff after the code was written, and the most useful part of the exchange, what it argued about and what we decided, died in a chat window.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">All three tried to read the diff better. But the diff is the <a href=\"https:\/\/www.aviator.co\/blog\/move-code-review-before-the-code\/\">least important part of code review<\/a> anyway. It shows what changed, never why.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To see what review actually contained, I went back to a PR I&#8217;d reviewed in 2025. It had 14 threads. Eight came from a bot and caught one real bug. Three of my six comments were rules I&#8217;d already written on other PRs, like &#8220;Use GraphQLRetryableException so Celery retries on it.&#8221; Only two were real decisions, like &#8220;No comments extracted: should we tell the user on the PR?&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Insert image: verify-intent-visual<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What did work: Verify intent, not lines<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Code review used to do several jobs at once: catch bugs, enforce team conventions, settle design decisions, and keep everyone&#8217;s understanding of the system current. We split those jobs up and gave each one a better home.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Argue before the PR exists.<\/strong> Our review agent cross-examines the author&#8217;s agent, running on a different model, and writes down every disagreement. On one recent PR, the agents raised four disagreements and settled three with a stated reason. The only one left for a human was a naming call.<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Capture intent and acceptance criteria.<\/strong> Not as an up-front spec, but captured from the coding session with the agent. Every time an engineer corrects the agent or answers its question, we create a criterion. We used to throw those away when the session ended. Intent answers why we&#8217;re making the change; acceptance criteria answer how it should behave. Intent without criteria can&#8217;t be checked, and criteria without intent can&#8217;t be judged.<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Codify repeated comments as invariants.<\/strong> We mined a year of review history in three passes: drop the noise (bot summaries, bare &#8220;LGTMs&#8221;), classify every comment as a rule, proposal, one-off fix, or question, then merge the repeats. 11,400 comments became 212 candidate rules and 64 approved <a href=\"https:\/\/docs.aviator.co\/verify\/concepts\/invariants\">invariants<\/a>. Each has a scope, a verification method, provenance, and an owner.<br><br>Take &#8220;Every config change writes an audit-log entry, only when something changed.&#8221; It covers GraphQL mutations and API handlers that write config, is verified by a preview run that saves twice and reads the audit log, was mined from 23 review threads across 17 PRs, and belongs to the platform team.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A model checking every invariant on every PR is slow and not perfectly repeatable, so where possible an agent compiles invariants into ast-grep rules that run in shadow beside the model until they agree. A comment we&#8217;d left on nine PRs, &#8220;Add a timeout, this hung a worker,&#8221; is now an eight-line rule. Nineteen invariants run deterministically, in 0.3 seconds.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><br><\/strong><strong>Prove every criterion with evidence.<\/strong> Each criterion becomes a scenario. An agent spins up a preview environment, drives it like a user, and records screenshots, requests, and logs. For the audit-log invariant, it saves a setting, confirms one new log entry, saves again with nothing changed, and confirms there&#8217;s still one.<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That second half is exactly what a reviewer reading the diff would never check. Not every criterion needs a browser: an API contract is proven by a recorded request and response, a code rule by an ast-grep match or a file-and-line citation. Pick the cheapest proof that settles the question. A green CI check only says the tests you thought of passed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Debate the decisions.<\/strong> Decisions come from three places: the coding session, the agents&#8217; argument, and failed verification runs. The PR lists every one, where it came from, and who settled it. On a PR that added retries for failed webhook deliveries, four of five decisions were settled; the agents disagreed on whether to deduplicate retried deliveries, so a person settled that one.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Reviewers skim what&#8217;s settled, settle what the agents couldn&#8217;t, reopen anything they&#8217;d call differently, and talk it through with the author. That conversation builds understanding of the system.<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Own the rules.<\/strong> Engineers stop reading every line. They own the rules that check every line, and keep their understanding of the system by reading intent, evidence, and decisions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The results<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PRs merged per week: 4\u00d7, with the same nine engineers<\/li>\n\n\n\n<li>Median time to merge: 2.1 days \u2192 3.4 hours<\/li>\n\n\n\n<li>Human threads per PR: 6.2 \u2192 1.3<\/li>\n\n\n\n<li>Reverts per 100 PRs: down 40%<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Review work didn&#8217;t disappear. It moved to refining invariants, debating decisions, and improving verification. Expect the transition to hurt: month one is double work, by month two invariants catch up enough that reviews shrink, and by month three you read intent and evidence, not code.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.aviator.co\/verify\"><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"250\" src=\"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2026\/08\/CTA-Verify.png\" alt=\"\" class=\"wp-image-5972\" srcset=\"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2026\/08\/CTA-Verify.png 970w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2026\/08\/CTA-Verify-300x77.png 300w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2026\/08\/CTA-Verify-768x198.png 768w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Review 4x more AI code without reading every line by verifying intent, invariants, decisions, and concrete evidence instead of raw diffs.<\/p>\n","protected":false},"author":15,"featured_media":6065,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[126,90,59,169],"class_list":["post-6064","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-ai-code-review","tag-ai-coding","tag-code-reviews","tag-code-reviews-at-scale"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How we review 4x more AI code without reading every line - Aviator Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thenewstack.io\/scale-ai-code-reviews\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How we review 4x more AI code without reading every line - Aviator Blog\" \/>\n<meta property=\"og:description\" content=\"Review 4x more AI code without reading every line by verifying intent, invariants, decisions, and concrete evidence instead of raw diffs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thenewstack.io\/scale-ai-code-reviews\/\" \/>\n<meta property=\"og:site_name\" content=\"Aviator Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-23T17:10:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-23T17:10:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2026\/11\/review-at-scale-v2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1320\" \/>\n\t<meta property=\"og:image:height\" content=\"690\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ankit Jain\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ankit Jain\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How we review 4x more AI code without reading every line - Aviator Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thenewstack.io\/scale-ai-code-reviews\/","og_locale":"en_US","og_type":"article","og_title":"How we review 4x more AI code without reading every line - Aviator Blog","og_description":"Review 4x more AI code without reading every line by verifying intent, invariants, decisions, and concrete evidence instead of raw diffs.","og_url":"https:\/\/thenewstack.io\/scale-ai-code-reviews\/","og_site_name":"Aviator Blog","article_published_time":"2026-11-23T17:10:37+00:00","article_modified_time":"2026-11-23T17:10:39+00:00","og_image":[{"width":1320,"height":690,"url":"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2026\/11\/review-at-scale-v2.png","type":"image\/png"}],"author":"Ankit Jain","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ankit Jain","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thenewstack.io\/scale-ai-code-reviews\/#article","isPartOf":{"@id":"https:\/\/www.aviator.co\/blog\/how-we-review-4x-more-ai-code-without-reading-every-line\/"},"author":{"name":"Ankit Jain","@id":"https:\/\/www.aviator.co\/blog\/#\/schema\/person\/9d68a2b53b2dc04779f99ee40b3914a4"},"headline":"How we review 4x more AI code without reading every line","datePublished":"2026-11-23T17:10:37+00:00","dateModified":"2026-11-23T17:10:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.aviator.co\/blog\/how-we-review-4x-more-ai-code-without-reading-every-line\/"},"wordCount":1155,"image":{"@id":"https:\/\/thenewstack.io\/scale-ai-code-reviews\/#primaryimage"},"thumbnailUrl":"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2026\/11\/review-at-scale-v2.png","keywords":["AI code review","AI coding","code reviews","Code Reviews at Scale"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.aviator.co\/blog\/how-we-review-4x-more-ai-code-without-reading-every-line\/","url":"https:\/\/thenewstack.io\/scale-ai-code-reviews\/","name":"How we review 4x more AI code without reading every line - Aviator Blog","isPartOf":{"@id":"https:\/\/www.aviator.co\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thenewstack.io\/scale-ai-code-reviews\/#primaryimage"},"image":{"@id":"https:\/\/thenewstack.io\/scale-ai-code-reviews\/#primaryimage"},"thumbnailUrl":"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2026\/11\/review-at-scale-v2.png","datePublished":"2026-11-23T17:10:37+00:00","dateModified":"2026-11-23T17:10:39+00:00","author":{"@id":"https:\/\/www.aviator.co\/blog\/#\/schema\/person\/9d68a2b53b2dc04779f99ee40b3914a4"},"breadcrumb":{"@id":"https:\/\/thenewstack.io\/scale-ai-code-reviews\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thenewstack.io\/scale-ai-code-reviews\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thenewstack.io\/scale-ai-code-reviews\/#primaryimage","url":"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2026\/11\/review-at-scale-v2.png","contentUrl":"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2026\/11\/review-at-scale-v2.png","width":1320,"height":690},{"@type":"BreadcrumbList","@id":"https:\/\/thenewstack.io\/scale-ai-code-reviews\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.aviator.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How we review 4x more AI code without reading every line"}]},{"@type":"WebSite","@id":"https:\/\/www.aviator.co\/blog\/#website","url":"https:\/\/www.aviator.co\/blog\/","name":"Aviator Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.aviator.co\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.aviator.co\/blog\/#\/schema\/person\/9d68a2b53b2dc04779f99ee40b3914a4","name":"Ankit Jain","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5f573452342d650c8b94207298e386ed0c10d45a16df11bb45d80052d181765b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5f573452342d650c8b94207298e386ed0c10d45a16df11bb45d80052d181765b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5f573452342d650c8b94207298e386ed0c10d45a16df11bb45d80052d181765b?s=96&d=mm&r=g","caption":"Ankit Jain"},"description":"Ankit Jain is a cofounder and CEO of Aviator, a developer productivity platform used by modern engineering teams to ship AI-generated code at scale. He also leads The Hangar, a community of senior DevOps and senior software engineers focused on developer experience, and Xoogler, the ex-Google alumni network.","url":"https:\/\/www.aviator.co\/blog\/author\/ankitjain\/"}]}},"_links":{"self":[{"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/posts\/6064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/comments?post=6064"}],"version-history":[{"count":2,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/posts\/6064\/revisions"}],"predecessor-version":[{"id":6068,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/posts\/6064\/revisions\/6068"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/media\/6065"}],"wp:attachment":[{"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/media?parent=6064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/categories?post=6064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/tags?post=6064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}