D6 · Long-running harness

Family: Context and memory

One agent sets up the environment, then another moves forward one feature at a time across several sessions.

Principle

An initializer agent sets up the environment: startup script, feature list, progress file, first commit. A coding agent then moves forward feature by feature, session after session, leaving structured traces for the next one. A variant splits planner, generator and evaluator.

The problem it solves

A task of several hours exceeds one context window, and the agent tends to do too much at once and leave work unfinished.

When to use it

  • The work lasts several hours and spans several sessions: application development, work on a large codebase.
  • An automatic oracle, such as tests, says whether each feature is done: long autonomy mostly works in that case.

When to avoid it

  • The task fits in one session: a plain agent loop (C1) is enough.
  • The harness was built for a weaker model: each component encodes an assumption about what the model cannot do alone, to be challenged with every new model.

Common pitfalls

The anti-patterns that misuse this pattern, best established first. Each sheet describes the symptoms, the public incidents and the remedies.

Framing and choice of level

Context and memory

Loop, stopping and orchestration

Verification and evaluation

Security and permissions

Oversight, operations and governance

All anti-patterns

Synonyms by vendor

  • Harnais pour agents de longue durée (initialisateur + agent de codage) (Anthropic (nov. 2025))
  • Planificateur, générateur, évaluateur (Anthropic (mars 2026))

Neighbouring patterns

Sources

Content reviewed on 2026-10-02

Pattern catalogue