Recursive Harness Self-Improvement Boosts LLM Agent Performance

Hyunin Lee, Jinglue Xu, Jeffrey Seely, Donghyun Lee, Matei Zaharia, Yujin Tang· July 20, 2026 View original

Summary

This research introduces Recursive Harness Self-Improvement (RHI), a method for iteratively refining user-constructed prompt-level harnesses for LLM agents using pairwise feedback. RHI significantly enhances the performance of low-reasoning-effort agents across various tasks, reducing inference costs while improving task-specific context management.

The study explores a novel approach called Recursive Harness Self-Improvement (RHI) to enhance the performance of large language model (LLM) agents. In the context of "model-harness co-evolution," harnesses are not just inference-time tools but also generate data that can influence future model training. RHI focuses on optimizing these user-constructed harnesses in a computationally lightweight manner. RHI works by representing the agent's operational loop as a prompt-level specification, which is then iteratively refined. This refinement process uses pairwise feedback based on the harness's own revision history, allowing for continuous improvement without extensive manual intervention or costly updates from model providers. Experiments across 30 synthetic machine learning research tasks demonstrated that even a few iterations of RHI substantially improved the performance of agents requiring low reasoning effort. These gains often surpassed the performance of agents operating at maximum reasoning effort, while simultaneously reducing inference costs by up to 60%. The primary mechanism for this improvement was identified as better task-specific context management and more effective information flow between agents, rather than simply longer reasoning chains.

Why it matters

For professionals building and deploying LLM-powered agents, RHI offers a practical, cost-effective method to significantly improve agent performance and efficiency by optimizing the prompts and operational logic that guide them. This can lead to more capable and cheaper AI applications.

How to implement this in your domain

  1. 1Define your LLM agent's operational logic and task-specific instructions as a prompt-level harness.
  2. 2Implement a feedback mechanism that allows for pairwise comparison and iterative refinement of different harness versions.
  3. 3Apply RHI to continuously optimize your agent's harness, focusing on improving context management and inter-agent information flow.
  4. 4Measure the performance gains and cost reductions achieved by RHI-optimized agents compared to baseline or maximum-effort configurations.

Who benefits

Software DevelopmentAI EngineeringFinancial ServicesRoboticsPharma

Key takeaways

  • Recursive Harness Self-Improvement (RHI) optimizes LLM agent performance by iteratively refining prompt-level harnesses.
  • RHI significantly boosts low-reasoning-effort agents, often outperforming maximum-effort settings.
  • The method can reduce inference costs by up to 60% while improving task-specific context management.
  • RHI offers a computationally lightweight and practical approach for continual learning in agent systems.

Original post by Hyunin Lee, Jinglue Xu, Jeffrey Seely, Donghyun Lee, Matei Zaharia, Yujin Tang

"arXiv:2607.15524v1 Announce Type: new 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 h…"

View on X

Originally posted by Hyunin Lee, Jinglue Xu, Jeffrey Seely, Donghyun Lee, Matei Zaharia, Yujin Tang on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses