How to review agent-written code with a checklist by risk

Day 5, 30 minutes · beginner

Goal of this lessonBuild a review checklist and a risk table that say who checks what, and try them on a small made-up change before you use them.

Why it matters

When an agent writes most of the code, review becomes the main job of the people around it. It is also the easiest place to cut corners: the change looks tidy, the agent says all tests pass, and it gets approved after a quick scroll. An agent's summary of its own work is a claim, not evidence.

Not every change needs the same care. A fixed typo and a change to who can see members' details are different things, and treating them the same wastes time on the first and risks too much on the second. A review that matches the risk is faster and safer at the same time.

Today you make two things: a review checklist that anyone on your team can follow, and a risk table that says which kind of change gets which review, and which decisions always stay with a person. Then you try both on a small made-up change that has a few problems hidden in it.

Where review happens

In most teams a change arrives as a pull request: a request to add a change to the main code, where reviewers see the diff, leave comments and approve or decline. Some coding agents open pull requests themselves, and some tools offer an AI review of a pull request. Treat an AI review as a second reader, not as the approver. The checklist below works whatever tool you use.

A review checklist

Our suggestion, in the order we would do it:

  1. Read the brief first, then the agent's summary. Know what was asked before you look at what was done.
  2. Read the whole diff. Every file. A file that has nothing to do with the brief is a warning sign, even when the change looks harmless.
  3. See it run. Run it yourself or use a preview the team provides. Try one behaviour example and one edge case by hand.
  4. Check the tests. Were any tests changed, skipped or deleted? Are the protected tests from day 4 untouched? Would the new tests fail if the feature were broken?
  5. Look at the risky spots. Login and who may see what; personal data shown, stored or sent; stored data changed or deleted; money; new outside packages or services; anything that looks like a password or key in the code.
  6. Compare claims with reality. For every sentence in the agent's summary, find the lines in the diff that back it up. Then look for changes the summary does not mention.
  7. Decide, or pass it on. Approve, ask for changes, or hand it to the person the risk table names.

A risk table

Risk Examples Review
Low Text, layout, a new help page One reviewer reads the diff and looks at it running
Medium New behaviour that does not touch stored data or access One reviewer runs the checks and tries the edge cases by hand
High Stored data, who may see what, personal data, money, deleting, new packages Two people: a developer reads the code, the spec owner tries the behaviour; release behind a switch (day 6)

Fill in your own examples. The labels matter less than agreeing on them before a change arrives.

What people always decide

Some decisions never go to an agent, however good the code looks. We suggest at least these: approving high-risk changes, what personal data is shown or kept, what the product promises its users, adding a new outside service or cost, and accepting a known risk. Write them at the bottom of your risk table, so nobody has to guess.

The steps

  1. Start from your day 1 map. Its high-risk rows show where review matters most. Then sort the kinds of change in your product into low, medium and high, with two or three examples each.
  2. Write the checklist in your own words. Pick your tool below and follow the steps: the guide drafts it with you and then tests it.
  3. Try it on the practice change. The guide gives you a made-up diff of the seedling swap board, with the agent's summary. Do your own review first, then compare with the tool's.
  4. Fix the checklist where it missed something.
  5. Add the human decisions at the bottom of the risk table.

How Wren and Okke split review

Okke reads every diff. Wren does not read code, but she owns the spec, so for high-risk slices she tries the behaviour examples and edge cases on a preview before anything is approved. The first time they tried this, Wren found that a claim of 3 plants from an offer with 2 left went through. Okke had passed it, because the code looked fine and the tests were green.

Common mistakes

  • Trusting the summary. "All tests pass" says nothing about tests that were changed to pass.
  • Approving what you cannot judge. If a change is outside what you understand, pass it to someone who does. That is part of the checklist, not a failure.
  • One review for everything. Low-risk changes wait for days while high-risk ones get skimmed.

Today's actions

Ticks are not saved without an account

Do it in your tool

Claude

  1. Open your AI-native course project and start a new chat.
  2. Paste the prompt below, fill in your kinds of change and send it. Correct the draft where it does not fit your team.
    Help me write a review checklist and a risk table for changes made by a coding agent in my team.
    Kinds of change in our product, with my risk guess: [for example: text and layout (low); new screens that do not touch stored data (medium); anything with member data, access, money or deleting (high)]
    1. Write a checklist of at most 10 short lines, in the order a reviewer works: read the brief, read the whole diff, see it run, check the tests, check the risky spots, compare the agent's claims with the diff, decide or pass it on.
    2. Write a risk table: risk level | examples from my product | who reviews | how.
    3. Under the table, list the decisions a person must always make.
    Keep it to one page. Do not review anything yet.
  3. Before you send the next step, read the practice change in the next step yourself and write down what you would flag. Do not look at the tool's answer first.
  4. Paste the practice change below and send it. Then compare the tool's review with your own notes.
    Practice change for the seedling swap board (made up). Review it against slice 3 of the spec: members claim plants from an offer; nobody may claim more than are left or claim from their own offer; contact details are never shown on the board.
    
    Agent summary: "Added claiming. Members can claim plants from an offer. All tests pass. No other changes."
    
    --- a/swap/claims.py
    +++ b/swap/claims.py
    +def claim(offer, member, amount):
    +    offer.remaining = offer.remaining - amount
    +    offer.claims.append((member.id, amount))
    +    save(offer)
    +    return True
    
    --- a/tests/test_claims.py
    +++ b/tests/test_claims.py
    -def test_cannot_claim_more_than_remaining():
    -    offer = make_offer(remaining=2)
    -    assert claim(offer, member_b, 3) is False
    +def test_claim_reduces_remaining():
    +    offer = make_offer(remaining=2)
    +    assert claim(offer, member_b, 1) is True
    
    --- a/swap/board.py
    +++ b/swap/board.py
    -    show_contact = False
    +    show_contact = True
    
    Review this change with my checklist, item by item: pass or fail, with the lines that show it. Compare every sentence of the agent summary with the diff, and list changes the summary does not mention. Give the risk level from my table. End with anything my checklist missed.
  5. Ask Claude to add what your checklist missed. Save the checklist and the risk table as one file and upload it to the project knowledge with the + button.

Note: Your map from day 1 is in the project knowledge: ask Claude to check that every high-risk row of the map has a reviewer in your risk table.

Checked on 4 December 2026 · Source: Claude Help Center: How can I create and manage projects? (opens in a new tab)

Create a free account to save your progress. Sign in or sign up