Effective harnesses for long-running coding agents
Anthropic describes why a capable coding model is not enough to sustain a software project across many context windows. A new session may lack the previous session’s working context, while compaction alone can leave incomplete features and unclear handoffs. The team observed agents attempting too much at once or declaring a partly built application finished.
The proposed harness separates initialization from subsequent coding sessions. An initializer establishes the environment, a feature checklist, a startup script, a progress file and an initial Git commit. Later coding agents work incrementally, choosing one unfinished feature and leaving structured evidence of what changed. The feature checklist records concrete user-facing acceptance steps and whether each feature passes, rather than relying on a general statement that the application is complete.
Verification is central to the design. The report describes agents making changes that appeared successful through unit tests or command-line checks but failed when exercised through the actual browser. Providing browser automation and asking agents to test as a user helped expose those failures. Each fresh session also checks the existing application before adding functionality, reducing the risk of building on an already broken state.
the useful lesson is to design durable handoffs and explicit acceptance checks around the coding model. A progress log, repository history and a feature list give reviewers more evidence than an agent’s final summary. These are practices reported by Anthropic, not independent guarantees of production readiness.
the harness makes the next action and completion criteria inspectable across sessions. Start by recovering project state, verify a basic workflow, implement one feature and leave a clean handoff. The source reports experiments on application development, not a universal benchmark result. Browser-automation limitations and untested task types remain important constraints.