How I check code my agents write

I trust only multiple reviews and I test thoroughly. I also run occasional audits on the whole codebase, so bugs that slip past get caught later.
That's the short version. Here's how it actually runs on a normal day, across 3-4 projects at once.
1. A plan file first
Before any code, the agent writes a plan into the repo with five headings:
- Goal: what's true afterwards that isn't now
- Out of scope: what not to touch
- Files: what's expected to change
- Verification: commands to run, and what a pass looks like
- Risks: what could go wrong
Big plans get split into chunks, each one leaving the project working.
2. A different model builds it
The plan is detailed enough that the model that wrote it doesn't have to write the code too:
- Planning, architect checks and reviews: Claude Opus 5.5
- Mechanical steps the plan spells out: Gemini Flash
- Normal features: Gemini 4 Neon (Sonnet 5.5 when Gemini isn't used)
- Security, money and code that deletes data: Opus only
- QA testing: Sonnet
The planner's context stays small because it never sees the coding back and forth, only the plan and the result.
3. A fresh architect checks every 2-3 chunks
After each stage, a new agent with no memory of the build reads the plan and the diff and answers one word: CONTINUE or REFINE (with numbered fixes).
It checks three things: does it match the plan and nothing more, does it still fit the chunks to come, and do the tests and the feature actually run.
"Fresh" is the point. The agent that wrote the code is the worst judge of it.
4. A reviewer that has to prove it
At the end, another fresh agent reads the full diff. Its rule: a bug only counts if it can describe how it breaks. Concrete input or steps, leading to a wrong result, a crash or lost data. If it can't, the finding gets dropped or downgraded.
Reviews padded with "this looks risky" teach you to skim, and then you skim past the real one.
Findings come ranked: critical, high, medium, low. Each with the fix spelled out.
Sometimes I use a different provider for the review, Gemini reviewing Claude's code or the other way round, so the reviewer doesn't share the builder's blind spots.
5. Someone actually uses it
Code review doesn't catch "the button is under the keyboard on a phone". So:
- a QA agent uses the feature like a person would, at desktop and phone width, in a headless browser
- a design reviewer takes screenshots of anything visual and scores it
6. The rules that hold it together
- A test that didn't run is "not run", never "pass". Crashed, timed out, skipped, all the same.
- Reviewers can't edit code. They write one file, their review. If they could fix things, they'd stop being reviewers.
- Every review is saved to a file in the repo. I have about 900 of them across my projects now.
- Each reviewer reads the last few reviews first. When the same bug shape shows up a third time, it becomes a rule or a hook, so it can't happen again.
7. Audits now and then
Every so often I point a few agents at the whole codebase, not a diff. That's where the bugs live that no single change introduced.
For example, an audit of Editbay, my open source video editor, found that a shared project file could write files onto your PC during export. Another one found the app took 21 seconds to start. It now starts in 0.2.
Copy it
Everything is on GitHub, free to copy and tweak: the four read-only review agents (reviewer, architect, QA tester, design reviewer), the staged build skill, a paste-in prompt that runs the whole cycle with nothing to install, an audit prompt and a review criteria template.
github.com/ZazaGdev/AI-fun/tree/main/review-cycle
It's still a process I tune every week, and I'm the one who says yes at the end.
What does your review step look like?

