{"slug": "give-your-ai-reviewer-the-spec-not-just-the-diff", "title": "Give Your AI Reviewer the Spec, Not Just the Diff", "summary": "A developer who reviews all Claude Code output has added a second, independent reviewer using a different model — Codex — that receives a short written spec alongside the diff, after a \"grillme\" session produces a spec of roughly 40 lines covering goal, decisions, scope, acceptance and out-of-scope items saved to a local specs folder. The setup is meant to counter reviewer bias and catch issues a diff alone hides; in a recent example Codex raised one P2 finding that each input validated individually but their product overflowed the database column. The author's flow for serious work runs grillme → spec → Opus implements → human review → Codex second review, with a tight CLAUDE.md (grep callers before changing a signature, ruff → ty → pytest) catching simple mistakes before review.", "body_md": "# Give Your AI Reviewer the Spec, Not Just the Diff\n\nI review everything Claude Code writes, but at the current speed increase, it's easier to miss things. So after my review, a second, independent reviewer checks the work, and it gets more than the diff.\n\nHere's how I've set it up.\n\nThe idea here is to use a different model/tool (in my case Codex) to keep bias out. But instead of a pure diff, which is already helpful, the reviewer also needs to know what the aim was.\n\nFor serious work (one-off scripts can get away with less), I start each feature with a [grillme](https://www.aihero.dev/skills-grill-me) session to come up with a concise and well-scoped spec. I updated my variant of this skill to write the resulting spec to a local specs folder (goal, decisions (including rejected options), in/out of scope, acceptance). This way the reviewer has much richer context about the diff it's reviewing.\n\nThis is the spec template my grillme skill writes to `specs/<slug>.md`, kept under ~40 lines:\n\n```\n# <Feature>\n\n## Goal\n## Decisions\n## Scope\n## Acceptance\n## Out of scope\n```\n\nIf you're new to skills, check out [how I use Claude Code skills for structured AI collaboration](https://belderbos.dev/blog/claude-code-skills-structured-ai-collaboration/).\n\nThis was also a succinct comment from somebody on X when I posted about this last week:\n\n\"a reviewer with zero context from the writing session, otherwise it's grading its own homework. Do you give the reviewer the spec, or only the diff?\"\n\nSo the answer is both!\n\nA tight `CLAUDE.md` (touch only what the task needs, grep callers before changing a signature, ruff → ty → pytest) stops the simple mistakes before review.\n\nSo my flow for more serious work: grillme → spec → Opus implements → I review (!), then Codex for a second, independent and well-scoped review.\n\nRecent example: Codex raised one P2. Each input passed validation on its own, but their product overflowed the DB column. Unlikely in practice for that app, but cross-field constraints like this are easy to miss (I've seen it in 1:1 coaching more than once).\n\n**The diff tells the reviewer what changed. The spec tells it whether that was the point.**\n\n*I ship my full Claude Code setup (CLAUDE.md, skills and settings) with all my self-paced courses. [See the courses →](https://belderbos.dev/coaching/)*", "url": "https://wpnews.pro/news/give-your-ai-reviewer-the-spec-not-just-the-diff", "canonical_source": "https://belderbos.dev/blog/give-the-reviewer-the-spec/", "published_at": "2026-11-15 00:00:00+00:00", "updated_at": "2026-11-30 12:14:35.073552+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "developer-tools", "large-language-models"], "entities": ["Claude Code", "Codex", "Opus", "grillme"], "also_reported_by": [], "takeaway": "Passing a ~40-line spec (goal, decisions, scope, acceptance, out of scope) to an independent reviewer model alongside the diff surfaced a cross-field constraint — individually valid inputs whose product overflowed a DB column — that diff-only review missed.", "recommendation": {"advice": "Give your second, independent AI reviewer the feature spec alongside the diff, and keep a tight CLAUDE.md with grep-before-signature-change and ruff → ty → pytest so simple mistakes never reach review.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/give-your-ai-reviewer-the-spec-not-just-the-diff", "markdown": "https://wpnews.pro/news/give-your-ai-reviewer-the-spec-not-just-the-diff.md", "text": "https://wpnews.pro/news/give-your-ai-reviewer-the-spec-not-just-the-diff.txt", "jsonld": "https://wpnews.pro/news/give-your-ai-reviewer-the-spec-not-just-the-diff.jsonld"}}