Recursive Harness Self-Improvement

arXiv cs.AI Papers

Summary

Introduces Recursive Harness Self-Improvement (RHI), a method that iteratively refines prompt-level harness specifications for AI agents using pairwise feedback, improving performance and reducing inference cost by up to 60% on diverse machine learning research tasks.

arXiv:2607.15524v1 Announce Type: cross Abstract: Under model--harness co-evolution, harnesses are not merely inference-time scaffolds but data-generating components whose execution traces can shape future foundation models. This motivates harness-in-the-loop learning: optimizing harnesses for both immediate agent performance and the quality of traces used for future model training. However, continually updating provider-built scaffolds is costly and labor-intensive. We therefore investigate whether optimizing user-constructed harnesses in a task-specific manner can improve execution-trace quality while remaining computationally lightweight and requiring only a few update iterations. To this end, we introduce Recursive Harness Self-Improvement (RHI), which represents the harness as a prompt-level specification of the agent loop and iteratively refines it using pairwise feedback over its own revision history. Across 30 synthetic machine-learning research tasks spanning quantitative finance, robotics, and pharmacy, a few RHI iterations suffice to substantially raise the performance ceiling of low-reasoning-effort agents, exceeding the corresponding maximum-reasoning-effort setting while reducing inference cost by up to 60%. We show that these gains arise primarily from improved task-specific context management through more effective inter-agent information flow rather than longer reasoning traces. Finally, we formalize this behavior as an information-theoretic hypothesis for RHI's implicit optimization objective, suggesting RHI as a practical algorithm for continual learning within the paradigm of model--harness co-evolution.
Original Article
View Cached Full Text

Cached at: 07/20/26, 09:26 AM

# Recursive Harness Self-Improvement
Source: [https://arxiv.org/abs/2607.15524](https://arxiv.org/abs/2607.15524)
[View PDF](https://arxiv.org/pdf/2607.15524)

> Abstract:Under model\-\-harness co\-evolution, harnesses are not merely inference\-time scaffolds but data\-generating components whose execution traces can shape future foundation models\. This motivates harness\-in\-the\-loop learning: optimizing harnesses for both immediate agent performance and the quality of traces used for future model training\. However, continually updating provider\-built scaffolds is costly and labor\-intensive\. We therefore investigate whether optimizing user\-constructed harnesses in a task\-specific manner can improve execution\-trace quality while remaining computationally lightweight and requiring only a few update iterations\. To this end, we introduce Recursive Harness Self\-Improvement \(RHI\), which represents the harness as a prompt\-level specification of the agent loop and iteratively refines it using pairwise feedback over its own revision history\. Across 30 synthetic machine\-learning research tasks spanning quantitative finance, robotics, and pharmacy, a few RHI iterations suffice to substantially raise the performance ceiling of low\-reasoning\-effort agents, exceeding the corresponding maximum\-reasoning\-effort setting while reducing inference cost by up to 60%\. We show that these gains arise primarily from improved task\-specific context management through more effective inter\-agent information flow rather than longer reasoning traces\. Finally, we formalize this behavior as an information\-theoretic hypothesis for RHI's implicit optimization objective, suggesting RHI as a practical algorithm for continual learning within the paradigm of model\-\-harness co\-evolution\.

## Submission history

From: Hyunin Lee \[[view email](https://arxiv.org/show-email/97dc9d73/2607.15524)\] **\[v1\]**Fri, 17 Jul 2026 00:21:19 UTC \(2,357 KB\)

Similar Articles

Harness Engineering for Self-Improvement (28 minute read)

TLDR AI

This blog post by Lilian Weng explores the concept of recursive self-improvement in AI, focusing on how harness engineering—the system surrounding base models—enables automation and improvement of AI agents through workflow design and evaluation.

Self-Harness: Harnesses That Improve Themselves

Hacker News Top

Self-Harness introduces a new paradigm where LLM-based agents iteratively improve their own operating harness by mining model-specific weaknesses, proposing harness modifications, and validating them through regression testing, achieving substantial performance gains on Terminal-Bench-2.0 across multiple base models.

@AlphaSignalAI: https://x.com/AlphaSignalAI/status/2074130508833845396

X AI KOLs Timeline

Self-improving harnesses enable AI agents to autonomously rewrite their operating rules by analyzing execution traces, leading to a 60% performance boost. Research from Shanghai AI Lab introduces the Self-Harness framework, allowing lightweight models to outperform larger ones without manual engineering.