# I Made a Fruit Fly Review My Code

Nick Nisi, WorkOS | AI Engineer NYC 2026 | 16:37

Source: https://www.youtube.com/watch?v=geMAe-PLJF4
Channel: AI Engineer (https://www.youtube.com/@aiDotEngineer). Summarised by AIE Talks.
Page: https://aietalks.com/talks/i-made-a-fruit-fly-review-my-code
Published: 2026-11-01
Tags: agents, coding-agents, human-in-the-loop, workflows

## TL;DR
- Human review is becoming the bottleneck because code, CI checks, and automated review agents are producing changes faster than people can inspect them.
- A simulated fruit fly brain judged code by turning changes into smells and learning good and bad patterns through sugar and bitter rewards.
- Teams can reduce review work by escalating risky pull requests and asking agents to provide evidence such as screenshots, test results, smoke tests, and command output.

## Summary
Nick Nisi argues that human code review is changing because code generation and automated checks are increasing the number of pull requests. He built a demonstration around a scanned male fruit fly brain, using AI to turn code into 30 non-biased smell questions. Training gives good code a sugar association and bad code a bitter one. The fly does not explain its decisions, but it can identify several kinds of changes and judged test examples correctly about 88% of the time. Nisi says the lasting human role is understanding why functionality or business logic changed. His proposed workflow uses a team-maintained review skill, a classifier, and automated reviewers before escalating a pull request to a person. For changes that pass, the system should return proof such as screenshots, smoke tests, test results, and command output. The talk is an entertaining demo with a practical conclusion: review should focus human attention on changes that need context and judgment.

## Key ideas
### Human review is becoming the bottleneck in software delivery
[00:31](https://www.youtube.com/watch?v=geMAe-PLJF4&t=31s)
Nisi says code is being written faster than ever and teams are opening more pull requests, while CI, linting, and agents leave changes waiting for a human. He questions why people must approve code when the important question is whether the functionality does what they expect. In his view, review will remain partly because people need context about a proposed change and why it matters, rather than because they can reliably find mistakes that automated tools missed. He names Claude Code, Codex, Graphite, and CodeRabbit as examples of the systems now involved in writing or checking code.

### A scanned fruit fly brain can be connected to a code-review experiment
[02:35](https://www.youtube.com/watch?v=geMAe-PLJF4&t=155s)
Nisi introduces a male fruit fly brain connectome as the engine for his demonstration. The brain was scanned by slicing it thousands of times under an electron microscope and mapping 176,000 neurons, 6.3 million connections, and more than 125 million synapses. He says he left the neurons unchanged apart from a small memory-related subset. The experiment uses the connectome to classify code changes, following earlier projects that connected fruit fly brains to games such as Doom and Beat Saber.

### AI turns code changes into smells that the fly brain can process
[04:52](https://www.youtube.com/watch?v=geMAe-PLJF4&t=292s)
The fruit fly does not understand code directly. Nisi uses Jev, a system one model, as the fly's nose and asks it 30 non-biased questions about the code under review. The answers become literal code smells. Before reviewing a pull request, the system trains on the codebase, associating good code with sugar water and bad code with a bitter smell. Different smell levels produce different signals, and the fly's tongue coming out indicates that it accepts the change. A retracted tongue indicates that it should be avoided.

### The connectome contributes to the decision instead of merely displaying an AI result
[07:32](https://www.youtube.com/watch?v=geMAe-PLJF4&t=452s)
Nisi tests whether the fruit fly brain is redundant. When he removes the stored memories of good and bad code, the system stops behaving correctly. It mixes up when the tongue should come out and when it should retract. He uses this result to argue that the fly brain is processing the smells and applying learned associations, rather than simply repeating Jev's classification. The mechanism is still a deliberately narrow demonstration, since the fly only produces an accept-or-reject signal and cannot explain what should change.

### The fly can catch simple issues but cannot explain the reason
[11:55](https://www.youtube.com/watch?v=geMAe-PLJF4&t=715s)
In the audience game, the room correctly judged three sample changes while the fly judged two of three. Nisi says the fly was right about 88% of the time in his testing. On harder examples, he says it requested changes 96% of the time for one case and 98% of the time for another plausible mistake. The system can identify changed conditionals and removed logic, but it cannot communicate or understand JavaScript. Nisi says tools such as Greptile and CodeRabbit do this much better. The part he assigns to humans is understanding why functionality or business logic changed.

### A review pipeline can escalate only changes that need a person
[12:33](https://www.youtube.com/watch?v=geMAe-PLJF4&t=753s)
Nisi proposes a sequence that filters pull requests before they reach a human. A team-maintained review skill would define the minimum checks for a group, such as WorkOS's developer experience team, using code-owner boundaries. A classifier could then estimate complexity, whether the change does what it claims, and whether it creates significant risk. Automated reviewers such as Greptile, CodeRabbit, and Qodo would run after that. Any failure would escalate the pull request. If every stage passes, the change could merge without another person's review, with failures audited so the team can improve its checks.

### Automated review should return proof that the change works
[14:56](https://www.youtube.com/watch?v=geMAe-PLJF4&t=896s)
Nisi says the human needs evidence that an agent did the work, especially when the reviewer cares more about behavior than the code itself. That evidence could include screenshots, videos, test results, command output, and smoke tests that the reviewer can run. The system could also provide simple ways to reproduce the change for manual testing. The team review skill would vary by group, since a developer experience team and a platform team care about different files and risks. The final decision is whether the available evidence is enough or whether the change should be escalated.

## Notable quotes
- "If we're not writing the code anymore, why do we need a human to review the code?" (01:11)
- "So, we're taking our code and turning it into literal code smells." (05:15)
- "But nothing knows why." (12:08)
- "If any of those failed, escalate that to a human. If none of those failed, it's probably a safe PR to merge on its own and we don't have to bother another human." (13:48)
- "You can prove that the agents actually did the work to verify this by having it create screenshots, videos, put test results or command outputs on there." (15:07)

## Tools & references mentioned
- WorkOS
- Claude Code
- Codex
- Graphite
- CodeRabbit
- Greptile
- Qodo
- Jev
- fruitfly.review
- GitHub
- Doom
- Beat Saber

## Who should watch
- You review pull requests for a team where generated changes and automated checks are already waiting on human attention.
- Your team wants to define review rules by ownership area and send only complex or risky changes to engineers.
- You are designing agent workflows and need practical evidence, such as smoke tests and screenshots, instead of a simple automated approval.

## Related talks

- [The Death of the Code Review: What the Data Actually Says](https://aietalks.com/talks/the-death-of-the-code-review-what-the-data-actually-says) (Laurie Voss, Arize AI, 24:41)
- [How to Kill the Code Review](https://aietalks.com/talks/how-to-kill-the-code-review) (Ankit Jain, Aviator, 16:26)
- [Fixing the PR Bottleneck](https://aietalks.com/talks/fixing-the-pr-bottleneck) (Matt Pocock, AI Hero, 22:35)
- [How to Build an AI Code Review Agent](https://aietalks.com/talks/how-to-build-an-ai-code-review-agent) (Daksh Gupta, Greptile, 18:27)
- [AI-powered entomology: Lessons from millions of AI code reviews](https://aietalks.com/talks/ai-powered-entomology-lessons-from-millions-of-ai-code-reviews) (Tomas Reimers, Graphite, 10:21)
