I Made a Fruit Fly Review My Code with Nick Nisi, WorkOS

Code review is becoming the bottleneck in software development now that AI writes code faster than humans can review it; the speaker argues that automated re

By Sean Weldon

Abstract

As generative coding assistants increase the rate of pull request (PR) submission, human code review has become the rate-limiting step in software delivery. This synthesis examines the argument that human review should function as an escalation tier rather than a universal gate, with automated classifiers and reviewer tools absorbing routine approvals. The argument is supported by an unusual existence proof: a simulated connectome of a male fruit fly brain, trained to emit a binary approve/reject signal on code changes and achieving approximately 88% accuracy in general testing, rising to 96-98% on harder scenarios. The demonstration indicates that surface-level defect detection is readily automatable, while causal explanation of why a change is being made remains a distinctive human contribution. A four-stage escalation pipeline with post-merge auditing is proposed as the practical consequence, alongside implications for how review responsibilities should be redistributed across tooling and personnel.

1. Introduction

Code review has historically bundled two distinct functions into a single gate: defect detection (is this code well-formed and functionally correct?) and intent validation (should this change exist, and does it achieve its intended purpose?). When humans authored all production code, combining these functions into one human approval step was economical, since the reviewer was already close to the problem domain. That economy no longer holds once code authorship itself is substantially automated.

Tools such as Claude Code and Codex have measurably increased the velocity of code production, while continuous integration (CI), linting, and AI review agents already inspect most PRs before a human examines them. Human approval nonetheless persists as the final serialized step in an otherwise parallelized pipeline, making it the structural bottleneck. The central claim under examination is that engineers have been functionally reclassified from code authors to project and engineering managers of AI-generated code, yet review workflows have not been restructured to reflect this shift.

"If we're not writing the code anymore, why do we need a human to review the code?"

This synthesis proceeds in four analytical steps. Section 2 situates the argument within existing automated-review tooling and connectomics research. Section 3 analyzes the bottleneck claim, the fly-brain demonstration, and the proposed escalation pipeline. Section 4 consolidates the technical findings into implementation considerations. Sections 5 and 6 discuss broader implications and limitations before concluding.

2. Background and Related Work

A mature ecosystem of automated reviewers already operates on PRs. Graphite produces confidence-scored assessments (for example, a 5-out-of-5 rating), while tools including Reptile, Code Rabbit, and Codo perform deeper static and semantic analysis. These systems reliably outperform naive classifiers at surface-level defect detection: style violations, logic errors, missing error handling, and idiomatic misuse. None of them, however, encode information about the business or functional intent behind a change.

The demonstration's relevant prior art is connectomics, the discipline of mapping complete neural wiring diagrams. The fly brain used in the demonstration was constructed by slicing a real fruit fly brain thousands of times and photographing each section under an electron microscope, producing a wiring diagram of 176,000 neurons, 6.3 million connections, and more than 125 million synapses that can be simulated computationally. Associative learning in Drosophila is well characterized in the biological literature: olfactory input paired with reward (sweet taste, dopaminergic reinforcement) or punishment (bitter taste) strengthens or weakens specific synaptic pathways, and the resulting approach or avoidance behavior is observable through proboscis extension - tongue extension signaling acceptance, retraction signaling rejection. This biological mechanism is repurposed in the demonstration as a judgment classifier rather than an explanatory system, a distinction central to the thesis.

3. Core Analysis

3.1 The Bottleneck and the Managerial Reframe

The argument advanced is structural rather than purely quantitative. Automated checks scale horizontally with PR volume, while human attention does not. When high-confidence automated assessment already exists - such as a Graphite score of 5/5 - requiring exhaustive human line-by-line inspection adds latency without a commensurate increase in defect detection. The practical consequence is that the purpose of review is shifting: rather than "approve the code," the operative question becomes "confirm the change does what is expected and understand why it matters." This reframes the human role from code inspector to validator of intent, consistent with the broader claim that engineers now function as managers of AI-generated output.

3.2 The Fruit Fly Brain as a Minimal Judgment Model

The connectome demonstration functions as a thought experiment testing how little machinery is required to produce a usable approve/reject signal. Code changes are converted into a sensory "smell" signal by an AI model (referred to as Jev, described as a "system one model") that generates 30 non-biased questions about the change. Only a small subset of neurons in the simulated brain was modified to encode memory of "good" versus "bad" code; the remainder of the connectome's architecture was left unaltered. Good code triggered a reward response (sweet taste, dopamine), while bad code triggered punishment (bitter taste), reinforcing or weakening the relevant synaptic pathways through repeated exposure.

