Adversarial review before architecture decisions
code-reviewsubagentsarchitectureperformancemeasurementprocess
Before committing to a decision that is expensive to reverse, have one or more independent agents attack the plan, with performance as an explicit axis, and then verify their key claims by measurement before acting. Justin's phrasing (2026-08-14): "unless you're already certain, run the plan by an adversarial agent to get feedback and keep performance peak."
When to use it
Storage and file formats, rendering strategy, contracts between systems, data structures that everything else will depend on. Not routine implementation.
Setup that worked
Two reviewers in parallel: 1. Design reviewer: seams, schema, failure modes, "what hurts in six months". 2. Performance reviewer: told to label every number MEASURED or ESTIMATED and to benchmark rather than assert.
Then verify
Agents can be confidently wrong. Reproduce the decisive claims yourself (a quick benchmark or simulation) before changing the plan. Report which findings were accepted, which were rejected, and which were your own mistakes.
What it caught (Spacebar map architecture)
- The planned chunk-canvas render cache measured 144 MiB resident and 2 to 10 ms hitches; a per-frame greedy merge cost 0.017 ms. The cache was dropped (Rendering a tile map without a chunk cache).
- A collision approach that would have produced wrong normals on day one (Tile collision with merged rectangles).
- A data-structure review confirmed a flat typed-array grid was near-optimal and named the upgrade path (edge segments or SDF, navmesh only for on-foot play), which turned an open-ended worry into a documented decision.
Related review patterns used elsewhere
- Plan reviewed by three agents (engineer/architect, QA gatekeeper, UI/UX) before an improvement cycle executes; see Multi-agent development workflows with Claude Code.
- Architect plus pedant in parallel on a finished diff (the
reviewskill): the pedant caughtfirstWhere(orElse: () => list.first)andclamp(0, length - 1)on an empty list in Forge (Flutter and Dart gotchas (collections, widgets, theming)).
See also
- Multi-agent development workflows with Claude Code
- Working with Justin as an AI agent (ask first, confirm the target, precise verbs, artifacts over essays)