ModularRSI: Modular and Generalizable Recursive Harness Self-Improvement
Abstract
Recent work extends recursive self-improvement (RSI) to agent harnesses for long-horizon coding and terminal tasks, enabling agents to improve execution mechanisms from experience. However, generalizable harness RSI remains challenging. First, evolving harnesses on evaluation benchmarks or their subsets makes it difficult to distinguish reusable improvements from benchmark-specific adaptation. Second, single-trajectory updates can conflate systematic harness deficiencies with instance-specific reasoning and solution details, producing modifications that transfer poorly to unseen tasks. Third, localizing recurring behavioral deficiencies within monolithic harnesses is difficult, while whole-harness optimization can entangle unrelated mechanisms and complicate attribution and validation. We propose ModularRSI, a benchmark-disjoint, contrastive, and modular framework for generalizable harness evolution. ModularRSI contrasts successful and failed trajectories for the same task and aggregates evidence across tasks to identify recurring behavioral deficiencies. It decomposes the evolvable harness into five functional modules: Agent Loop, Tool Use, Observation Management, Context Management, and Task Completion Detection. Each module evolves independently within a restricted modification scope, followed by an integration stage that combines the evolved modules into a unified harness and resolves potential conflicts. To support benchmark-disjoint evolution, we curate 2,000 executable evolution tasks from external sources that are disjoint from downstream evaluation benchmarks. Experiments on TB2.0 and SWE-Bench Verified show consistent improvements on unseen in-domain and cross-domain tasks, with the evolved harness also transferring across different foundation models.
Community
This paper presents ModularRSI, a framework for generalizable harness self-improvement that identifies recurring deficiencies through modularization, contrastive trajectory analysis, and independent evolution of modular harness components. In addition, we provide a benchmark-disjoint evolution set to systematically evaluate and compare the generalizability of different RSI methods.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Evo-Harness: Context-to-Harness Skill Compilation for Self-Evolving Agents (2026)
- Verify Smarter, Evolve Further: Efficient Harness Evolution through Behavior-Aware Verification (2026)
- Hierarchical Self-Improvement: A Framework for Task-Specific Evolvable Agent Harnesses (2026)
- Ecdysis: Efficient and Effective Training of Runtime Harnesses for LLM Agents (2026)
- HarnessEvolve: Learning from Reference Trajectories for Reliable Agent Self-Evolution (2026)
- Evo-Bench: Can Language Models Improve Agent Harness? (2026)
- JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolution (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2609.14857 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper