Manuscript Offprint

arXiv:2611.03219

Can Coding Agents Sustain Continual Evolution without Forgetting?

Shangziqi Zhao, Yitong Zhang, Jia Li

Abstract

Recently, harness self-evolution has emerged as an important paradigm for improving agent performance. Prior studies show that evolving the agent harness can effectively enhance agent capabilities without modifying the foundation model's parameters. We find that existing approaches largely study agent evolution on a single task. In practice, coding agents may need to handle multiple task types over time. Whether an agent harness can continuously evolve across multiple tasks without suffering from catastrophic forgetting remains an important open question.

In this paper, we investigate this open question through a comprehensive empirical study of continual harness self-evolution. We organize three software engineering task datasets into six different evolution directions and apply two representative harness evolution methods to perform continual evolution along these directions. Our experimental results show that evolution on a subsequent dataset can substantially undermine the performance on previously seen datasets. For example, with DeepSeek-V4-Flash-0731, Meta-Harness improves its performance on SWE-Bench to 94.0% after evolution. However, after further evolution on FeatureBench, its performance on SWE-Bench drops to 32.0% by the fifth round, corresponding to a 66% relative decrease. Finally, based on our experimental findings, we identify several insights, providing directions for the continual self-evolution of agent harnesses. Code is available at https://github.com/THU-Agent/continual-harness-evolution.

Date: November 3, 2026 First author: szqzhao618@gmail.com Corresponding author: † jia_li@mail.tsinghua.edu.cn

1 Introduction

Coding agents have been increasingly used in software engineering tasks (Liu et al., 2024), such as issue solving, feature addition, and test generation (Yang et al., 2024; Wang et al., 2025; Tao et al., 2024; Bouzenia et al., 2025). A coding agent typically consists of a foundation model and an agent harness (Ning et al., 2026; Yang et al., 2024). The harness coordinates the interaction between the model, tools, and environment, thereby influencing how the agent perceives task information, invokes tools, and executes tasks. Different harnesses can substantially affect agent performance. In our experiments, with the foundation model fixed, different harnesses achieve substantially different performance on SWE-Bench, ranging from 82.0% to 96.0%.

To improve the agent harness, recent studies have explored harness self-evolution, which enables agents to learn from their own execution experience by analyzing trajectories, identifying strategies, and using these insights to automatically improve their runtime systems (Jiang et al., 2026). Recently, a number of approaches have been proposed, demonstrating promising improvements in agent capabilities (Agrawal et al., 2026; Zhang et al., 2026c; Zhou et al., 2025; Chhikara et al., 2025; Zhang et al., 2026b; Xia et al., 2026; Lin et al., 2026; Lee et al., 2026; Zhang et al., 2026a; Chen et al., 2026). For example, AHE (Lin et al., 2026) improves the performance of the seed harness NexAU0NexAU_0 on Terminal-Bench 2 from 69.7% to 77.0% after ten rounds of evolution.

However, existing harness self-evolution studies primarily focus on independently evolving harnesses for a single kind of task. In practical scenarios, coding agents are expected to address various software engineering tasks. The Stack Overflow Developer Survey 2026 report that 72.9% of devel-

Figure

(a)

(b)

Figure 1 Overview of our study on continual harness self-evolution.

opers use AI agents for writing, editing, or generating code, 62.2% for debugging or troubleshooting, and 50.6% for writing or maintaining tests Stack Exchange Inc. (2026). In software development, a user may first ask a coding agent to add a new feature and later ask it to write test files. Inspired by this observation, we propose continual harness self-evolution, which refers to successively evolving a harness across different task types, in contrast to evolving a harness independently for a single task. However, to the best of our knowledge, no existing work has explored continual evolution of coding agent harnesses across different kinds of tasks.

To bridge the above research gap, we conduct a systematic study of continual harness self-evolution for coding agents. Our study aims to answer the following research questions:

RQ1: Can existing harness self-evolution methods sustain continual evolution across multiple software engineering tasks? Continual harness self-evolution requires an agent to keep improving on each new tasks without losing the capabilities it acquired on previous ones. To examine whether existing methods meet this requirement, we construct a continual evolution setting in which the harness is evolved on a sequence of software engineering task types rather than on a single task. Specifically, we evaluate two representative harness self-evolution methods, AHE (Lin et al., 2026) and Meta-Harness (Lee et al., 2026), across three software engineering datasets: SWE-Bench (Jimenez et al., 2024) for code repair, SWT-Bench (Mündler et al., 2024) for test case generation, and FeatureBench (Zhou et al., 2026) for feature generation. Each continual evolution experiment forms a two-stage task sequence, where the harness first evolves on an earlier dataset and then continues evolving on a later one, allowing us to track how performance on the earlier task changes as evolution proceeds. The results reveal substantial catastrophic forgetting during continual harness self-evolution, as shown in Figure 1 (a). For example, Meta-Harness improves SWT-Bench to 100.0%, but its performance on SWT-Bench drops to 62.0% after further evolution on FeatureBench.

RQ2: What are the root causes of catastrophic forgetting in the harness? As shown in Figure 1 (b), to understand why continual harness self-evolution can lead to catastrophic forgetting, we collect over 520 agent trajectories and manually analyze the harness modifications introduced during continual harness self-evolution. We categorize these modifications into three major types of harness-level conflicts: verification, workflow, and budget strategy conflicts. Our ablation experiments show that different conflict types have substantially different effects on agent performance. We hope these findings shed light on the design of future self-evolution methods that are aware of such conflicts, and we call for more attention to this overlooked yet critical issue.

The main contributions of our work are as follows:

① Motivated by the practical use of coding agents across diverse tasks, we propose the problem of harness continual self-evolution and identify catastrophic forgetting as a critical challenge.

② We evaluate existing harness self-evolution methods under continual evolution, revealing catastrophic forgetting on previous acquired capabilities.

③ We manually analyze agent trajectories and identify key harness-level conflicts that contribute to forgetting phenomena.

References (33)