How it works
A pull request has three seats: the author, the checks and the reviewer. These docs put the agent in the author’s seat and the harness in the checks’ seat, and keep you in the reviewer’s. Everything else here follows from that arrangement.
The three seats
Section titled “The three seats”The harness checks
Its gates block the claim until they pass.
- Type check, passed
- Unit tests, passed
- Build, passed
- Browser tests, passed
Passed
You judge
The evidence first, the steps by hand, then the diff.
Green light given
Not merged yet
Merged
It waits for your green light.
With its evidence, in the pull request.
The agent authors. It works on a branch, writes the failing test before the code, and ends with a claim: what it did, and the evidence behind it. Anthropic’s best practices ask for “the test output, the command it ran and what it returned, or a screenshot of the result” (source: Anthropic: Best practices for Claude Code) rather than an assertion of success, and so do I. A claim without evidence is sent back, not read.
The harness checks. Everything around the model that makes its work checkable: the context it reads, the gates that block it, the sessions it runs in, the skills it is handed. Anything a machine can check, a machine checks, because “unlike CLAUDE.md instructions which are advisory, hooks are deterministic and guarantee the action happens” (source: Anthropic: Best practices for Claude Code), and because instructions fade as a session grows (source: McMillan 2026, arXiv 2605.10039) where a check does not.
You judge. The reviewer’s seat is the one these docs never hand to the agent. The agent reviews first, in a fresh context: Claude Code’s own /code-review “runs as a background subagent” (source: Anthropic: Code review) and looks for bugs, and the plugin’s mattpocock-skills:code-review reads the standards and the spec on two separate axes (source: Matt Pocock: code-review). Both return findings, and “sub-agent output is a hypothesis, not evidence” (source: Matt Pocock: code-review). Then you: the evidence before the claims, the manual test steps run by hand, the diff read until you can explain it, the verdict. Only you judge.
The lifecycle in one pass
Section titled “The lifecycle in one pass”Size, align and plan happen before the pull request; build, verify and judge fill its three seats; ship merges it.
7 phases, from first read to merge
Size the issue
- When
- An issue arrives, before any work on it.
- What you type
/ask-matt, with the issue and the sizing prompt.- What proves it
- The size and the evidence of done are agreed before the work starts, and the work that follows takes the route of its size and no more.
Align on done
- When
- An issue sized M or L, before any code.
- What you type
/grill-with-docs, with the issue and what you already know; for a new UI surface,/impeccable shape <feature>as well.- What proves it
- Each criterion names the observation that would prove it false and fails before any code; you confirmed the intent and the plan.
Plan the tickets
- When
- An issue sized L, right after the grill, in the same context window.
- What you type
/to-spec, then/to-tickets, without clearing or compacting between them.- What proves it
- You confirmed the seams and the granularity; every ticket says what it delivers end to end and fits one session and one pull request; the first ticket runs on the real site.
Build on a branch
- When
- A ticket whose blockers are done, on a fresh branch from
main, in a fresh session. - What you type
/implement #N: leave the changes uncommitted, end with the manual test steps.- What proves it
- Every test was red before its code; the type check and the unit tests passed under the Stop hook; the claim lists its evidence instead of asserting success.
Verify with gates
- When
- The agent claims the ticket is done, before you read anything it wrote.
- What you type
- Nothing for the gates: the Stop hook runs when the agent stops, and CI runs on the pull request. Then
/code-reviewfor bugs and/mattpocock-skills:code-reviewfor the standards and the spec, each in a fresh context. - What proves it
- The Stop hook let the agent stop; CI is green on the pull request; every finding was confirmed or refuted by a test or a run, not by another opinion.
Judge the pull request
- When
- The pull request is open with its evidence, and the gates are green.
- What you type
- Nothing to the agent. Run the manual test steps by hand in the browser, then read the diff until you can explain it.
- What proves it
- The manual test steps passed in your hands; every acceptance criterion holds against what runs; the verdict and its reasons are written down, on the pull request or in the journal entry.
Ship and record
- When
- The verdict is a green light.
- What you type
/prfor the body; once the pull request has merged,/retroin the session that built the ticket, before you clear it.- What proves it
- CI is green on the pull request and on
main; the preview, then production, serve the change; the journal entry holds the gate numbers and the prompts verbatim; a picked candidate exists as a check or a standard, not as a line of memory.
Each phase has one page, the tool I use in it, and a routine block at the end: when, what you type, what it produces, what proves it.
An issue arrives. I size it first, S, M, L or Fog, because the size decides how much of what follows it gets: a one-sentence fix skips to the build, a feature that spans sessions gets a spec and tickets. For anything bigger than a sentence, I align on what done means before any code: the agent finds the facts, I answer the decisions, and the glossary and the decision records keep the words. The plan then cuts the work into tickets, each small enough for one session and one pull request. The agent builds on a branch, test first, in a fresh context per ticket. The gates verify: a Stop hook runs the type check and the unit tests before the agent may stop, and CI runs the build, the browser tests and the rest on every pull request. I judge: the evidence first, the manual test steps run by hand, the diff read until I can explain it, then the verdict. Then the pull request ships with its evidence, and the journal records what happened.
Where the evidence lives
Section titled “Where the evidence lives”Evidence is what a ticket leaves behind that a reader can check without trusting anyone. In this build it lives in three places: the gate outputs, in the pull request with their numbers; the manual test steps, written by the agent in the pull request for the judge to run by hand; and the journal, one entry per ticket with the decisions, the gate results and the prompts, verbatim.
The order matters: the evidence is read before the claims, never instead of them. “Never assume that code generated by an LLM works until that code has been executed” (source: Simon Willison: Agentic manual testing), as Simon Willison puts it. A green check is not the end either: Anthropic’s own advice is to “run /verify yourself after Claude’s check passes to confirm the change against the running app” (source: Anthropic: Best practices for Claude Code).
The harness in one paragraph
Section titled “The harness in one paragraph”A harness is everything around the model that makes its work checkable. Claude Code is its first layer, “the layer around the model that provides the tools and manages the context the model sees” (source: Anthropic: How Claude Code works). Mine adds the context the agent reads (a short CLAUDE.md, the product and design briefs, the glossary and the decision records), the gates that block it (the type check and the unit tests in a Stop hook; the build, the browser tests, axe, Lighthouse and the confidentiality check in CI), the sessions it runs in (a fresh context per ticket, the effort set per model) and the skills it is handed (Matt Pocock’s engineering skills and Impeccable’s design commands). “Every component in a harness encodes an assumption about what the model can’t do on its own” (source: Anthropic: Harness design for long-running application development), so each part of mine has to earn its place again when the model changes: that is rule 7, measure before adding. The Harness section takes it apart, and The minimal setup builds the first version of it in about fifteen minutes.
Sources
Section titled “Sources”- Anthropic: Best practices for Claude Code code.claude.com
- McMillan 2026, arXiv 2605.10039 arxiv.org
- Anthropic: Code review code.claude.com
- Matt Pocock: code-review aihero.dev
- Simon Willison: Agentic manual testing simonwillison.net
- Anthropic: How Claude Code works code.claude.com
- Anthropic: Harness design for long-running application development anthropic.com