# Effective harnesses for long-running agents

Source: [Anthropic](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents)  
Feed7 permalink: https://feed7.dev/p/effective-harnesses-for-long-running-agents-0xzfs05  
Published: Unknown  
Trust: Official Source (official_source)

## Why Included

Anthropic's harness pattern for multi-session agents: an initializer sets up the env, a JSON feature list, and progress files; each session then ships one feature, verified end-to-end and committed to git.

## Source Summary

**The gist** Anthropic describes a harness for agents working across context windows on tasks spanning hours or days. A **two-agent split**: an initializer session creates an **init.sh**, a progress file, a first git commit, and a **JSON feature list** (200+ entries in their claude.ai-clone demo); later coding sessions each pick one feature, implement, test, and commit.

## Practical Implication

**Why it matters** The failure modes it targets — agents biting off whole features and exhausting context, or declaring a project done early — plague anyone running Claude Code or Codex on long builds. Concrete takeaways: **one feature per session**, JSON over Markdown for tracking files, a fixed startup ritual (read git log and progress, verify the app boots), and end-to-end browser testing via **Puppeteer MCP** rather than unit tests alone.

## Agent-Ready Context

**The gist** Anthropic describes a harness for agents working across context windows on tasks spanning hours or days. A **two-agent split**: an initializer session creates an **init.sh**, a progress file, a first git commit, and a **JSON feature list** (200+ entries in their claude.ai-clone demo); later coding sessions each pick one feature, implement, test, and commit.

**Why it matters** The failure modes it targets — agents biting off whole features and exhausting context, or declaring a project done early — plague anyone running Claude Code or Codex on long builds. Concrete takeaways: **one feature per session**, JSON over Markdown for tracking files, a fixed startup ritual (read git log and progress, verify the app boots), and end-to-end browser testing via **Puppeteer MCP** rather than unit tests alone.

**Watch out** The recipe is tuned to **full-stack web apps**; the authors say generalization to other domains is unexplored. Claude also can't see **browser-native alert modals** through Puppeteer, and whether one coding agent beats specialized multi-agent setups is an open question.

## Context Map

- Layer: agent
- Domains: coding
- Topics: harness-engineering, coding-agents, agent-memory

## Uncertainty

- The recipe is tuned to **full-stack web apps**; the authors say generalization to other domains is unexplored. Claude also can't see **browser-native alert modals** through Puppeteer, and whether one coding agent beats specialized multi-agent setups is an open question.

## Agent Instruction

Use this item as source-backed context. Do not invent claims beyond the linked source. If this item conflicts with another source, call out the conflict.
