# How do I review code written by an AI assistant?

Canonical: https://trutool.co/community/ai-coding-review-checklist
Author: Snehil (https://trutool.co/authors/snehil)
Last modified: 2026-10-08T16:11:05.281Z

Review the change as you would any contribution: understand the behavior, inspect the diff, test meaningful edge cases, and check security and dependencies. Keep the change small enough to explain and maintain. Passing one happy-path test does not establish correctness.

## Quick answer
Review the change as you would any contribution: understand the behavior, inspect the diff, test meaningful edge cases, and check security and dependencies. Keep the change small enough to explain and maintain. Passing one happy-path test does not establish correctness.

## Restate the expected behavior
Write the trigger, expected result, and important failure cases. Check that the proposed change fits the existing architecture.

## Inspect the entire diff
Look for unrelated edits, new dependencies, exposed secrets, missing validation, and incorrect assumptions about APIs or data.

## Validate the complete flow
Run appropriate checks and exercise the feature through its real interface. Confirm errors are handled and existing workflows still work.

## Before you decide
- Keep secrets out of prompts and generated files.
- Check dependency versions and licenses.
- Do not merge code you cannot explain.

## Keep in mind
Generated code can look conventional while using an unavailable API or omitting a critical failure path.

## Useful tools
- [Cursor](https://trutool.co/tools/cursor): Developers and engineering teams considering Cursor for this job: AI-assisted code editing.
- [GitHub Copilot](https://trutool.co/tools/github-copilot): Developers and engineering teams considering GitHub Copilot for this job: AI coding assistance in development workflows.
