Your coding agent reviews its own patch, says “looks correct”, and ships it.
Half of these patches break the build.
- AAsk it to review the patch twice and only ship when both reviews agree
- BGive it a stricter reviewer persona in the system prompt
- CRun the build and tests; ship only on green
- DLower the temperature so the review is more careful and consistent
Answer: C
Run the build and tests; ship only on green
Why
A model judging its own work shares its own blind spots, so a second opinion from the same model, a sterner persona or a lower temperature still rests on opinion. A build and tests are an outside signal that does not care how confident the agent sounds.
- EvalsYou tweaked the prompt and it “feels” better in a couple of tries.
- EvalsAn AI agent’s change passed every gate you set - tests, linter, type-check and the security scan are all green.
- EvalsUsers keep reporting the same three kinds of wrong answers in production.
- EvalsYou have a solid eval suite, but it only runs when someone remembers to launch it by hand before a release.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path