Harness-of-Harness: Multi-Day Autonomous Software Development with Continual Improvement
Summary (Overview)
- Introduces Harness-of-Harness (HoH), a framework that enables LLM-based coding agents to perform autonomous, multi-day software development from high-level requirements without human intervention, by organizing existing coding-agent harnesses into iterative planning–coding–testing loops.
- Achieves consistent improvements across three benchmarks (GameCraft-Bench, FrontierSWE, ProgramBench) and three harness–model pairs (Codex with GPT-5.5, OpenCode with DeepSeek-V4-Pro, Pi with MiniMax-M3), with an average relative gain of 52.25% and a maximum gain of 82.86% after three iterations.
- Demonstrates sustained improvement over long horizons: On FrontierSWE, HoH with Codex and GPT-5.5 (high) improves from 22% to 72.67% over ten iterations, showing that gains continue well beyond the initial three loops.
- Showcases multi-day autonomous development: In a 70-loop deployment, HoH autonomously develops "Fusepoint," a complete first-person-shooter game with coherent storyline, fully implemented core mechanics, human-playable experience, polished visuals, and integrated audio.
- Key design principles: Balances repair with capability growth, scopes development into small verifiable increments, separates implementation-time testing from independent evaluation, and constrains verifiable outputs rather than prescribing agent workflows.
Introduction and Theoretical Foundation
Background and Motivation
Software development has become a prominent application of large language models (LLMs), with coding agents progressing from localized assistance (function completion) to complex repository-level tasks. However, most coding agents still operate under a human-in-the-loop paradigm where developers must define tasks, guide intermediate decisions, review changes, and intervene during failures.
The paper pursues a more ambitious goal: autonomous software development—given only high-level requirements, agents independently transform them into complete, functional, and deployable software systems without further human guidance.
The Long-Horizon Challenge
Autonomous development poses a fundamentally longer-horizon problem than conventional agentic coding. Building software from scratch requires:
- Translating high-level requirements into executable plans
- Coordinating interdependent tasks
- Designing and integrating components
- Continuously testing and debugging the evolving system
As trajectories grow, agents face several challenges:
- Loss of context: Agents may lose track of earlier requirements and design decisions
- Constraint violations: Local fixes may violate constraints elsewhere
- Error accumulation: Failed attempts and suboptimal decisions accumulate
- Invalidated assumptions: New evidence from testing can invalidate earlier assumptions
- Repetitive cycles: Inspection and repair loops, redundant verification, premature completion declarations
The authors argue that autonomous software development is not simply a problem of longer execution—the real challenge is sustaining coherent and effective progress over time.
Theoretical Foundation
HoH builds on the principle of iterative and incremental development from software engineering. Modern coding agents operate within a harness—the surrounding system providing tools, managing execution, and mediating LLM interaction with the development environment. HoH operates on top of these harnesses rather than replacing them.
The framework is grounded in the insight that end-to-end software development requires three distinct decision types:
- What to change next (requires project-level view)
- How to realize the change (requires write access and technical autonomy)
- Whether the result satisfies requirements (requires independent assessment)
Methodology
Problem Formulation
Given a software specification , the task is to construct a complete software artifact satisfying functional and quality requirements. Let denote a language model and the coding harness. HoH applies a fixed harness–model configuration:
Cross-Loop State Management
HoH maintains two complementary states across loop boundaries:
- Artifact state : The current implementation after loop (source code, configuration, resources, project metadata)
- Evidence state : Validated knowledge obtained by evaluating against the specification (verified behaviors, unsupported claims, observed failures)
The transition across loop is:
Neither state subsumes the other: supplies the implementation, while supplies validated project knowledge to direct development.
Three-Role Architecture
HoH assigns responsibilities to three distinct roles, each instantiated as a separate invocation of the same fixed harness–model configuration:
| Role | Responsibility | Authority | Key Constraint |
|---|---|---|---|
| Project Planner | Selects bounded, locally complete development objective | Read-only access to artifact | Cannot modify artifact |
| Developer | Implements the planned increment | Write access (single-writer boundary) | Only role that can modify artifact |
| QA Tester | Independently evaluates the candidate | Read-only access to frozen candidate | Cannot repair or modify |
Algorithm
Algorithm 1 Harness-of-Harness
Input: specification S, initial artifact A₀, iteration budget T
Fixed: model M, harness H, and role contracts
Output: final artifact A_T
1: E₀ ← ∅
2: for t = 1, ..., T do
3: Dₜ ← ProjectPlanner(S, Eₜ₋₁; read_only(Aₜ₋₁))
4: Aₜ ← Developer(Aₜ₋₁; S, Dₜ)
5: Eₜ ← QATester(read_only(Aₜ); S, Dₜ, Runtime.check(Aₜ))
6: end for
7: return A_T
Key Mechanisms
-
Iterative Planning–Coding–Testing: Each loop produces a bounded software increment, verifies the result, and carries both candidate and evidence forward.
-
Progressive Disclosure: Plans, reports, and histories are persisted in the file system, exposed through concise categorized indexes, with details retrieved only when relevant—avoiding context window overflow.
-
Role-Specific Tools and Skills: Tools (MCP servers, expert models, domain-specific algorithms) are organized by role, with lightweight Markdown-based skills providing on-demand guidance.
-
Versioned Project History: Software state is preserved with concise accounts of changes, enabling rollback to verified states after regressions and informed diagnosis of recurring failures.
-
Constrained Outputs, Not Workflows: Each role must return structured artifacts; schema violations trigger retries, but agents retain autonomy over reasoning, tool use, and implementation strategy.
Empirical Validation / Results
Benchmark Evaluation Setup
- GameCraft-Bench: 45 tasks sampled from 15 game families (stratified random sampling), scored 0–100 on Overall score combining Core Mechanics, Content Depth, Functional Visuals, and Art and Presentation
- FrontierSWE: 15 of 17 tasks (4 Implementation, 9 Performance, 2 Research), reporting mean reward and official dominance score
- ProgramBench: Cleanroom program-reconstruction benchmark, reporting Avg. Test Pass Rate
Main Results (HoH@3 vs. Vanilla)
| Configuration | GameCraft-Bench (Overall) | FrontierSWE (Reward) | ProgramBench (Pass Rate†) |
|---|---|---|---|
| Codex + GPT-5.5 (high) | 49.58 → 71.52 (+21.93) | 0.31 → 0.54 | 60.41 → 66.50 (+6.09) |
| OpenCode + DeepSeek-V4-Pro | 26.90 → 48.98 (+22.08) | 0.23 → 0.31 | 45.27 → 57.56 (+12.29) |
| Pi + MiniMax-M3 | 42.16 → 58.78 (+16.62) | 0.26 → 0.55 | 35.83 → 52.68 (+16.85) |
Dominance scores on FrontierSWE improved from 44% to 71% (Codex), 25% to 44% (OpenCode), and 35% to 64% (Pi).
Sustained Improvement Over Ten Loops
On FrontierSWE with Codex + GPT-5.5 (high), dominance increased from 39.33% at HoH@3 to 72.67% at HoH@10, reaching 76.00% at HoH@9, versus 27.33% for Vanilla—a 45.34-point improvement over baseline.
Pass-Controlled Comparison
To distinguish HoH's contribution from merely running more passes, HoH was compared against Vanilla Continuation:
| Method | Dev. Passes | Score | Tokens (M) |
|---|---|---|---|
| Vanilla | 1 | 49.58 | 2.59 |
| Vanilla Continuation | 2 | 54.99 | 4.56 |
| Vanilla Continuation | 3 | 58.24 | 6.33 |
| HoH | 1 | 59.71 | 2.88 |
| HoH | 2 | 64.84 | 5.67 |
| HoH | 3 | 71.52 | 8.41 |
Notably, HoH@2 (64.84 with 5.67M tokens) exceeds three-pass Vanilla Continuation (58.24 with 6.33M tokens), showing HoH produces higher quality with comparable or better inference budgets.
Ablation Study
| Variant | Score | Tokens (M) |
|---|---|---|
| w/o Plan Update | 63.39 (−8.13) | 7.56 |
| w/o Evidence Feedback | 65.23 (−6.28) | 7.46 |
| w/o Warm-Start | 63.67 (−7.85) | 11.12 |
| Full HoH@3 | 71.52 | 8.41 |
All ablations underperform Full HoH, confirming that plan revision, evidence feedback, and artifact warm-start each contribute meaningfully to performance.
Multi-Day FPS Game Development (Fusepoint)
In a 70-loop autonomous deployment with Codex CLI and GPT-5.6-Sol:
- Three development phases observed: Initial construction (Loops 1–27, establishing executable project), capability expansion (Loops 28–49, adding functionality while repairing), and stabilization (active backlog declining)
- Issue tracking: 65 of 81 recorded issues closed by Loop 70; 17 issues reopened after regression from later changes
- Human involvement: Limited to restoring network/API availability—no planning, implementation, debugging, testing, or acceptance
- Deliverable: Complete single-player narrative FPS with two control points, three-stage defusal, 18 enemies (distributed 3/5/10 across regions), distinct success/detonation branches, polished visuals, and integrated audio
Theoretical and Practical Implications
Theoretical Contributions
-
Harness-of-Harness as a meta-layer: Just as a coding harness structures model operation, HoH structures harness participation in long-horizon development—a new abstraction level for autonomous software engineering.
-
Evidence-grounded orchestration: The separation of artifact state from evidence state provides a principled framework for maintaining continuity in long-horizon agentic tasks, addressing context-window limitations without dedicated memory modules.
-
Role separation as architectural principle: The strict separation of planning, development, and independent QA—with read-only/write-only boundaries—prevents the collapse of implementation and acceptance into a single decision process.
-
Iterative and incremental development formalized: HoH operationalizes software engineering principles (shift-left testing, single-writer boundaries, iterative development) within an autonomous agent framework.
Practical Implications
-
Vendor-agnostic improvement: HoH works across different harness–model configurations, improving even the strongest baselines (Codex + GPT-5.5) and substantially boosting weaker ones (OpenCode + DeepSeek-V4-Pro).
-
Token efficiency: Pass-controlled comparisons show HoH produces better artifacts than repeated vanilla development at comparable or lower token budgets.
-
Real-world viability: The 70-loop Fusepoint case demonstrates that autonomous agents can sustain coherent multi-day development projects with versioned histories, issue tracking, and regression management.
-
Reusable skills and tools: The framework's role-specific tools and lightweight skills (asset generation, UI/UX presentation, testing) provide a template for domain-specific autonomous development.
Conclusion
Main Takeaways
- HoH enables autonomous software development by organizing fixed coding-agent harnesses into iterative planning–coding–testing loops with persistent artifact and evidence states.
- It achieves substantial, consistent gains across diverse benchmarks and configurations, with improvements continuing over ten or more iterations.
- The framework successfully handles multi-day, open-ended development tasks, producing a complete, human-playable game from scratch.
Future Directions
- Extend HoH to a broader range of real-world development scenarios (different game types, other software systems)
- Develop toward a general framework for autonomous software development
- Investigate additional mechanisms for sustaining improvement over even longer horizons
- Explore applications in domains beyond game development where long-horizon autonomous creation is valuable
Related papers
- Beneath the Diff: Diagnosing and Mitigating Algorithmic Mode Collapse in Code-Level Autonomous Research Loops
Autonomous research loops can silently collapse into self-confirming echo chambers, a failure mode the paper identifies and characterizes in code-level agents.
- Falsifiable Release Gates for Self-Improving Systems: Standing Invariants at Scale
Falsifiable release gates with machine-checked invariants make safety for self-improving AI a durable process, verified across releases at negligible governance cost.
- Update from Hell: Can Coding Agents Survive Hidden Breakage in Dependency Upgrades?
DEPEND-REPAIR benchmark shows current coding agents solve only 51% of dependency-upgrade tasks, failing primarily due to incomplete propagation of API changes across codebases.