Review AI-written code before you ship
Read the diff, check it does only what you asked, look for security and data risks, test it on a preview, and keep changes small.
You're the reviewer now
Coding agents can change dozens of files in a minute. That speed is the point, but it means mistakes can slip in just as fast: a deleted check, a key in the wrong place, a 'small' change to the database. Professional teams review every change before it ships, usually as a pull request. You can do the same, even working alone.
Read the diff
- Look at the diff: the exact lines added and removed, file by file.
- Does it do what you asked, and only that? Unexpected files or features are a warning sign (scope creep).
- Ask the AI to explain the change in plain words and list every file it touched and why.
- If you can't explain a change, don't ship it yet.
The risky spots
Slow down for anything touching security or data: keys and environment variables, sign-in and permission checks (they must run on the server), database rules (RLS), migrations that change or delete data, payments, and new packages. Check that error handling didn't disappear and that nothing personal is being logged. These are the changes worth a second opinion from a person or another AI review.
Test, then ship small
Run the tests, click through the change on a preview deployment, and check it against the acceptance criteria for the task. Keep each change small, so it's easy to review and easy to roll back. Merge when it works; if something slips through, revert first and fix after.
Key terms
- Diff
- A view of exactly which lines were added, changed or removed.
- Pull request (PR)
- A request to merge one branch into another, with review and checks.
- Scope creep
- Extra requests that sneak in without changing the price or timeline.
- Acceptance criteria
- Testable conditions that say when a user story is done.
- Preview deployment
- A private, shareable copy of a branch or pull request for testing.
- Migration
- A saved, ordered script that changes the database structure.
- Row level security (RLS)
- Database rules that decide which rows each user may read or change.
- Revert
- Undo a change by going back to an earlier working version, often a Git commit.
Try it
Review one change properly
- Ask your coding agent for one small change, and have it work on a branch.
- Open the diff and list every file it touched; ask the AI to explain any change you don't understand.
- Check the risky spots list and test the change on a preview link.
- Merge it with a clear message, or ask for a smaller change if it did too much.
Ask an AI tutor about this guide
Copy a prompt into ChatGPT, Claude or Gemini to go deeper. Check what it tells you against the guide.
- Explain it like I'm 12
- Quiz me (5 questions, one at a time)
- Show me a real example for my situation
- What do beginners get wrong?
Knowledge check
Five questions. Get 4 right to earn the Careful Reviewer badge. You can retake it as often as you like.
Question 1 of 5
Finished the Vibe coding guides? Take the Vibe coding track test for ten mixed questions.
My notes
Write what clicked, what confused you, and what you want to try. Saved in this browser only.
Learn it live
Digital Builders University runs small live workshops where you build something real with an instructor beside you, starting with Vibe Coding 101.
See workshopsPractise it
- Cheat sheet: Review checklist for AI-written code
Official sites
- GitHub docs: About pull request reviews (opens in a new tab)
- Google: Code review developer guide (opens in a new tab)
Last reviewed November 25, 2026. AI tools change fast; check each tool’s own site for current features, plans and prices.
