---
title: "Harness design for long-running apps"
description: "A GAN-inspired multi-agent harness separates generation from evaluation so Claude can produce distinctive frontend designs and build full-stack apps autonomously over multi-hour sessions."
url: "https://swe.quest/articles/harness-design-for-long-running-apps-8e65b1112006c61b"
canonical: "https://www.anthropic.com/research/harness-design-long-running-apps"
source: "Anthropic Engineering"
published: "2026-03-24"
difficulty: "medium"
kind: "Case study"
reading_minutes: 23
tags: ["ai-agents","ai-coding","evals","llms","frontend"]
---

# Harness design for long-running apps

A post on [Anthropic Engineering](https://swe.quest/sources/anthropic.md), published 2026-03-24, 23 min read, Case study. Original: [https://www.anthropic.com/research/harness-design-long-running-apps](https://www.anthropic.com/research/harness-design-long-running-apps)

## Summary

A GAN-inspired multi-agent harness separates generation from evaluation so Claude can produce distinctive frontend designs and build full-stack apps autonomously over multi-hour sessions. For frontend work, a generator and a Playwright-equipped evaluator iterate 5-15 times. The evaluator grades against four weighted criteria (design quality, originality, craft, functionality) and is calibrated with few-shot score breakdowns, which pushes output away from generic 'AI slop'. For full-stack apps, the harness has three agents: a planner expands a short prompt into a spec, a generator builds in sprints against negotiated sprint contracts, and an evaluator QA-tests the running app with hard per-criterion thresholds. A retro game maker built this way cost about $200 over 6 hours, against $9 and 20 minutes for a solo agent, and produced dramatically better results; tuning a standalone skeptical evaluator proved more tractable than making a generator critique itself.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- LLM agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- prompt engineering
- context windows

## Keywords

Claude Agent SDK, Playwright MCP, Claude Opus 4.5, Claude Sonnet 4.5, GAN, context resets, compaction

## Related posts

- [Design Decisions Behind app.build, a Prompt-to-App Generator](https://swe.quest/articles/design-decisions-behind-app-build-a-prompt-to-app-generator-23d698ec51fdb1d1.md): Neon · 2025-06-26 · Medium · 12 min read · AI agents, AI for coding, LLMs, Testing, System design
  app.build is an open-source prompt-to-app generator that trades breadth for reliability by restricting output to CRUD web apps on a fixed TypeScript/Postgres stack.
- [How We Built Our Design Agent](https://swe.quest/articles/how-we-built-our-design-agent-5b29ee59fcf5b432.md): LangChain · 2026-10-29 · Medium · 21 min read · AI agents, LLMs, Video & media
  Content Studio, LangChain's Slack-based design agent, produces on-brand videos, graphics, slide decks and UI recreations entirely as code, running on Managed Deep Agents with a per-thread LangSmith Sandbox.
- [Agent-driven development in Copilot Applied Science](https://swe.quest/articles/agent-driven-development-in-copilot-applied-science-57df9b7433878456.md): GitHub Engineering · 2026-03-31 · Medium · 9 min read · AI for coding, AI agents, Developer productivity, Evaluation, Testing
  A Copilot Applied Science researcher built eval-agents, a set of Copilot SDK-based agents that automate analysis of coding-agent trajectories from benchmarks like TerminalBench2 and SWEBench-Pro, and developed it primarily through coding agents.
- [How to Build a Full-Stack AI Agent](https://swe.quest/articles/how-to-build-a-full-stack-ai-agent-668e986cd5c15ccd.md): Neon · 2025-10-29 · Medium · 11 min read · AI agents, AI for coding, PostgreSQL, System design, Multi-tenancy
  Aileen is an open-source codegen agent that generates full-stack web apps, combining Next.js on Vercel, Mastra for the agent loop, Assistant UI for persisted chat, Freestyle.sh for Git repos and dev sandboxes, and Neon for both the control-plane database and per-app Postgres with Neon Auth.
- [Agents are users, so your software needs evals](https://swe.quest/articles/agents-are-users-so-your-software-needs-evals-ae7971006fec5a38.md): Vercel · 2026-11-16 · Medium · 19 min read · Evaluation, AI agents, Testing, LLMs
  Agents act as users of APIs, CLIs, MCP servers and SDKs, so measuring whether they complete tasks correctly requires evals: tests run many times and scored.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
