ModularRSI: Modular and Generalizable Recursive Harness Self-Improvement

Siwei Wu, Jincheng Ren, Yizhi Li, Haau-Sing Li, Chengran Yang, Yuxuan Zhang, Weicheng Gu, Jian Yang and 6 others

Beihang University · University of Manchester · IQuest Research · M-A-P · Langboat · Hohai University

Published September 14, 2026 · on the feed September 16, 2026 · ▲ 212 · arXiv 2609.14857

The 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.

The Brief

2:45

A short podcast summary of the paper. Written and voiced by AI.

Transcript

ModularRSI. Modular and Generalizable Recursive Harness Self-Improvement. By Siwei Wu and thirteen others, from Beihang University, the University of Manchester, and four other institutions. Published on the fourteenth of September. Its code repository is worked out: about one thousand five hundred source files, with a readme and a licence.

Recursive self-improvement, or RSI, has recently been extended to agent harnesses for long-horizon coding and terminal tasks. The idea is that an agent can improve its own execution mechanisms from experience. Making those improvements generalize is hard, and the paper names three reasons.

First, evolving a harness on an evaluation benchmark, or on part of one, makes it hard to tell reusable improvements from adaptation to that particular benchmark. Second, updating from a single trajectory can confuse a systematic harness deficiency with the reasoning and solution details of one instance, and the resulting changes transfer poorly to unseen tasks. Third, inside a monolithic harness, recurring behavioral deficiencies are hard to localise. Optimizing the whole harness at once entangles unrelated mechanisms, which makes it hard to attribute a change to its cause or to validate it.

ModularRSI answers each of those in turn. It is benchmark-disjoint, contrastive, and modular. The tasks it evolves on never come from the evaluation benchmarks. Evidence comes from contrasting successful and failed trajectories on the same task, and then aggregating across many tasks, so that what surfaces is a deficiency that recurs rather than an accident of one attempt. And the harness is split into parts that evolve separately.

There are five functional modules: Agent Loop, Tool Use, Observation Management, Context Management, and Task Completion Detection. Each module evolves independently within a restricted scope of modification, so a change meant for one cannot leak into the others. An integration stage then combines the evolved modules into a unified harness and resolves any conflicts between them. To keep evolution disjoint from evaluation, the authors curate two thousand executable evolution tasks from external sources that do not overlap the downstream benchmarks.

Experiments on TB2.0 and SWE-Bench Verified show consistent improvements on unseen tasks, both in-domain and cross-domain. Since none of the evolution tasks came from these benchmarks, those gains cannot be explained as the harness having seen them before. The evolved harness also transfers across different foundation models, so what was learned belongs to the harness and not to the particular model it was evolved with.

Each design choice maps onto one of the three failure modes. Separate data guards against overfitting to the benchmark. Contrast guards against learning from one instance's quirks. And modules keep each change attributable to the part of the harness it touched, which is what makes it possible to check.

Paper Quest · 7 chapters · about 41 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

Every quest starts with a wall. Here, an agent that should improve its own machinery keeps learning the wrong lessons.

You run a coding agent, and you want it to improve the code wrapped around the model: how it calls tools, manages context, and decides it is done. It should learn from its own runs.

The road ahead

  1. 1 · The problem ~7 min A coding agent that rewrites its own wrapper code from experience can easily learn tricks that only fit one test or one task.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~9 min Evolve the harness on separate tasks, learn from wins contrasted with failures across many tasks, and change one module at a time before merging.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Curate separate tasks, contrast wins and failures, pool recurring flaws, evolve each module alone, then integrate them into one harness.
  6. 6 · The experiment ~6 min You’ll guess: When the evolved harness was run with foundation models other than the one it evolved with, did its improvements carry over?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.