Build on a branch
This is the author’s seat. The agent takes a ticket and brings back a branch and a claim with its evidence; I set the frame it works in, and the frame is the same for every ticket.
A branch per ticket
Section titled “A branch per ticket”Always a branch before any code, with no issue number in its name. /implement will not make it: “implement commits to the branch you are on. It does not create one, and it does not ask” (source: Matt Pocock: implement). On this site every ticket starts from a fresh branch off main and ends in one pull request. When I run /implement, as for the skeleton, the invocation carries one more line, because /implement commits on its own:
/implement #N leave the changes uncommitted and end with the manual test steps
From the landing on, a background agent took each ticket from a written brief that gives the same instruction: leave every change uncommitted.
A fresh context per ticket
Section titled “A fresh context per ticket”“The intended rhythm is: clear context, implement one ticket, commit, clear again.” (source: Matt Pocock: implement) Each ticket is self-contained, so the previous one’s context is disposable. The constraint behind the rhythm is the one Anthropic’s best practices put first: “Claude’s context window fills up fast, and performance degrades as it fills” (source: Anthropic: Best practices for Claude Code). Matt Pocock’s dictionary gives the degradation a name and a range: “on frontier models, the dumb zone commonly begins around 125K-150K tokens — though this is debated” (source: Matt Pocock: Dictionary of AI coding, smart zone), and another of his pages puts it “at around the 40% context mark” (source: Matt Pocock: Why the Anthropic Ralph plugin sucks). The range is debated; the boundary is not. A study of Claude Code sessions measured the other symptom, instructions fade as a session grows (source: McMillan 2026, arXiv 2605.10039). One fresh session per ticket keeps every build in the smart zone, and the instructions fresh.
Red-green slices
Section titled “Red-green slices”The test comes first, red against the current build, then the code that turns it green, one behaviour at a time; /implement “drives tdd at the seams” (source: Matt Pocock: implement) the spec agreed. On this site the seam is the built site read by the browser tests, and every content ticket started from tests red against the build of main. Pure logic gets the other seam: the reading progress behind the resume panel was unit tests that failed while the module did not exist, then passed.
For a front-end ticket the slices come in a fixed order: the normal case with real data; the loading, empty and error states; interactions and validation; responsive, keyboard and accessibility; polish. The first demo already shows the real thing, and the last slice is the one that can be cut.
Inventory before markup
Section titled “Inventory before markup”Before the agent writes a component, it checks what exists, from the most shared to the most local: on this site, src/components, then the recipes in DESIGN.md. Creating a component is the last resort. This is the fix for the second failure the landing names, the component that already existed, and the sources say why a design record alone does not prevent it: in Atlassian’s tests “DESIGN.md was more likely to re-create components rather than use the existing system” (source: Atlassian: Atlassian's DESIGN.md is here), and a survey of 21 design systems (source: State of AI in Design Systems, July 2026) finds that “the strongest systems restructure the task so hallucination can’t happen, rather than asking nicely” (source: State of AI in Design Systems, July 2026). On this site the rule shows in small ways: the list of phases and their tools lives in one component, rendered on the landing and on How it works, so the two cannot disagree.
Proof, with or without TDD
Section titled “Proof, with or without TDD”The ticket ends with a claim, and the claim comes with its evidence or it is sent back. Matt Pocock’s current position is the invariant rather than the technique: he asks agents “to produce proof that their code works – with or without TDD” (source: The Pragmatic Engineer: AI skills with Matt Pocock). Anthropic’s best practices name the evidence: “the test output, the command it ran and what it returned, or a screenshot of the result” (source: Anthropic: Best practices for Claude Code). On this site the claim closes the agent’s final message: the gate outputs with their numbers and the manual test steps for the judge.
Context hygiene
Section titled “Context hygiene”Two failed corrections in a row, and I stop: /clear, then the slice starts again with what was learned. Between slices, /clear as well, so that each one starts in a fresh context. The plan is not reopened during the build; /implement “never reopens the plan” (source: Matt Pocock: implement) either, and a new decision comes back to me instead of being made in passing. The choice to clear, hand off, delegate or compact belongs at a phase boundary, where “the first yes wins” (source: Matt Pocock: Phase boundaries) and “/compact is the default, not the first reach” (source: Matt Pocock: Phase boundaries), because “compacting mid-phase makes the agent lose the thread” (source: Matt Pocock: Phase boundaries). Sessions and effort covers the five options.
The routine
Section titled “The routine”- 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 it produces
- A branch with the tests red then green and the code that passed them, and a claim with its evidence: the commands run with their output, the screenshots, the manual test steps for the judge.
- 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.
Sources
Section titled “Sources”- Matt Pocock: implement aihero.dev
- Anthropic: Best practices for Claude Code code.claude.com
- Matt Pocock: Dictionary of AI coding, smart zone github.com
- Matt Pocock: Why the Anthropic Ralph plugin sucks aihero.dev
- McMillan 2026, arXiv 2605.10039 arxiv.org
- Atlassian: Atlassian's DESIGN.md is here atlassian.com
- State of AI in Design Systems, July 2026 state-of-ai-in-design-systems.netlify.app
- The Pragmatic Engineer: AI skills with Matt Pocock newsletter.pragmaticengineer.com
- Matt Pocock: Phase boundaries github.com