DigestOps

How do you review code that AI wrote?

34 posts

Playbook

Practitioners are shifting from line-by-line inspection to layered verification, formal specifications, and risk-based human oversight.

  1. Layered verification and adversarial review

    Move beyond manual checking by using end-to-end tests, property tests, and adversarial multi-agent review . This allows developers to focus on risk assessment and product intent . 2

  2. Risk-tiered review processes

    Apply different review depths based on sensitivity: use automated or hybrid agent review for non-sensitive code, while reserving human decision-making for sensitive changes . 4

  3. Formal specification verification

    Review a short formal specification—such as a 93-line spec—and use tools like Lean 4 to guarantee that long AI implementations and proof code match that spec . 9

  4. Whiteboard-driven planning and constraints

    Spend approximately two thirds of time on whiteboard planning to define domains and boundaries, leaving the remaining third for building tests, architecture checks, and delivery pipelines . 7

  5. Defining completion via AGENTS.md

    Establish clear 'done' criteria in an AGENTS.md file, requiring that tests, linting, type checking, and builds pass before an agent submits a pull request with evidence . 10

  6. Verifiable agent prompting

    Instruct agents to make changes fully verifiable by having them register real services and click through the frontend to confirm every modification . 1

Choosing between approaches

Using formal verification via Lean 4 provides high correctness guarantees but results in slower performance, such as 24 seconds to calculate the intersection of two 70k triangle meshes 9.

Not covered yet

The material does not address how to manage or resolve the issue of parallel agents overwriting each other's changes 7.

Drawn from the top 10 posts for this question; the numbers match the list below · updated 2026-12-01
Type

Posts

24 more posts to see