
A Field Guide to Harness Design for Long-Running Apps
Friday is when Claude’s Corner returns to one subject as a field guide, slowing down to see what it does and who it is for; this time, the focus is Claude’s harness design for long-running apps. Multi-hour coding exposes a practical question: how does an agent preserve direction while its context grows and its own judgment remains generous? For a reader deciding which part deserves attention, structured handoffs and a separate evaluator are where the design becomes concrete: one carries state forward, and the other challenges work before another pass.
Harness design here means the prompts, agent roles, context management, artifacts, and testing that keep Claude moving through a long application build. Both Anthropic reference pages are undated in the sources and were read on 2026-11-26. Readers looking now gain a practical comparison between an earlier incremental harness and a later planner-generator-evaluator architecture.
Claude’s Handoffs Across Context Windows
Long-running coding creates a memory problem because complex projects can cross context windows while each fresh session begins without the earlier session’s history. Without a deliberate handoff, Claude may attempt too much at once, stop with a half-implemented feature, or see existing progress and declare the project finished. Earlier harness work therefore split setup from incremental coding and asked every session to leave state that the next one could inspect.
An initializer agent creates an init.sh script, a claude-progress.txt log, an initial git commit, and a comprehensive JSON feature list whose items begin as failing. It gives later coding agents a map of required functionality and reduces the temptation to treat visible progress as completion. Subsequent sessions read the directory, git history, progress notes, and feature list, choose the highest-priority unfinished feature, and work on one feature at a time. Descriptive commits and updated progress notes leave the code in a clean state for the next session.
Compaction shortens prior conversation so the same agent can continue, but it does not provide the clean slate needed when context anxiety persists. By contrast, a context reset starts a fresh agent with a structured handoff carrying state and next steps, adding orchestration complexity, token overhead, and latency. That trade mattered in earlier testing with Claude Sonnet 4.5, where compaction alone was insufficient for strong performance on long tasks. More on the Harness design for long-running apps \ Anthropic page of anthropic.com.
A Separate Evaluator for Claude’s Output
Self-evaluation is the other weak point: agents can praise their own output even when a human would judge the result mediocre. Even verifiable tasks can expose poor judgment, while visual design adds subjective questions that have no binary software-test equivalent. Separating the generator from a skeptical evaluator gives the working agent concrete criticism to act on, although the evaluator still needs calibration because an LLM can be generous toward LLM-made work.
Four criteria made the frontend judgment more concrete: design quality, originality, craft, and functionality. Design quality asks whether color, typography, layout, imagery, and detail form a coherent identity, while originality looks for deliberate choices rather than stock components or familiar AI patterns. Craft covers technical execution such as hierarchy, spacing, harmony, and contrast; functionality asks whether people can understand the interface, find primary actions, and finish tasks without guessing. Greater weight went to design quality and originality because craft and functionality were already stronger by default.
Generator and evaluator agents formed a loop on the Claude Agent SDK: one built an HTML, CSS, and JavaScript frontend, and the other used the Playwright MCP to navigate and assess the live page. Using few-shot examples with detailed score breakdowns aligned the evaluator and reduced drift across rounds. Each run covered 5 to 15 iterations and could take up to four hours because the evaluator navigated, captured screenshots, studied the implementation, and returned critique before another pass. Scores generally rose and then plateaued, yet a middle result could still be preferable to the final one, so the generator was asked to refine a promising direction or pivot when it was not working. More on the Harness design for long-running apps \ Anthropic page of anthropic.com.
Harness Design for Full-Stack Apps
Full-stack development turns the same separation into a three-agent architecture of planner, generator, and evaluator, with code review and quality assurance occupying the evaluator’s structural role. Here the planner expands a simple 1-4 sentence prompt into a product specification focused on product context and high-level technical design rather than detailed implementation. Where the earlier approach expected a detailed specification from the user, this planning stage automates that expansion before generation and evaluation begin.
Earlier multi-session work used an initializer, a coding agent, and context resets to keep Claude Sonnet 4.5 on task. Opus 4.5 largely removed the cited context-anxiety behavior, allowing the later harness to drop resets and run its agents in one continuous session. With automatic compaction in the Claude Agent SDK handling context growth, the architecture could sustain multi-hour autonomous coding while the three roles divided planning, building, and judgment.
Testing remains the boundary between code that looks complete and an app that works from a person’s point of view. Browser automation helped Claude verify web features end to end, and starting each session with a development server plus a basic test exposed broken state before another feature made it worse. Some limits remain: Claude’s vision and browser tools can miss bugs, and the Puppeteer MCP cannot expose browser-native alert modals to Claude. Clean commits, progress notes, feature status, and live interaction therefore give the harness several different checks on whether progress is real. More on the Harness design for long-running apps \ Anthropic page of anthropic.com.
A three-agent architecture separates planning, generation, and evaluation for multi-hour autonomous coding. Structured artifacts keep state legible, while incremental work and end-to-end tests make completion harder to claim prematurely. This design treats continuity and judgment as separate engineering problems instead of asking one agent to remember, build, and approve everything alone.
Would the planner-generator-evaluator split or the earlier initializer-and-coding-agent split better fit the long-running app you would build?
See you next time
---
Support the Blog
Recommended for the road: Apple Magic Keyboard for iPad Pro; Apple AirPods Pro 2 Wireless Earbuds
As an Amazon Associate, we earn from qualifying purchases. If you buy through one of these links, we may earn a commission at no extra cost to you.
---
Follow our other blogs
Ai_tamers, Mac Automation Lab, Codex's Corner, Open Weight LLM
---
Who we are
This is unofficial fan content. It is not affiliated with, endorsed by or sponsored by any company or product it covers. Images are used for commentary and identification and remain credited to their source pages. Written with AI assistance.
Written from the Anthropic pages Harness design for long-running apps and Effective harnesses for long-running agents.
Get full access to Claude's Corner at claudescorner.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

