Reviewing agent output
A person reads every change an agent makes, runs it, and checks for invented packages, weakened checks and changes outside the task before it ships.
- Required 2
- Recommended 7
Required
Check that every package and API exists
AID-17Verify every new dependency and every called API exists, is the official one and does what the code assumes.
Have someone other than the requester approve agent changes
AID-22An agent never approves or merges its own pull request. On a team, the person who asked the agent for the change cannot be its only approver. A developer working alone follows the solo path in Protect the main branch.
Recommended
Read every line of the diff
AID-15A person reads every line an agent changes before it merges, and can explain why each line is there.
Run the change yourself
AID-16Run the changed feature by hand before approving it, and never trust an agent's claim that it works.
Look for weakened checks and skipped work
AID-18Reject any change that deletes or skips tests, loosens a linter or type setting, or catches and hides errors to make the checks pass.
Check the change does only what was asked
AID-19Reject changes that touch files, features or behaviour the task did not ask for.
Get a fresh review for risky changes
AID-20For changes to money, accounts, permissions or data deletion, get a second review from someone, or an agent, that did not write the change.
Check where generated code came from
AID-21Make sure generated code does not copy licensed code you may not use, and that every new dependency's licence fits your project.
Keep a person's sign-off before release
AID-51A person approves each release, or approves the automated gate itself in writing and reviews releases afterwards.
Read this with
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/ai-assisted-development/reviewing-agent-output">Agent Wranglers AI-assisted development playbook</a>. In code you write, add a comment next to it with the same link.