Curated summary
Harness design for long-running apps
Anthropic's Three-Agent Harness for Long-Running Autonomous Coding and Frontend Design
Prithvi Rajasekaran of Anthropic's Labs team describes a multi-agent approach that improves Claude's output on two hard problems: subjective frontend design and long autonomous full-stack coding. The core idea is to separate the agent doing the work from an evaluator agent that judges it, borrowing the generator-discriminator structure of GANs. A standalone evaluator, tuned to be skeptical, gives the generator concrete feedback to iterate against, which self-evaluation alone cannot provide. The post also shows that harness components should be continually stress-tested as models improve, since some scaffolding becomes unnecessary over time.
Why Naive Implementations Fall Short
- Models lose coherence on long tasks as the context window fills, and some (notably Claude Sonnet 4.5) show "context anxiety," wrapping up work early as they near what they believe is their limit.
- Context resets, which clear the window and hand off state through a structured artifact, address this more fully than compaction, which summarizes history in place and leaves the anxiety intact. Resets add orchestration complexity, token overhead, and latency.
- Agents reliably overpraise their own work, especially on subjective tasks like design where no binary test exists.
- A separate evaluator is still an LLM and tends to be lenient, but tuning a standalone evaluator to be skeptical is far more tractable than making a generator self-critical.
Making Subjective Design Quality Gradable
- The team wrote four grading criteria given to both generator and evaluator: design quality, originality, craft, and functionality. Design quality and originality were weighted more heavily, since Claude already handled craft and functionality well by default. The originality criterion explicitly penalized "AI slop" patterns such as purple gradients over white cards.
- The evaluator was calibrated with few-shot examples and detailed score breakdowns to align with the author's taste and reduce score drift.
- The loop ran on the Claude Agent SDK. The evaluator used the Playwright MCP to navigate the live page, screenshot it, score each criterion, and write a critique. The generator chose each iteration to either refine its direction or pivot aesthetically.
- Runs took 5 to 15 iterations and up to four hours. Scores generally improved before plateauing, and the criteria wording itself steered the output: even the first iteration beat a no-prompt baseline.
- In one run, a Dutch museum site moved on iteration ten from a polished dark landing page to a spatial 3D gallery built with CSS perspective and doorway-based navigation.
Scaling to Full-Stack Coding
- Architecture: Three agents. A planner expands a 1–4 sentence prompt into a product spec, staying high-level to avoid cascading errors from wrong technical details. A generator works in sprints on a React, Vite, FastAPI, and SQLite (later PostgreSQL) stack and uses git. An evaluator tests the running app with Playwright.
- Sprint contracts: Before each sprint, generator and evaluator negotiate what "done" means and how it will be tested. Communication happens through files.
- Evaluation: Each criterion has a hard threshold. Failing any one fails the sprint and returns detailed feedback. Sprint 3 alone had 27 criteria for the level editor.
- Tuning the QA agent: Out of the box, Claude was a poor QA agent. It found real issues, then talked itself into approving them, and tested superficially. The team tuned the evaluator's prompt over several rounds by comparing its judgments to their own.
- Cost comparison (retro game maker, Opus 4.5): A solo run took 20 minutes and $9 but produced an app where the central feature did not work. The full harness took 6 hours and $200, producing a richer app with a functional play mode, though with physics and level-design rough edges.
Simplifying the Harness
- Every harness component encodes an assumption about what the model cannot do alone, and those assumptions go stale as models improve. The author follows the principle from "Building Effective Agents": use the simplest solution, adding complexity only when needed.
- A first attempt to cut the harness radically failed to match the original performance and made it unclear which pieces were load-bearing. The team then removed one component at a time to measure its impact.
- Sprint construct removed: Opus 4.6 could sustain longer coherent work, so the sprint decomposition was dropped. The planner stayed, since without it the generator under-scoped. The evaluator moved to a single pass at the end.
- Evaluator as a conditional: The evaluator is worth its cost only for tasks beyond what the current model reliably does alone. On 4.6 that boundary moved outward, so the evaluator was unnecessary for some parts of a build but still helped at the edges.
- The team also added prompting so the generator built proper tool-driven agents inside the apps, since this knowledge was thinly covered in training data.
Results and Limits
- A Digital Audio Workstation built with the simplified V2 harness took about 4 hours and $124.70. The build ran coherently for over two hours without sprints.
- The QA agent still caught real gaps across rounds: clips could not be dragged, instrument and effect UIs were display-only, audio recording was a stub, and the EQ was numeric rather than graphical.
- The final app had a working arrangement view, mixer, and transport, and the agent could compose a short snippet end to end through tools. The author acknowledges it is far from professional-grade, and that Claude cannot hear, which limits musical judgment in QA.
Takeaways
The author argues that as models improve, some scaffolding becomes obsolete, but the space of useful harness designs does not shrink; it shifts toward new combinations. Practical advice includes testing against the target model, reading its traces on realistic problems, decomposing complex tasks into specialized agents where useful, and re-examining the harness whenever a new model ships by removing components that no longer carry weight and adding new ones that unlock capabilities.
Related reading
Continue with another curated summary.
Anthropic2025-06-13 How we built our multi-agent research system
Read original
Anthropic2025-11-26 Effective harnesses for long-running agents
Read original
Anthropic2025-03-20 The "think" tool for complex tool use
Read original
Slack2026-06-11 Agentic Testing: Where Agents Fit in the E2E Testing Stack
Read original