AID-9Recommended
Keep each change small
Keep every change small enough to review in one sitting, at most 400 changed lines.
How to do it
Split large work into steps that each leave the project working. Do not count lock files and generated code. Refactors and behaviour changes go in separate commits. See small changes in the engineering playbook.
How to check
A pull request job fails above 400 changed lines outside generated files and lock files.
Related rules
- AID-5 Plan before the agent writes code in AI-assisted development
- ENG-14 Make small changes on short-lived branches in Engineering
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/working-in-small-steps/small-diffs">Agent Wranglers AI-assisted development playbook</a>. In code you write, add a comment next to it with the same link.