← Back to Journal

Claude Code Writes, Codex ReviewsA two-agent workflow that doesn't fight

People keep asking whether Claude Code or Codex is better. On my own iOS apps I stopped choosing. One agent writes the code; the other only judges it, and neither is allowed to touch the other's work. Here is how the split works, what a handoff looks like, and the failures that taught me the rules.

Why one agent is not enough

A single coding agent grades its own homework. It writes a feature, runs the checks it thinks of, and reports success. The problem is not that it lies; it is that the same model that made an assumption is the one checking whether the assumption holds. Blind spots survive the review because the reviewer has the same blind spots.

Two agents from different vendors, trained differently, disagree in useful ways. But only if their roles are separated. When both can edit the code, you get the opposite of review: two authors overwriting each other, double the tokens and nobody clearly responsible for the result.

The split: one writes, one judges

Since late September 2026 this is the default for my app projects:

The rule that makes it work: the reviewer never edits code. It returns verdicts, not patches. If Codex could "just fix it", I would lose the independent check the whole setup exists for.

The roles are not tied to the brand. On one game project I flipped them: Codex led spec, code and daily tests, and Claude Code did a single read-only final review once the release candidate was frozen. The principle is the same — one author, one judge — and it avoided the trap of both agents rewriting the same code in parallel.

What a FAIL has to contain

A verdict of "this looks wrong" sends the writer on a hunt, and hunts are expensive. So a FAIL must include three things:

  1. Where: the file and line.
  2. What kind of defect: the implementation drifted from the spec, the plan itself needs updating, or the evidence or documentation is wrong.
  3. The pass condition: exactly what has to be true for the item to pass next time.

The defect type turned out to matter more than I expected. "The code is wrong" and "the spec was wrong" need different fixes, and mixing them up makes the writer change correct code to match a wrong plan.

Re-reviews are narrow: only the failed items and whatever they touch. An item is skipped on re-review only if the related code, spec, dependencies and evidence are all unchanged — a bumped version number alone is not proof that nothing changed.

Keep the handoff small

The handoff message between the agents is a pointer, not a payload. It names the review document and the question numbers, and stays around 1–2 KB. No pasted source code, no pasted test output. The reviewer opens the files itself.

There is exactly one active review document per topic. New findings are appended as new sections; when a judgement is overturned it is marked "withdrawn", not deleted, so the history of why something changed survives. This also keeps the token bill down: large pasted content in a conversation is paid for again on every later turn.

A real review: three FAILs that were not bugs

One of my apps turns rules from classical Chinese almanac texts into daily suggestions. Codex failed several items in one module, and none of them were code bugs:

A single agent reviewing itself would almost certainly have passed all three, because the code did what the author intended. The reviewer's job was to check the claims around the code, and that is where the errors were.

One more finding from that review changed how I write tests. An assertion that a list of results was empty did not prove the rule worked, because the list would also have been empty for unrelated reasons. The fix was a control case: the same input on a day the rule should not trigger must produce results. Only then does an empty list mean something. After three rounds of review all six items passed.

Automating the handoff without letting agents drive each other

At first I copied every verdict from one window to the other by hand. I did not want one agent remote-controlling the other's app, and I did not want extra sessions spawned in the background.

The solution is a small local mailbox inside the project's git folder, outside version control and off the network. Codex publishes a verdict tied to a specific commit; a content hash stops duplicates. Claude Code waits on the mailbox with its own monitor. On PASS it moves to the next ticket; on FAIL it fixes only the listed items. Nothing is pushed or released automatically — those steps stay with me.

What it costs, and why it is still cheaper

Two agents cost more per ticket than one. But the expensive line on my bill is rework. In one measured case a single ticket was built three times, and the two rework runs used about 60% of its total tokens because the agent could not verify its own work. An independent reviewer with clear pass conditions catches problems while the context is still fresh, instead of after a second full rebuild.

A checklist to try it

  1. Pick an author and a judge per project. Never let both edit the same code.
  2. Agree on acceptance criteria before any code is written. The reviewer judges against them, not against taste.
  3. Every FAIL names a location, a defect type and a pass condition.
  4. Re-review only what changed, and decide "unchanged" from code, spec and evidence, not version numbers.
  5. Keep handoffs as pointers: a document path and item numbers, not pasted content.
  6. Tests need a control case, or an empty result proves nothing.
  7. Keep the human gate for device tests, accounts and release.

Claude Code versus Codex is the wrong comparison. The useful question is which one writes and which one is allowed to say no.

Claude CodeCodexAI Code ReviewMulti-Agent WorkflowAcceptance Testing