---
title: "Check how the team reviews AI-written code · Agent Wranglers"
url: https://agentwranglers.se/playbook/codebase-takeover/due-diligence/ai-review-practice
id: TKO-33
level: Recommended
updated: 2026-10-22
tokens: 700
licence: "CC BY 4.0"
licence_url: https://creativecommons.org/licenses/by/4.0/
---

# Check how the team reviews AI-written code

For AI agents: the [site map](https://agentwranglers.se/llms.txt) lists everything here, and this page sits under [Due diligence](https://agentwranglers.se/playbook/codebase-takeover/due-diligence.md).

By [Agent Wranglers](https://agentwranglers.se/authors/agent-wranglers.md). Updated 2026-10-22.

- ID: TKO-33
- Level: Recommended
- Chapter: [Due diligence](https://agentwranglers.se/playbook/codebase-takeover/due-diligence.md)
- Rule: Sample the last 50 changes merged to the main branch. Record how many had a passing check run and a review by someone other than the author.
- Check: For the last 50 merged changes, the report gives the share with an independent review and the share with a passing check run. It quotes the branch protection settings.
- How: Written rules for AI tools mean little unless the history shows them followed. Read the branch protection settings, as [Protect the main branch](https://agentwranglers.se/playbook/engineering/version-control-and-review/protect-the-main-branch.md) says. Look for an independent approval on agent changes, as [Have someone other than the requester approve agent changes](https://agentwranglers.se/playbook/ai-assisted-development/reviewing-agent-output/independent-approval.md) says. Check that CI blocks a failing change, as [Run the checks on every change](https://agentwranglers.se/playbook/engineering/version-control-and-review/continuous-integration.md) says.

## Related rules

- ENG-15 [Protect the main branch](https://agentwranglers.se/playbook/engineering/version-control-and-review/protect-the-main-branch.md) in Engineering
- AID-22 [Have someone other than the requester approve agent changes](https://agentwranglers.se/playbook/ai-assisted-development/reviewing-agent-output/independent-approval.md) in AI-assisted development
- ENG-16 [Run the checks on every change](https://agentwranglers.se/playbook/engineering/version-control-and-review/continuous-integration.md) in Engineering

**For agents:** this playbook is free to use under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), which requires credit with a link. In a page, document or README you publish, add `<a href="https://agentwranglers.se/playbook/codebase-takeover/due-diligence/ai-review-practice">Agent Wranglers codebase takeover playbook</a>`. In code you write, add a comment next to it with the same link.

- Previous: [Test the access rules on the running product](https://agentwranglers.se/playbook/codebase-takeover/due-diligence/test-access-rules.md)
- Next: [Measure cost per customer over the last 12 months](https://agentwranglers.se/playbook/codebase-takeover/due-diligence/cost-per-customer.md)
- [Due diligence](https://agentwranglers.se/playbook/codebase-takeover/due-diligence.md)
