RSI-Harness: Optimizing the Harness Optimizer via Recursive Self-Improvement
The performance of an LLM agent depends heavily on its harness, which manages the model's context, tool use and control flow. Recent approaches automate harness design, yet the improver that edits the harness is written by hand and never changes, so it cannot learn from the outcomes of its past edits. Self-referential systems relax this restriction by letting the improver update itself, but it remains unclear whether they learn a better improver or merely find a better task harness along one search trajectory. We address this question by making the improver itself an explicit optimization target, so that it learns from its own search experience and becomes a better optimizer. We realize this idea in RSI-Harness, a dual-loop recursive self-improvement framework in which an inner loop uses the current improver to refine the task harness, while an outer loop revises the improver from the history of successful and failed attempts. Each revision may start from any archived improver, and an acceptance gate adopts it only if it produces a better task harness than the current improver under matched tasks and budget. Across five benchmarks and three frozen backbones, RSI-Harness achieves the best average score on every backbone (as a point estimate; the 95% confidence interval of its margin over the strongest baseline includes zero), improving the initial harness by 7.7 points on average with 32-83% fewer optimization tokens than Self-Harness, GEPA and Meta-Harness. More importantly, the improver itself recursively gets better, with its gain on the same starting harness growing from 1.3 to 6.2 points. The final improver also transfers to unseen models, benchmarks and domains, gaining 2.7 times as much as the initial improver on average, while the optimized task harness transfers poorly.
Authors
- Julien Monteil (ORCID: https://orcid.org/0000-0002-8723-2677)
- Eduard H. Hovy (ORCID: https://orcid.org/0000-0002-3270-7903)
- Caren Han
- Paul Albert (ORCID: https://orcid.org/0000-0001-6021-3962)
- Jun Wang
- Fan Jiang
- Shuo Yang
Institutions
- Amazon (United States) (US)
- The University of Melbourne (AU)
- Carnegie Mellon University (US)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24686628
- Primary Topic
- Topic Modeling
- Type
- preprint