DefinitionCode review is the practice of having someone other than the author read and assess a code change before it is merged into the product. The reviewer checks that the change does what it should, is understandable, secure and consistent with the rest of the project. Comments go back to the author, and the change goes in only once it is approved.
How does code review work?
- Proposing a change. The author submits the change with a short description of what and why, most often as a pull request.
- Automation. Tests and quality checks run by themselves, so no one spends time on what a machine can catch.
- The review. A second person reads the change, asks questions and leaves comments.
- Fixes and approval. Once the comments are addressed, the change is approved and merged into the project.
What does a code review catch?
- Logic errors the tests missed, such as a discount calculated wrongly in a rare case.
- Security gaps: customer data reachable without signing in, passwords written into the code.
- Solutions that work today but will make every later change harder.
- Drift from what was agreed: the change does something other than what the client asked for.
There is a side effect too: more than one person knows the project, so a holiday or a departure does not stop the work.
Code review and working with AI
When an AI agent writes the code, the review becomes the main point at which the developer takes responsibility for the result. They read the changes, check they fit the architecture and reject anything that only looks right. That is what separates working with AI from vibe coding, which means accepting code without reading it.
AI helps on the other side as well: it can do a first pass, flag suspicious places and point out missing tests. The decision to approve stays with a person.
What to ask your developer
- Who reviews changes before they are published? With a solo developer: which automated checks and AI review take the place of a second reviewer?
- Does the history of changes and comments stay in a repository I have access to?
- Can an independent review of existing code be arranged, for example of a prototype built with AI?
Frequently asked questions
Does code review slow the work down?
It adds a step before release but cuts the time later lost hunting for bugs reported by customers. Small changes are reviewed in minutes, and routine checks are done by automation.
Can AI do code review instead of a person?
It can do a first review and catch many problems. For changes that involve customer data, payments or security, approval should come from a person who knows the project and is responsible for it.
See also
Sources