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

16:372 min readAI Engineer11/01/2026Computing/Software

Key Takeaway

Automated code review using a simulated fruit fly brain and AI models demonstrates that routine pull request checks can be offloaded, shifting human responsibilities from line-by-line inspection to verifying business logic and context.

Highlights

  • A male fruit fly connectome containing 176,000 neurons, 6.3 million connections, and over 125 million synapses was used to review JavaScript pull requests.

  • A system one model named Jev acts as the fruit fly nose by asking 30 unbiased questions about code, turning code diffs into literal smells.

  • The fruit fly brain correctly identified code issues 88% of the time across general tests and up to 96% to 98% on harder tests.

  • Team review skills and automated tools like Greptile and CodeRabbit can handle routine pull requests, escalating only risky code to human reviewers.

Timeline

  1. The Code Review Bottleneck

    Software engineering has evolved past the point where writing code is the primary constraint. With advanced tooling handling code generation and automated checks, human reviewers are now the main bottleneck in shipping software. This shift calls into question the traditional purpose of human-led code reviews when functionality and automated validation take precedence.

    • Software development faces a major bottleneck because code is written faster and pull requests are more frequent than ever.
    • AI coding tools and continuous integration handle initial implementation and automated checks, leaving human review as the primary delay.
    • The historical definition of software bugs originated from a literal moth trapped in a computer relay in 1947.
  2. Simulating a Fruit Fly Brain for Code Review

    To test unconventional review methods, a mapped fruit fly brain is integrated into the workflow. An AI system processes code changes and generates descriptive questions that simulate smells for the neural network. Depending on whether the code passes or fails tests, dopamine or bitter reinforcements train the model to register the code as acceptable or flawed.

    • A scanned male fruit fly connectome with 176,000 neurons and 125 million synapses serves as the core processing engine for code evaluation.
    • An AI model acts as the olfactory system by translating code diffs into non-biased questions that represent smells.
    • Good code releases sugar water smells and reward dopamine, while bad code produces bitter smells and punishment dopamine to guide memory retention.
  3. Evaluating the Fruit Fly Reviewer

    Live demonstrations and testing confirm that the fruit fly connectome successfully differentiates between sound code and problematic code without human intervention. While it lacks the ability to explain why a change fails or suggest direct syntax improvements, its high accuracy rate highlights the viability of non-traditional review mechanisms.

    • Removing learned memories causes the fruit fly brain to malfunction, proving the biological connectome actively processes code quality.
    • Audience trials and automated testing showed the fruit fly achieved an accuracy rate between 88% and 98% in identifying problematic code changes.
    • The fruit fly reviewer cannot communicate specific line fixes or language context, relying instead on a binary reaction to code smells.
  4. Redefining Human Roles in Code Review

    As automated agents and specialized models take over syntax and style checks, engineering teams can streamline their pipelines. By deploying team-maintained review scripts and risk-weighting classifiers, organizations can safely auto-merge low-risk pull requests. Humans retain oversight solely for high-risk changes, business logic alignment, and verifying proof of execution.

    • Human review should shift away from syntax checking toward verifying business logic, intent, and functional changes.
    • Teams can maintain specific review skills and automated classifiers to filter safe pull requests and only escalate high-risk changes to humans.
    • Verification practices like automated screenshots, video outputs, and smoke tests establish trust in fully automated merge pipelines.

Description

Code is being written faster than ever, and Nick Nisi, who leads developer and agent experience at WorkOS, argues that the human reviewer is now the bottleneck. To make the point, he hooked a simulated fruit fly brain, built from a full scan of its neurons, up to code review: AI turns each change into literal "code smells," sugar and bitter rewards teach the fly what good and bad code taste like, and it was right about 88% of the time in testing. Then he plays a live round against the audience and lays out a practical plan where team review skills, classifiers and automated reviewers only send the risky pull requests to a human, backed by proof like screenshots and smoke tests. Chapters: 0:00 Intro 0:37 Humans are the bottleneck 2:35 Where the word "bug" came from 3:04 Using a bug to find bugs 4:00 Wiring a fruit fly brain into code review 4:57 Turning code into smells 6:43 Sugar, bitterness and memory 7:32 Does the fly actually matter? 8:15 Game: are you smarter than a fruit fly? 10:22 Trying a real pull request 11:55 What only humans know: why 12:33 Escalate only the reviews that matter 14:56 Proof instead of review Nick Nisi https://workos.com Join us in SF for the second annual AIE CODE summit: https://aie.codes our last flagship summit of 2026. Applications live now!

Write about this video