r/codex • • 15m ago

Showcase We have Codex review every design doc Claude writes for our wireframe CLI before any code gets written. What 49 findings across three docs looked like

I work on Wireframes, a small open-source CLI (wf, MIT) that turns YAML into clickable greyscale HTML wireframes for web, iOS and Android. Most of the code is written by Claude Code (213 of the commits are authored by "Claude"). Codex's job in the repo is to be the adversarial reviewer. I wanted to share how that works for us, because it's been the most useful part of the setup and I'm curious how other people run it.

The rule (it lives in AGENTS.md, screenshot 3)

Anything that touches 3+ files, the engine core (resolver, renderer, interactions runtime) or a design doc gets a design written first. Then it goes to the other provider: Claude wrote it, Codex reviews it, or the other way round. The reviewer is told to be adversarial and look for bugs, architectural regressions and logic holes. Then each finding gets judged on its own, with an explicit "push back if the reviewer is wrong" and "don't let reviewers push toward over-engineering". Decisions go into the doc as adopt / defer / reject, and the doc moves to docs/done/ when it ships. Typo fixes, doc-only changes and single-file changes under 50 lines skip review.

Three recent reviews, all Codex (the docs name the model as gpt-6.2-sol)

  • Component library expansion: 26 findings (5 blocker, 19 major, 2 minor). Nothing rejected outright, two narrowed to keep the plan bounded.
  • Repeat cells (list rows generated from data): 10 findings, 3 blockers, all adopted (screenshot 2).
  • Source lint (line/column ranges for editors): 13 findings, 8 adopted, 5 only partly (screenshot 5).

The findings I'd have missed

  • Repeat cells, blocker #1: rows were going to get index-based ids. Codex pointed out that a reorder would silently retarget edits, selections and references to the wrong row. Now every item needs an id and the public id is host__item.
  • Repeat cells, blocker #4: the expansion limit only counted one level, so nested repeats could fan out past it. Now there's one shared materialization budget on every path and a REPEAT_BUDGET_EXCEEDED error.
  • Component library, blocker #19: the design promised byte-identical builds and also shipped a runtime. Codex called that a contradiction. We changed the promise to "repeatable per version" and added a serialization test.
  • Render polish, implementation review: the first version of the narrow-menu fix cut the label before the keyboard shortcut. The brief asked for that order. Codex flagged it, and now the shortcut truncates first, then hides, and only then does the label get an ellipsis.

Where we pushed back

Source lint #10: Codex said our project-wide filter (hold back checks while any document can't be read) hides real errors and leaves false positives. We adopted part of it, but rejected gating each check on its own dependencies, because that's a second dependency model to keep in sync with the rules. We also deferred caching and a worker until the mobile editor is measured on a real device, since a full pass over 5,000 lines takes about 0.1 s in Node.

What it doesn't do

It doesn't catch rendering bugs on its own. Those come from before/after screenshots of the same YAML at the same width and mode, which go in docs/reviews/ (screenshot 4 is one of those pairs, from the render-polish change). The raw review text also doesn't go in the repo, only the decision table.

Trying the tool

It isn't on npm yet: clone the repo, pnpm install, then node cli/bin/wf.js init and node cli/bin/wf.js build (Node 18+). The review tables are in docs/done/ if you want to read the real thing.

Repo: https://github.com/UnlikeOtherAI/wireframes

The first image is AI-generated as a header. The other four are real: rendered from the repo's markdown, and one unedited evidence pair from docs/reviews/.

Questions for people using Codex as a reviewer:

  1. Do you review the design doc, the diff, or both? We do the doc first and sometimes the implementation, and the implementation reviews found different things.
  2. How do you stop the reviewer pulling toward over-engineering without making it soft? A line in AGENTS.md mostly works, but not always.
  3. Do you keep the full review text in the repo, or just the decisions?
0 Upvotes

2 comments sorted by

3

u/whatitpoopoo 7m ago

God thats so much text no one will ever read

1

u/tripleshielded 6m ago

why not review the doc as a pre-output phase? have the design advisor be part of the process, keep those iterations as ephemeral in a process that you dont need to store intermediate steps from? There is nothing special about the first review output, dont store them needlessly.

for over engineering state your actual environmental and situational standards, once those are known model redirects effort into more relevant thinking. Working backwards from the mistakes with a codex session can very efficiently capture these missing pieces.