Let AI read the code first, let tests check that it works, and let a person decide. AI review can spot common mistakes early. It cannot know everything about your business, and a clean review does not prove the code is safe.
The safe order
Six checks before code goes live
- 1Make the change smallOne purpose at a time. Small changes are easier to check.
- 2Run the automatic checksTests, code style, secrets and weak packages.
- 3Ask AI to reviewGive it the goal and the risks, not just the code.
- 4Check each findingAsk for the exact line and a case that fails.
- 5A person reviewsSomeone who understands the code and the business.
- 6Watch after launchKeep a quick way to undo it.
Tools compared
| Tool | Where it works | Cost | Good to know |
|---|---|---|---|
Claude Code /code-review | On your computer | Counts as normal plan use | It only reports unless you add an option to fix or comment |
| Claude Code Review for GitHub | Pull requests | Usage credits, no flat price; Team and Enterprise | It reads code but does not run it |
| GitHub Copilot review | GitHub | Not in the Free plan. GitHub estimates averages from US$0.25 to US$10 a review, plus Actions time | By default it does not count as a required approval |
| OpenAI Codex review | GitHub | Check your ChatGPT plan | On GitHub it flags only the two most serious levels |
| CodeRabbit | Pull requests | US$24 to US$72 a user a month, paid yearly; free for public projects | A separate company |
From official pages, 3 December 2026. A pull request is a proposed change waiting to be accepted.
What the research says
- Veracode, October 2026: code made by 18 AI models passed its security tests 62% of the time on average. The best model scored 73%. This tested code writing, not review tools, and Veracode sells security software.
- DORA, March 2026: time saved writing code can be lost checking it. DORA calls this a verification tax and advises small batches. In its 2025 survey, 30% of developers had little or no trust in AI code.
- OWASP: read and understand all the code you submit, and avoid vibe coding for complex or critical programs.
We found no independent test that ranks how accurate these review tools are. Test them on your own past bugs.
What AI can help find, and what people must decide
| AI can help find | A person must decide |
|---|---|
| Missing checks on user input | Is this what the customer needs? |
| Errors that are not handled | Who should be allowed to do this? |
| Repeated or confusing code | Is the discount or tax rule right? |
| Missing tests | Can we accept this risk? |
| Risky database queries | What happens to personal data? |
| Names that do not match | Is this the right design at all? |
Copy these review requests
Review this code change. Goal: [WHAT IT SHOULD DO] Users and roles: [WHO MAY DO WHAT] Sensitive data: [LIST] Must never happen: [LIST] Report only real problems. For each: file and line, what breaks, the exact input that breaks it, how serious (high, medium, low), and the smallest fix. Then list what you could not check. Do not change any code.
Check this change for: login and permission gaps, one customer seeing another's data, secrets in code or logs, unsafe file uploads, injection, missing rate limits, and unsafe instructions reaching an AI model. Trace data from the user's input to where it is stored or shown. Say 'not found' for each item you checked and 'not checked' for anything you could not see.
Explain this change in plain words to someone who did not write it. What did it do before, what does it do now, which three things could go wrong, and how can I test each one by hand? End with five questions I should be able to answer before I approve it.
A one-page review rule for your team
1. The author can explain every line, including lines AI wrote. 2. Tests and secret scanning pass first. 3. AI review is advice. It never approves by itself. 4. One person approves normal changes. 5. Two people approve login, payments, personal data and deleting data. 6. Findings are fixed, or closed with a reason. 7. No customer data or keys go into an AI tool that is not approved. 8. Every release can be undone.
If you built the app without knowing how to code
Do not put it in front of customers yet if it handles payments, logins or personal data. Ask a developer to check three things first: who can see which records, where the keys are kept and what happens when something fails. Start with our guide to leaked keys.
Test a tool in one week
- Pick ten old changes: five with known bugs and five clean.
- Run each tool on the code as it was before the fix.
- Count real bugs found, false alarms and minutes spent.
- Keep the tool only if it finds bugs worth the time it takes.
Tip: if you get 20 comments and one is useful, people will stop reading. Ask for serious problems only.
Common mistakes
- Letting the same chat write the code and judge it. Start a fresh one for the review.
- Accepting a fix without running it.
- Reviewing 3,000 lines at once.
- Treating “no problems found” as proof.
Use Claude to plan, build and check real work over two days.
Next public class: 14–15 January 2027 at Worq TTDI · seats available
Building apps? See our AI vibe coding course.
HRD Corp claimable. AITraining2U is an HRD Corp registered training provider. Our public and in-house courses are claimable under the HRD Corp Claimable Courses (SBL-KHAS) scheme, and we prepare the grant paperwork with you. See HRDC-claimable AI training: courses, costs and how to claim.