Quiz
Loops that check themselves: build, verify, fix, repeat
Check what you learned
10 questions from this lesson. Answers are checked as you go; nothing is recorded.
1 / 10
According to Anthropic's advice, what is the most useful thing to give an agent?
Hint
Yes or no, not an opinion.
Anthropic: "Give Claude something it can run that comes back pass or fail."
2 / 10
Why does an agent often say "Done, everything works" when it is not?
Hint
Likely words, not knowledge.
The model writes the most likely next words. Without a real check in the loop it has no way to know whether the work works.
3 / 10
Which of these is a check rather than a review?
Hint
Two people, same answer.
A word count gives the same answer to anyone. The others depend on taste, which is a review.
4 / 10
What should happen before any building starts?
Hint
A finish line.
A loop needs a finish line. One sentence describing done becomes the check.
5 / 10
Why build in small steps?
Hint
Where did it break?
If one thing changed and the check fails, you know where to look. Forty changes and one failure is a hunt.
6 / 10
What should go back into the loop after a failed check?
Hint
A target, not a mood.
The exact output gives the next round something to aim at.
7 / 10
Why use a reviewer that never saw the conversation?
Hint
No stake in the first draft.
Anthropic: a fresh reviewer "isn't swayed by the reasoning that produced the code."
8 / 10
After how many failed corrections does Anthropic suggest clearing and writing a better prompt?
Hint
Fewer than you think.
"After two failed corrections run /clear and write a better prompt."
9 / 10
In headless mode, which two settings cap a run nobody is watching?
Hint
Rounds and money.
--max-turns limits rounds; --max-budget-usd limits spend.
10 / 10
About how many times does a loop that runs every five minutes fire in a 30-day month?
Hint
12 an hour, 24 hours, 30 days.
12 x 24 x 30 = 8,640. Small costs per run add up fast.
Worth another look
After the quiz
Using AI · Agents · Lesson 16 of 21
Loops that check themselves: build, verify, fix, repeat
An agent saying "done" proves nothing. How to build loops that check their own work: say what done means, build one small step, run a real check, feed back the exact error, get a fresh review, and cap the loop before it spins.