You gave an agent 20 minutes and $9 and got something that looks like a working app — but the input wiring is broken and half the layout is dead space. Swapping in a smarter model doesn't fix that. The industry has moved through prompt engineering, then context engineering — but the layer that actually determines whether an agent ships working software is the harness wrapped around it: the tools, verification loops, and checkpoints that turn one-shot generation into something that actually works.

This chapter covers six concrete harness decisions, using Anthropic's own reported numbers from building Claude Code and the Claude Agent SDK: the same model, run solo vs. with a full harness, cost 20x less and shipped broken input wiring — or cost 20x more and shipped working gameplay plus features nobody asked for.

01

AGENT = MODEL + HARNESS

"Harness engineering: the surrounding infrastructure determines reliability, not model capability alone." — Faros AI

Same model. Same task. Two different harnesses. Anthropic's own retro-game-maker build ran solo in 20 minutes for $9 — and shipped broken input wiring and dead layout space. The full-harness run took 6 hours and cost $200, over 20x more — and shipped working gameplay, plus a sprite generator and level designer nobody asked for. The model never changed.

$9 / 20 min
solo run
$200 / 6 hr
full-harness run
20x
cost multiplier, same model
02

THE ONE-SHOT CEILING

"Each new session begins with no memory of what came before — agents need a way to bridge the gap between coding sessions." — Anthropic Engineering

A single continuous session has a hard ceiling: the context window. Without a way to bridge sessions, an agent nearing that ceiling rushes to declare "done" — leaving an untested, undocumented, possibly broken feature behind. Anthropic's fix: an initializer agent sets up a shared feature list and progress file once, then every session after it does one feature, tests it, and leaves a clean handoff for the next.

no memory
each new session, by default
200+ features
tracked across sessions in one build
03

THE VERIFICATION GATE

"Clean state" means "the kind of code that would be appropriate for merging to a main branch: there are no major bugs, the code is orderly and well-documented." — Anthropic Engineering

Without a test-before-exit gate, an agent edits a file, glances at the diff, decides it looks right, and marks the task complete — the same failure pattern whether the model is careful or careless. Anthropic's coding-agent pattern runs a browser-automation test before allowing a feature to be marked done, catching the exact bug a "looks fine" read-through misses.

looks correct
without a test gate
test-verified
with a test gate
04

PLANNER → GENERATOR → EVALUATOR

"A planner breaks the big task into smaller chunks. A generator builds each chunk. An evaluator reviews the output and sends feedback." — Anthropic Engineering

Anthropic's Digital Audio Workstation build ran this three-agent architecture end to end — every phase timed and priced. Click through the real breakdown: a planning pass, then three build/QA rounds, each round's evaluator feedback shaping the next round's build.

7 phases
planner + 3 build/QA rounds
$124.70
total cost, 3h 50min
05

SPRINT DECOMPOSITION

"Sprint 3 alone had 27 criteria covering the level editor." — Anthropic Engineering

A continuous, undecomposed generation run gave Anthropic's team no checkpoint to catch quality drift until the whole run finished — one comparison ran over two hours before any evaluation happened. Breaking the same work into sprints, each gated by its own evaluator criteria, surfaces problems chunk by chunk instead of at the end. Chunking is a harness decision — the model never "decided" to checkpoint itself.

2+ hours
continuous run, no checkpoint
27 criteria
Sprint 3, gated before continuing
06

HARNESS ARTIFACTS IN THE WILD

"This memory is 13 days old — verify against current code before asserting as fact." — a real guardrail from this author's own Claude Code memory system

Harness engineering isn't unique to Anthropic's published case studies — it's in the repo this exact chapter was built in. A CLAUDE.md file with a PII guardrail. A memory system that flags its own staleness before you trust it. A custom skill that encodes an entire build process so it doesn't have to be re-explained every time. Step through a real (paraphrased) session opening this project.

BUSINESS OUTCOMES

The real cost isn't the extra $191 or 5 hours 40 minutes the full harness took over the solo run. It's what the $9, 20-minute version would have shipped uncaught — broken input wiring, dead layout space, a demo that looks done and isn't. Harness engineering trades time and compute for software that actually works.