World map

 

BM: Baca dalam Bahasa Melayu

World 9: Power Tools

Review AI-written code

You will learn: five red flags to look for before you merge AI-written code.

The problem

The AI wrote 40 lines in five seconds. It even runs. Your teammate says: “Ship it!” Do you?

Pick one answer.

Watch

Tap each point on the timeline.

Read AI code like any pull request. Watch for five red flags. Tap each one.

Try it

Here is part of an AI’s change. Tap the line you must never merge.

Tap the line you must never merge.

0 of 1 found

Try it

Ready to merge, or needs work? Swipe each finding.

Swipe right for good, left for needs work. Or use the buttons.

1 / 5

The pull request adds tests for the new function

The pull request adds tests for the new function

Predict

To add up prices, the AI wrote prices.sum() in JavaScript. What happens when it runs?

Pick one answer.

Try it

Your turn. Read the files in pull request #14. Then ask for changes on the Conversation tab.

Practice repo — not a real website
aina-codes / diary
My little diary website.
Add newsletter sign-up #14
Open coding-agent wants to merge agent/newsletter into main
signup.js
@@ -0,0 +1,5 @@

Check

The AI review said “No problems found.” Was it right?

Pick one answer.

You did it!

You can now spot problems in AI-written code before they ship.

Go deeper (optional)

Treat AI code like code from a new teammate. Read it, run it, test it. Copilot has a setting that can block suggestions matching public code. Ask your team which rules apply. Whoever merges the code is responsible for it, not the AI.