Recursive Harness Self-Improvement
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.
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)
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.
@SakanaAILabs: From Harness Engineering to RSI How will recursive self-improvement (RSI)—where AI builds and improves itself—be realiz…
Lilian Weng's blog post argues that recursive self-improvement (RSI) in AI will be realized through refining the design and optimization of the 'harness' (the system surrounding the model), and highlights research examples from Sakana AI.
Self-Harness: Harnesses That Improve Themselves
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
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.
@omarsar0: // Self-Harness: Harnesses That Improve Themselves // (bookmark this one) Most of the agent scaffolds we rely on today …
This paper introduces Self-Harness, a new paradigm where LLM-based agents iteratively improve their own operating harness—prompts, tools, and control flow—without human engineers or stronger external agents, achieving significant performance gains across multiple models.