arXiv(opens in a new tab)cs.AISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.37834

Mixture of Self-Improving Branches For Agent Harness Optimization

Haoyu Dong, Yuhang Zhou, Zihao Lin, Yifan Wu, Bo Peng, Mingyi Wang, Xiangjun Fan, Lizhu Zhang, Zhuokai Zhao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Harness optimization provides a practical setting for recursive self-improvement (RSI), where agent-generated modifications inform subsequent changes through execution feedback. Recent work such as Meta-Harness implements this process through iterative code generation and evaluation, but retains a fixed development set and proposal policy. These constraints channel evolution along a single search trajectory, increasing the risk of converging to a local optimum. We make the improvement process itself adaptive by organizing search into branches with evolving development subsets and proposal policies. Each branch retains development cases solved by more of its leading harnesses than by those of other branches, drops cases solved by every leading harness across all branches, and revises its proposal policy using its own search history. To deploy the resulting complementary harnesses, we propose a router to select one development-selected branch head for each new input before execution. Across mathematical reasoning and agentic coding benchmarks, our system achieves relative improvements over Meta-Harness of 34.8% on Olympiad-level mathematical reasoning, 11.6% on Terminal-Bench 2.0, and 3.8% on SWE-bench Lite, with harness selection and router configuration based solely on development data. These results show that evolving branch objectives and proposal policies can yield complementary harnesses whose strengths a router combines without access to test outcomes.

1 INTRODUCTION

An LLM agent’s capability depends not only on the underlying model but also on its surrounding harness. Through retrieval, tool interfaces, and control flow, the harness governs what information the model receives, which actions it can take, and when it verifies or revises its work (Lewis et al., 2020; Yao et al., 2023; Shinn et al., 2023). Prior work demonstrates that carefully designed reasoning and feedback mechanisms can improve agent performance on question answering, sequential decision-making, and coding tasks (Yao et al., 2023; Shinn et al., 2023). Building on these advances, recent work automates harness design by using evaluation feedback to refine prompts, code, and workflows (Khattab et al., 2023; Hu et al., 2024). For example, Meta-Harness uses an agentic proposer to generate harness implementations and evaluate them on a predefined development set, drawing on prior code, scores, and execution traces to guide subsequent proposals (Lee et al., 2026). This process provides a practical setting for recursive self-improvement (RSI), where experience from earlier implementations guides subsequent changes.

Although this feedback guides successive harness proposals, the development set and proposal instructions remain fixed throughout search (Hu et al., 2024; Lee et al., 2026). Evaluating candidates on the same development cases throughout search can overlook complementary strengths: a harness may solve cases missed by the leading ones yet rank lower overall, leaving those capabilities with limited opportunity for further development. Meanwhile, fixed proposal instructions do not explicitly adapt exploration priorities to the strengths and unresolved failures that emerge during search. These limitations motivate our central question: can adapting each branch's development subset and proposal guidance help discover complementary harnesses and improve deployment performance?

1^{1}Meta 2^{2}Duke University 3^{3}University of California, Davis.

*Work done while at Meta. †Co-last authors. Correspondence to: Haoyu Dong haoyu.dong151@duke.edu and Zhuokai Zhao zhuokai@meta.com.

To answer this question, we propose organizing harness search into separate branches, each with a development subset that adapts to its emerging strengths (Figure 1). A branch is a separate search process with its own development subset, candidate history, and proposal guidance. For each development case, we compare how many leading harnesses in each branch solve it. When one branch has a clear advantage over the others, we retain the case in that branch's subset and remove it from the others. Cases solved by every leading harness across all branches are removed from search. By changing which cases contribute to each branch's score, these updates can promote previously overlooked harnesses and redirect subsequent proposals. To adapt proposal generation to the cases retained by each branch, we also revise each branch's guidance using its local search experience (Yang et al., 2026). The guidance records which modifications improved performance, which repeatedly failed, and which problems remain unresolved. These lessons guide subsequent proposals by identifying promising mechanisms, recurring failure modes, and directions for further exploration. As branches accumulate different evidence, their guidance develops distinct priorities that complement the specialization induced by their development subsets.

Branch-local search makes selecting a single harness for deployment nontrivial. Selecting by test accuracy requires held-out outcomes that are unavailable when deploying on new problems, while development scores are not directly comparable across branches with different subsets. To address this challenge, we retain the development-best harness from each branch and use a router to choose among them for each new problem, inspired by mixture-of-experts and model-routing approaches (Jacobs et al., 1991; Ong et al., 2024).

We evaluate our approach on Olympiad-level mathematical reasoning (Lee et al., 2026), Terminal-Bench 2.0 (Merrill et al., 2026), and SWE-bench Lite (Jimenez et al., 2024). With harnesses selected exclusively on development data, the routed system improves over Meta-Harness across all four benchmark-model settings. On mathematical reasoning, accuracy rises from 46.0% to 62.0% with Gemini 3 Flash and from 29.0% to 30.5% with Claude Sonnet 4.5, corresponding to relative gains of 34.8% and 5.2%. The corresponding relative gains on Terminal-Bench 2.0 and SWE-bench Lite are 11.6% and 3.8%, reaching 50.0% task completion and 66.0% issue resolution, respectively. The router achieves performance comparable to the branch expert with the highest test accuracy and surpasses it in two settings, without using test outcomes for selection. Trajectory analysis illustrates how changing development subsets redirects search, while ablations show the strongest performance when development updates and proposal adaptation are combined.

Our contributions are fourfold:

• Search with dynamic development subsets. Multiple search branches adapt their development subsets based on differences in task performance, encouraging complementary harnesses.

• Branch-specific proposal adaptation. Proposal guidance evolves from each branch’s local search history, preserving distinct lessons and priorities for future modifications.

• Deployable expert routing. A router combines complementary development-selected branch experts, approaching or surpassing the test accuracy of the best individual expert.

• Improved benchmark performance. Development-selected systems outperform fixed baselines and Meta-Harness across four settings spanning mathematical reasoning and agentic coding.

References (5)

  • name: branch-skill-gradient description: Update one branch-local TB2 proposer skill from a completed-iteration window
  • The harness generates a plan and uses it with the problem statement to retrieve worked examples through BM25
  • >Router components</td><td colspan=
  • The harness removes reasoning tags, trims tagged reasoning at a sentence boundary when one is available, caps each solution at 4,000 characters, and appends the reference answer stored in the corpus
  • Both paths follow structured planning, solving, and verification instructions