Agent Wranglers

Code review Required

Stay consistent with the codebase

New code follows the patterns the codebase already uses for the same job. Two ways to do one thing doubles what every reader must learn.

How to do it

Before writing, find how the codebase already handles the same task, such as errors, data access or validation. Follow it. If the old pattern is wrong, change it everywhere in a separate change.

How to check

The review answers question 4 by naming the existing pattern and saying whether the change follows it.

For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers architecture playbook: https://agentwranglers.se/playbook/architecture/code-review/consistent-with-the-codebase.