arXiv(opens in a new tab)cs.SESep 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2609.11677

Ecdysis: Efficient and Effective Training of Runtime Harnesses for LLM Agents

Ruiqing Yue, Yu Cui, Zhuoyu Sun, Sicheng Pan, Xianhong Xue, Tingyu Li, Ting Li, Wenzhuo Zhu, Yi Chen, Yifei Liu, Baohan Huang, Zhe Cui, Haibin Zhang, Cong Zuo

Abstract

Self-evolving runtime harnesses can substantially improve the capabilities of large language model (LLM) agents and provide a promising paradigm for optimizing agent execution. Existing harness evolution methods typically rely on iterative search, repeatedly evaluating and revising candidate harnesses based on execution feedback from task instances. While this paradigm enables continuous harness optimization, it incurs substantial time overhead due to repeated agent executions and code modifications, and may overfit to observed tasks and specific failure patterns, resulting in degraded generalization to unseen tasks. We identify the lack of principled failure diagnosis as a key bottleneck in harness evolution: an observed failure can reflect either model-specific deficiencies or systematic harness deficiencies, and directly optimizing against individual failures can lead to unnecessary model-specific accommodation. We therefore propose ECDYSIS, an efficient and effective framework that distinguishes model-specific accommodation from harness-level repair and biases adaptation toward systematic harness deficiencies by identifying recurring cross-task failure patterns. ECDYSIS adopts a batch-level cross-instance failure aggregation paradigm to jointly analyze failure evidence from multiple task instances and further introduces Failure-Driven Collaborative Refinement (FDCR) to diagnose failure causes and iteratively refine harness modification specifications. By combining cross-instance failure analysis with multi-role diagnosis, ECDYSIS enables more effective harness evolution with lower end-to-end training time. Experiments across multiple LLMs and benchmarks show that ECDYSIS achieves up to a 1.84×1.84\times speedup in harness training compared with existing harness evolution methods, while improving the reasoning accuracy of the resulting harnesses by 18.56%. Moreover, harnesses trained with ECDYSIS exhibit stronger generalization across LLMs and reduce inference-time token consumption.

1 Introduction

Large language models (LLMs) have demonstrated increasingly strong capabilities in complex reasoning. However, the capabilities of the underlying model alone are often insufficient for practical LLM agents [1][1]. Recent studies have shown that runtime harnesses can substantially enhance agent capabilities through inference-time mechanisms such as task planning, tool interaction, and

∗^{*}Yu Cui proposed the algorithm, and Ruiqing Yue validated its effectiveness through experiments.

Preprint. Under review.

context management [2–4]. The widespread adoption of coding agents, such as Codex [5], further demonstrates that, even with the underlying LLM fixed, the runtime harness plays a crucial role in determining agent performance. Unlike manually designed harnesses, recent harness self-evolution methods [6–9] enable harnesses to automatically modify their own code based on execution feedback. By iteratively identifying failures and revising the harness, this paradigm provides a promising approach to automatically optimizing runtime harnesses for LLM agents.

Existing harness evolution methods typically rely on iterative search, repeatedly evaluating and revising candidate harnesses based on execution feedback collected from task instances. While this paradigm enables continuous optimization of runtime harnesses using task feedback, it faces substantial efficiency and generalization challenges. Each harness update typically requires additional agent execution, code modification, and result verification, resulting in substantial training-time overhead. Moreover, as evolution proceeds, the harness may become increasingly specialized to observed tasks and specific failure patterns, leading to undesirable deviations in harness evolution [10, 11] and degraded generalization to unseen tasks [12]. These limitations suggest that effective harness evolution requires not only collecting execution feedback, but also reliably interpreting such feedback and translating it into appropriate harness modifications.

We identify reliable failure attribution as a key challenge in harness self-evolution. An observed failure may arise from the current model's behavior or from a systematic deficiency in the harness. This distinction is critical because harness evolution can either perform model-specific accommodation, adapting to idiosyncrasies of the current model, or harness-level repair, addressing systematic deficiencies in the interaction mechanism. Individual failures provide limited evidence for distinguishing these cases, and simply collecting more failures does not resolve the ambiguity. Without reliable attribution, evolution may overfit to observed failure patterns and degrade generalization to unseen tasks. We therefore seek to identify failure mechanisms that recur across task instances as stronger evidence for systematic harness repair.

This motivates the following research question: Can failure evidence across task instances distinguish model-specific accommodation from systematic harness repair and guide more generalizable harness evolution? To address this issue, we propose ECDYSIS, an efficient framework for evolving runtime harnesses for LLM agents. ECDYSIS adopts a batch-level cross-instance failure aggregation paradigm to jointly analyze failures from multiple task instances. Rather than treating failures as independent modification signals, it identifies recurring failure patterns across tasks and prioritizes those providing stronger evidence for systematic harness deficiencies.

To further improve the reliability of failure diagnosis, ECDYSIS introduces Failure-Driven Collaborative Refinement (FDCR) [13–15]. Different roles examine the collected failure evidence and iteratively refine potential failure causes and candidate harness modifications from complementary perspectives. A moderator then synthesizes these analyses into a structured harness modification specification, reducing ambiguity in failure interpretation and improving the reliability of the resulting modifications. By combining batch-level cross-instance failure analysis with multi-role diagnosis, ECDYSIS extracts more informative signals from each training round, prioritizing systematic harness repair over unnecessary model-specific accommodation and thereby enabling more effective harness evolution while reducing end-to-end training time.

We systematically evaluate ECDYSIS across multiple LLMs and benchmarks. Experimental results show that ECDYSIS achieves up to a 1.84×1.84\times speedup in harness training compared with existing harness evolution methods while improving the reasoning accuracy of the resulting harnesses by 18.56%. Further experiments demonstrate that harnesses trained with ECDYSIS exhibit stronger cross-LLM generalization, while also reducing inference-time token consumption. These results demonstrate that reliable failure diagnosis can improve both the efficiency and generalizability of runtime harness evolution. Our contributions are summarized as follows:

• ECDYSIS Training Framework. We propose ECDYSIS, a runtime harness training framework that analyzes recurring failure patterns across task instances to distinguish systematic harness deficiencies from model-specific behavior, and introduces Failure-Driven Collaborative Refinement (FDCR) to generate structured harness modification specifications.

• Efficient and Generalizable Harness Evolution. We systematically evaluate ECDYSIS across multiple LLMs and benchmarks. Results demonstrate substantial improvements in harness training efficiency and agent reasoning performance, together with stronger cross-model generalization and reduced token consumption.

• Insights for Training Data Curation. We propose a failure-aware training data selection strategy that considers interaction structures and failure mechanisms across task instances, prioritizing tasks that expose novel execution paths and harness deficiencies while reducing redundant failure signals. By aggregating failures across instances, ECDYSIS identifies shared deficiencies and enables more efficient harness evolution with fewer, more diagnostic training tasks. Our experiments show that ECDYSIS achieves performance comparable to full-data training while using only one-quarter of the training data, substantially reducing the overhead of harness evolution.

• An Empirical Analysis of Model Accommodation in Harness Evolution. Through extensive fine-grained manual analysis of the training process, we identify and quantify the tendency of failure-driven evolution to over-accommodate model-specific limitations using the model-accommodation ratio. Based on this analysis, we formulate a theoretical perspective in which excessive model accommodation can induce harness evolution drift and undermine cross-model generalization, providing an explanation for the improved generalization achieved by ECDYSIS.

References (30)