Code review is the highest-leverage activity a team can practice. It catches bugs before they reach production, spreads knowledge across the team, and enforces coding standards. It's also painfully slow: a single pull request can take 30“60 minutes of focused attention, and with dozens of PRs flowing daily, review becomes the bottleneck.
So I tried the other extreme. I pasted my code into an AI that doesn't suggest politely ” it roasts it. Line-by-line, unsparing, with line numbers and suggested refactors. The verdict came back in under a minute, and it found 14 issues I'd missed.
Here's what it taught me.
What an AI code roast actually is
An AI roast is a critique, not a linter. Linters check formatting rules you already know. An AI reviewer reads your code like a senior engineer on a bad day: it hunts for code smells, security anti-patterns, performance red flags, and style violations ” then tells you exactly where they are and how to fix them.
It doesn't replace human judgment. It removes the rote, pattern-matching work that consumes 80% of a human review's time. That's the part nobody enjoys anyway.
The 5 code smells it caught instantly
1. Functions that are too long
Anything over ~50 lines signals the function is doing three jobs instead of one. The AI flagged mine and pointed at the exact extraction points.
2. Excessive nesting
More than three levels of indentation deep means the control flow is tangled. Every extra level multiplies the number of paths a future maintainer has to hold in their head.