Two findings substantiate that the brain's structure, not merely the upstream AI classifier, performs the decision: first, the fly achieved roughly 88% accuracy in general testing and 96-98% on two harder test scenarios, figures that exceeded a live human panel's performance in at least one demonstrated trial (3-for-3 humans versus 2-for-3 fly, inverted in the panel's favor only by a narrow margin). Second, and more diagnostically, removing the trained memory neurons caused the fly's behavior to become random and non-functional, indicating that judgment was encoded in the trained synaptic structure itself rather than simply echoed from the input signal. A critical limitation is explicit: the fly cannot explain why code is good or bad, nor can it propose a fix. It produces a binary signal only.

3.3 The Proposed Escalation Pipeline

The practical architecture proposed to operationalize this distinction between detection and explanation is a four-stage escalation pipeline:

  1. A team-maintained review skill or script tied to GitHub code owners, representing the bare minimum checks a team requires.
  2. A lightweight classifier model assessing complexity, intent-matching, and risk level.
  3. Automated reviewer tools (Reptile, Code Rabbit, Codo) performing deeper code analysis.
  4. Human escalation triggered by failure at any prior stage.

PRs that clear all three automated stages merge without human review; failures occurring after merge are audited to improve the team skill or automated reviewers for subsequent cycles, creating a feedback loop rather than a static gate. AI is positioned to participate not only in flagging issues but in fixing them post hoc. The final deliverable to a human reviewer, when escalation does occur, is a summarized explanation of why the change happened - business logic rationale, alternatives tested and discarded - accompanied by proof of functional correctness such as screenshots, videos, test results, or manual replication steps. Different teams (for example, a developer-experience team versus a platform team) would maintain distinct review skills reflecting their domain expertise, and reliance on manual verification is expected to diminish as trust in automated methods accumulates.

4. Technical Insights

Several implementation considerations follow from the analysis. First, the conversion of a code diff into a fixed-size, non-biased question set (30 questions, via Jev) functions as a feature-extraction step that standardizes heterogeneous code changes into a comparable signal space before classification - a pattern applicable beyond the fly-brain novelty to any lightweight classifier stage in the pipeline. Second, the near-total structural reuse of an unmodified biological connectome, with judgment encoded in a small trained subset of neurons, suggests that the discriminative task (good/bad) required surprisingly little capacity relative to the scale of the underlying network (176,000 neurons, 125 million+ synapses), implying that classifier-stage models in a production pipeline need not be large to achieve useful accuracy on routine PRs.

A key trade-off is explicit in the accuracy figures: 88% general accuracy and 96-98% on harder, presumably narrower scenarios indicate that performance is scenario-dependent, and a production classifier stage would require calibration per repository or code domain rather than a single universal threshold. The binary, non-explanatory nature of the signal is a hard limitation - it is suitable only for a triage decision (escalate or not), not for substituting human judgment on intent. Finally, the pipeline's reliance on post-merge auditing as the improvement mechanism implies an operational cost: a team must explicitly review failures that were missed by automated stages or the process degrades rather than improves over time.

5. Discussion

The broader implication is a decoupling of two review functions that were previously fused by necessity. As automated defect detection approaches the accuracy ceiling demonstrated even by minimal-capacity systems, the comparative advantage of human reviewers narrows almost entirely to intent validation - understanding why a change exists in a business or product context. This reframing aligns with a broader industry trend in which generative coding tools shift developer effort from authorship toward specification, oversight, and verification.

A notable gap in the demonstration is explainability: no mechanism is proposed for a classifier stage to generate the "why" that the connectome explicitly cannot produce. The proposed pipeline addresses this only by delegating explanation generation to a separate summarization step for escalated PRs, rather than by extending the classifier itself. Future work would need to establish how reliably such summaries capture genuine business rationale versus post hoc rationalization generated by the same AI tools that authored the code.

A second open question concerns calibration drift: as automated tools and classifiers are tuned against a team's historical PR outcomes, there is a risk of the system reinforcing existing blind spots rather than correcting them, particularly if post-merge auditing is inconsistently applied.

6. Conclusion

This synthesis has examined the claim that human code review should be restructured as an escalation tier rather than a universal gate, substantiated by a connectome-based demonstration achieving 88-98% binary accuracy without any capacity for explanation. The key contribution is a clear separation of defect detection, which is shown to be automatable even by minimal-capacity systems, from intent validation, which remains a human function. The practical takeaway is a four-stage escalation pipeline - team skill, lightweight classifier, automated reviewer, human escalation - paired with post-merge auditing and intent-focused summarization for the PRs that do reach a human. Teams adopting this approach should expect manual verification requirements to decrease incrementally as trust in automated stages is established through tracked outcomes rather than assumed from tool adoption alone.


Sources


About the Author

Sean Weldon is an AI engineer and systems architect specializing in autonomous systems, agentic workflows, and applied machine learning. He builds production AI systems that automate complex business operations.

LinkedIn | Website | GitHub

Sean Weldon builds apps and custom software at 22Atlas.

Start your build

More about Sean