How Do You Review AI Code If You Can't Read Code?
Ask for a plain-language account of what changed and why. Then look for a short list of red flags in the changed files, test the result yourself, and have a fresh AI session review it. You won't catch everything this way, but you'll catch the changes that do the most damage, such as deleted checks and new access.
I'm not a developer. Review the changes since [my last commit / the last checkpoint]. Don't change anything. 1. Summarize what changed in plain language, in under 100 words. Compare it with what I asked for: [my request]. 2. List anything you changed that I didn't ask for. 3. Answer yes or no for each of these, with file and line: - Was any test, permission check, validation or error handling removed or weakened? - Were any access rules or row level security policies changed? - Is there a new package, environment variable or outside service? - Is there a new NEXT_PUBLIC_ or VITE_ variable, or a key in the code? - Is there a database change? Could it lose data? - Does anything new accept a price, role or user ID from the browser? - Does anything new use a secret key to skip access rules? 4. Name the single most likely way this breaks, and how I can test it in the running app. If you aren't sure, say so. Don't reassure me.
- Test deleted or skippedThe error vanished, but so did the check
- Exception caught and ignoredThe failure still happens, silently
- Type check silencedThe warning is gone, not the problem
- Wildcard in a configAccess may now be wider than you asked
- Value moved to a public variableA secret may now reach the browser
- Lock file changed unaskedFind out which package was added
- When easy to verify48.0%
- Many tasks, not important decisions16.3%
- Low-risk tasks only16.3%
- Don't trust for most tasks12.3%
- Many tasks, including important decisions6.6%
- Not sure or no AI use0.5%
Try it now
- 1If you can use Git, run
git diff --statin your project to list changed files and how much changed in each. In Replit, click Changes on a checkpoint. On v0, use Review Code. - 2Check the file names against your request. A button change shouldn't touch files with names like
auth,middleware,migrationsorpolicies. - 3Start a new session, paste the prompt above, then run the test it suggests. You've done it right when you can explain each file on the list, or you've asked about the ones you can't.
Use it when
Before saving any change that touches sign-in, payments, the database, environment variables or a new package. For small visual changes, a quick look at the preview is enough.
Skip it when
Don't review every change this deeply on a throwaway prototype. And don't use it instead of a professional review when the app handles sensitive data. It's a filter that catches obvious problems, not proof the code is secure.
Why it works
You don't need to understand every line to see that a change touched sign-in when you asked for a button. File names and a change summary carry a lot of signal. Tools make this visible: Replit shows checkpoints with a Changes button, its Git pane lists them as commits, v0 offers Review Code in the branch menu, and Claude Code's desktop app shows diffs.
A fresh session helps because it has no stake in the earlier decisions. Anthropic's Claude Code guide warns that a long conversation keeps its own failed attempts in view, which is why it suggests starting clean. Rule of thumb, not a vendor figure: an AI is often better at finding flaws in code it's asked to criticize than in code it has just defended.
Example
You asked for a search box. The file list shows the search component, but also middleware.ts and a new migration. That's your cue. The review prompt reports that a route was added to the middleware's public list so search could work signed out, and that the migration added a new policy with using (true).
The search works perfectly, and now anyone can read the table. You reply: "Search must respect existing access rules. Remove that policy, undo the middleware change, and run the query as the signed-in user." Then you run the two-account test from the login card.
Going further
Watch for changes that make a problem go away without fixing it. Rule of thumb, not a vendor figure: be suspicious when an error vanishes after a test gets deleted or skipped, an exception gets caught and ignored, a type check gets silenced, a wildcard appears in a config, or a value moves into a public variable. Each of these can make a screen go green.
For code that matters, ask for a test written first. Anthropic says to give Claude a check it can run, and a failing test that later passes is much stronger evidence than a summary. Also check the lock file: if package-lock.json changed but you didn't ask for a package, find out why. And remember that a summary comes from the same model as the code, so test the behavior yourself rather than trusting the description.
Common mistakes
- Reading only the AI's summary. It describes what it meant to do, which can differ from what changed.
- Reviewing in the same session that wrote the code, where it's likely to defend its own choices.
- Treating a big diff as too hard to review, then accepting it anyway. Ask for it to be split instead.
- Ignoring changed test files. A test edited to match broken behavior looks like a pass.
Sources
- Checkpoints and rollbacks, Replit docs
- GitHub, v0 docs
- Overview, Claude Code docs
- Best practices, Claude Code docs
- Security overview, Lovable docs
Checked 6 November 2026. Products change often, so confirm details with the vendor.