Skip to content
CeylonDevs

← Blog / AI Engineering

How we review AI-written code

AI agents write most of our first drafts now. This is the checklist our tech leads use before anything merges, and why we made it public.

Sumudu Jayasinghe

AI Native Solution Architect

8 October 2026 · 2 min read

Why AI-written code needs a different review

AI-written code usually compiles, usually passes the happy path and usually looks confident. That's the problem. A junior engineer's mistakes tend to look like mistakes. An agent's mistakes look like finished work.

So we stopped asking "does this look right?" and started asking "what would have to be true for this to be wrong?"

The rule

A named engineer approves every merge. If they can't explain a line, it doesn't ship, whoever or whatever wrote it.

The checklist

  1. Intent first. Read the ticket, then the tests, then the code, in that order.
  2. Check the edges. Empty input, huge input, concurrent calls, partial failure.
  3. Verify every dependency. Confirm each import, API and config key actually exists.
  4. Look for silent catches. Swallowed errors are an agent's favourite shortcut.
  5. Check the tests themselves. Make sure they would fail if the feature were broken.
  6. Cost and latency. For LLM calls, check token budgets, retries and timeouts.
<!-- .github/pull_request_template.md (excerpt) -->
- [ ] I can explain every line in this diff
- [ ] Tests fail when the feature is removed
- [ ] No new silent error handling
- [ ] LLM calls have budgets, timeouts and evals

AI code smells we flag on sight

  • Invented helpers. A call to a utility that sounds right but doesn't exist anywhere in the codebase.
  • Over-broad error handling. try/except Exception: pass, or its cousin that logs and carries on.
  • Mirror tests. Tests that restate the implementation instead of checking behaviour, so they pass whatever the code does.
  • Plausible config. Environment variables and options that look standard but aren't read by anything.
  • "Handle later" comments. A TODO in AI output usually marks the hard part it skipped.

Why we made it public

Telling clients "we review everything" is easy. Showing them exactly how is better. Use this checklist, fork it, and tell us what we missed.

Sumudu Jayasinghe, AI Native Solution Architect

architecture, AI system design, code review