Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Anthropic Engineering 23 min read Case study mediumAdept

Harness design for long-running apps

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.

Assumes: LLM agentsprompt engineeringcontext windows

Related posts

  • Design Decisions Behind app.build, a Prompt-to-App Generator

    Neon mediumAdept

    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. A finite state machine drives specialized actors (draft, handler, frontend, edit) that run concurrently and use tree search with early termination, and no candidate is accepted until it passes TypeScript compilation, unit tests, custom linters targeting LLM failure modes, and Playwright smoke tests. The agent is stateless, serializing state in payloads so it scales on ECS. A lightweight top-level agent (gemini-flash) gathers requirements, and context engineering keeps prompts encapsulated per step, with system-prompt rules mined from failed-generation logs.

  • How We Built Our Design Agent

    LangChain mediumAdept

    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. Quality came from encoding designers' principles, anti-slop guardrails and the reasoning behind feedback rather than from prebuilt components. A 115-component design system was largely discarded once a stronger model arrived, because rules that compensate for model weaknesses expire. Motion runs on HyperFrames (web-page video editing with GSAP) and a custom canvas engine with motion blur, both rendering deterministically by timestamp so frames can be inspected and rendered in parallel. Median request cost fell from about $8 to 50 cents, and the harness is open-sourced.

  • Agent-driven development in Copilot Applied Science

    GitHub Engineering mediumAdept

    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. Three principles made this work: conversational, verbose prompting in plan mode; continuous refactoring, documentation and dead-code cleanup so the repo is easy for agents to navigate; and a "blame process, not agents" approach backed by strict typing, linters, and human-only contract tests that prevent agents from rewriting regression tests. With this setup five contributors added 11 agents and four skills in under three days, using a loop of /plan, /autopilot, automated Copilot Code Review iterations, and human review, plus weekly agent-run audits for missing tests, duplication and doc gaps.

  • How to Build a Full-Stack AI Agent

    Neon mediumAdept

    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. A control plane provisions an isolated database, repo, auth config and dev server per project. The agent then iterates for up to 50 steps using custom filesystem and exec tools, Neon and Context7 MCP servers, and Drizzle migrations. Each version pairs a Git commit hash with a Neon snapshot ID plus versioned secrets, so code and data can be rolled back together, and long-running setup runs through Vercel Workflows.

  • Agents are users, so your software needs evals

    Vercel mediumAdept

    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. An agentic testing pyramid groups checks by LLM call count (deterministic tests, one-turn evals, E2E evals), and a worked example builds an end-to-end eval for a hypothetical coffee-ordering CLI using Harbor, covering goal setting, task design with seeded environments, frozen clocks and per-constraint verifiers, and guarding against reward hacking. Metric choice should follow failure cost: a 60% success rate yields 99% pass@5 but only 8% pass^5, so products where users get no retry should optimize for pass^k, while coding agents with test feedback can lead with pass@k.

The quest for software engineering knowledge.

Look:
Layout: