Agent Wranglers

ARC-1Recommended

Review the whole change against its base

Review a branch as one solution, compared with the branch it will merge into. Never review only the changed lines.

How to do it

Diff the branch against its base, such as main or development. Read the changed files in full, plus the code that calls them. Ask what the change does as a whole before judging single lines.

Examples

Shell example

git fetch origin
git diff --stat origin/development...HEAD
git diff origin/development...HEAD

How to check

The review names the base branch and the commit range it covered. Every changed file appears in the review.

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/architecture/code-review/review-against-the-base">Agent Wranglers clean code and architecture playbook</a>. In code you write, add a comment next to it with the same link.