Why PR Reviews matter more than ever in the age of AI-generated code
Whether AI coding assistants actually increase developer productivity is a contested topic right now. I believe they do. In my experience, the output gains are real and significant. What used to take days can now be generated in minutes. But with this newfound speed comes a dangerous side effect: complacency. Developers are becoming less critical of the code they produce, and even less critical when reviewing code generated by their teammates' AI tools. The result is that bugs, performance issues, and technical debt are slipping through at an alarming rate. The solution is not to abandon AI. It is to double down on the one thing AI cannot replace: a strong pull request review culture.
The 'Does It Work' Trap
When a developer prompts an AI agent to generate code, they naturally shift into a specific mindset. They focus on whether the code works, not how it works. The AI produces hundreds or even thousands of lines of code in seconds, and the developer runs it, sees it function, and moves on.
This is a trap. Functional code is not the same as good code. I have seen AI generate solutions that introduce multiple full table scans in a single API request. The code worked. It returned the correct data. But in production, with real data volumes, it would have caused devastating performance issues for users. The developer who prompted the agent did not catch this. A reviewer did.
