facebook pixel
Skip to content

workflowContext Engineering1 min read

Writer / Reviewer Pattern

Our take
A second Claude session reviewing code it didn't write catches more than a self-review.

Split implementation and review across two separate Claude sessions. The reviewer has no attachment to the implementation and brings fresh eyes — exactly what a real code review should do.

On this page5 parts
  1. 01Why It Works
  2. 02The Setup
  3. 03Extend the Pattern
  4. 04The Compounding Effect
  5. 05Source

Why It Works

When Claude reviews code it just wrote, it's biased. It knows what it was trying to do, so it skips the surprises and doesn't read carefully. A fresh session has no memory of the implementation choices. It reads only what's in the file — the same way a human reviewer does.

The Setup

Run two terminal windows with separate Claude Code sessions:

  • Session A (Writer): implement a rate limiter for our API endpoints
  • Session B (Reviewer — fresh terminal): review the rate limiter in @src/middleware/rateLimiter.ts. look for edge cases, race conditions, and consistency with our existing middleware patterns. be specific.
  • Session A again: here's the review feedback: [paste Session B output]. address these issues.

Session B knows nothing about what Session A built. It reads only what's on disk.

Extend the Pattern

  • Test-first variant: Session A writes tests. Session B writes the implementation to pass them.
  • Security review: use a subagent to review this PR for auth bypasses and injection vulnerabilities
  • Architecture check: have the reviewer compare output against your CLAUDE.md anti-patterns before the code merges

The Compounding Effect

This works especially well when combined with CLAUDE.md. The reviewer session loads the same project context, so it checks findings against your actual conventions — not generic best practices.

Private Workshop

Want to bring AI into your Frontend workflow?

We help product teams adopt AI-powered development practices, from agent workflows to custom skills and tooling, on whichever coding agent they already run.

What happens next
  1. 01

    Tell us what you are building.

    Your stack, the AI tools you use, where you are stuck.

  2. 02

    We book a 15-minute call.

    We look at how your team works with agents today.

  3. 03

    We shape the workshop.

    Private and hands-on, on your own codebase.

0/2000

Your info stays with us. That's it.