Skip to content

What a harness is

Harness, 5 min read

A harness is 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. In a pull request it takes the checks’ seat: it blocks or it passes.

On its own, a model “can’t read a file, run a command, or remember the last turn. The harness supplies all of that.” (source: Matt Pocock: Dictionary of AI coding, harness) Claude Code is the first layer; in Anthropic’s words, “this surrounding layer is what the term agentic harness refers to” (source: Anthropic: How Claude Code works). The rest is what I build around it.

Anthropic’s engineers put it plainly: “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), and those assumptions “can quickly go stale as models improve” (source: Anthropic: Harness design for long-running application development). Their example: a harness that handed the work to a fresh agent, because some models “begin wrapping up work prematurely as they approach what they believe is their context limit” (source: Anthropic: Harness design for long-running application development). The next model “largely removed that behavior on its own” (source: Anthropic: Harness design for long-running application development), and that part of the harness came out.

On a model upgrade, I revisit the effort defaults and every rule written because of what the old model could not do: rule 7, measure before adding, turned on what is already there.

The agent that works, and the one that reviews

Section titled “The agent that works, and the one that reviews”

An agent reviewing its own work “reads its own conclusions back as confirmation” (source: Matt Pocock: Dictionary of AI coding, automated review), while “a reviewer with a fresh context window has none of that attachment” (source: Matt Pocock: Dictionary of AI coding, automated review). The second model “is still an LLM that is inclined to be generous towards LLM-generated outputs” (source: Anthropic: Harness design for long-running application development), yet the split pays: “tuning a standalone evaluator to be skeptical turns out to be far more tractable than making a generator critical of its own work” (source: Anthropic: Harness design for long-running application development).

On this site, the review never runs in the context that built the ticket: mattpocock-skills:code-review reviews it in a fresh one, on its two axes, and CI runs the gates on the pull request. The reviewer’s seat stays mine. Before this run, every merge waited for my green light; for the run that built this section, I moved my judging to the end: each pull request merges once the review and CI pass, and I test the finished site before launch.

The minimal setup leaves four parts for the day you miss them, each in one of the four:

  1. Matt Pocock: Dictionary of AI coding, harness github.com
  2. Anthropic: How Claude Code works code.claude.com
  3. Anthropic: Harness design for long-running application development anthropic.com
  4. Matt Pocock: How to make codebases AI agents love aihero.dev
  5. Anthropic: Best practices for Claude Code code.claude.com
  6. Anthropic: Effective context engineering for AI agents anthropic.com
  7. Anthropic: Equipping agents for the real world with Agent Skills anthropic.com
  8. Matt Pocock: Dictionary of AI coding, automated review github.com
  9. Microsoft: Playwright MCP github.com
  10. Upstash: Context7 github.com
  11. Anthropic: Code intelligence plugins code.claude.com
  12. Anthropic: Marketplace reference code.claude.com