Agent Self-Evolution: Co-Optimizing Model Weights and the Harness

    This article explains why agent self-evolution cannot rely on model weights alone. It reviews an evaluation setup in which a developer agent improves a target model under fixed time, compute, and teacher-model budgets, using visible, selection, and test data splits. It interprets normalized weighted scores, cross-harness experiments, and the finding that coding improvements often come from harness optimization while training gains are domain-dependent. It also provides practical guidance on attribution, post-harness regression testing, and treating weights plus harness as one delivery unit.

    1. Why Agent Self-Evolution Cannot “Only Change the Model”

    In engineering practice for agent systems, a long-overlooked issue is this: when teams talk about “letting an agent self-evolve,” they often assume the path is equivalent to “continue training the model weights”—for example, instruction tuning on new trajectory data or applying reinforcement learning. However, a production-usable agent system actually consists of two parts:

    • Model weights: the core capability for understanding, reasoning, and decision-making;
    • Harness: the surrounding engineering system that manages tool-call protocols, context organization, prompt templates, execution flows, and error recovery.

    These are not independent modules. They form a tightly coupled whole. Recent systematic evaluation work—represented by benchmarks that allow both weight and harness modifications—reaches an important conclusion: evolution that changes only the weights, but not the harness, has limited benefit and may even be negative. This article expands on that finding by reviewing the evaluation design, interpreting the results, and drawing engineering implications.

    2. Evaluation Design: How to Fairly Measure “Evolution Capability”

    2.1 Dual-Objective Model and Developer Agent

    The evaluation setup is carefully designed: researchers construct a “developer agent” whose task is to produce a better “weights + harness” combination around a specified target model within a given budget. In other words, the entity performing evolution is not a human, but a large model with development capability.

    Resource constraints for each development round are strictly fixed:

    • Time limit: 24 hours;
    • Compute limit: a fixed number of GPUs (several consumer-grade or enterprise-grade cards);
    • Teacher-model call budget: a fixed monetary cap, preventing “cheating” through unlimited calls to external stronger models.

    2.2 Dataset Splits: Visible, Selection, and Test Sets

    The evaluation data is divided into three sets with different purposes:

    Split Provided Content Purpose
    Visible set Task descriptions + full trajectories Used by the developer agent for analysis and constructing training data
    Selection set Scores only Used for model selection during development, preventing overfitting to the test distribution
    Test set Completely hidden Used for final independent evaluation

    A key methodological note: the capability score of the researcher agent (the model doing the development) and the performance of the target model (the system being optimized) are two different dimensions and must not be conflated. No matter how capable the developer agent is, if the target system’s score does not improve, the evolution attempt is a failure.

    3. Correctly Interpreting the Score: 31.23 Is Not “31% Task Success Rate”

    3.1 Meaning of the Normalized Weighted Score

    When targeting a mid-sized base model, a typical experimental observation is roughly: the delivered system’s weighted score is about 31, the initial (non-evolved) system is about 1, and the standard baseline of “instruction-tuned target model + reference harness” is about 37.

    This score is a domain-weighted normalized score: for each evaluation domain, the denominator is the gap between the initial score and the reference baseline score, and the numerator is the portion of that gap closed by the evolved system. These domain-level results are then aggregated with domain weights. Therefore, 31.23 roughly means that about 83% of the initial-to-baseline gap has been closed. It is neither a task success rate nor a simple average of scores.

    This scoring convention addresses a common problem: raw scores across domains can differ greatly in scale, and directly averaging them can mislead conclusions. When building their own evaluations, developers should also consider this “gap normalization” approach.

    3.2 Scores Cannot Be Directly Compared Across Different Targets

    When the target model is switched to another smaller model, the reference point for normalized weighting—the baseline score—also changes. Therefore, scores under the same target can be compared vertically, but scores across different target models cannot be compared horizontally—they use different “rulers.”

    3.3 Result Divergence: Strong in Interaction, Weaker in Coding

    In the result distribution, interactive task domains—such as scenarios requiring multi-turn tool calls—generally exceed the reference baseline, while some coding domains still lag behind. This divergence sets up the later finding that “the harness contributes to coding improvements.”

    4. Key Finding 1: Coding Gains Mainly Come from the Harness, and Training Gains Must Be Measured Separately

    4.1 An Attribution Problem That Is Easy to Miss

    In the experiment, one developer system attempted training in each of six coding-oriented development iterations, but the final retained base weights were always those that performed better under the same harness—training itself produced no retainable gain. Yet the system’s overall score was still far above the starting point.

    What does this show? The improvement in coding performance was mainly contributed by harness optimization. If “the system got better” is directly attributed to “training worked,” that is a typical attribution error.

    4.2 But It Does Not Mean “Training Is Generally Ineffective”

    Two balancing points must be added immediately:

    1. Other developers obtained positive training gains on some coding systems;
    2. Three interactive domains generally benefited more from training.

    Therefore, the correct conclusion is: training gains are domain-related and conditional; they must be measured separately, rather than inferred indirectly from changes in the overall system score.

    4.3 Direct Evidence of Harness-Weight Coupling

    One interactive-task experiment provides a very clear coupling case: the same trained weights solved about 5 more problems under the old harness; after switching to the new harness, they solved about 4 fewer problems than the baseline; only after re-adapting training to the new harness’s calling patterns did performance recover to solving about 4 more problems.

    The conclusion is clear: the distribution of training data implicitly assumes the harness’s calling patterns. Once the harness changes, old training data may turn from an asset into a liability. This directly warns against the common workflow of “train first, switch harness later.”

    5. Key Finding 2: Cross-Evaluation of 35 Systems

    5.1 Cross-Harness Replacement Experiment

    To quantitatively characterize the coupling between weights and harness, the experiment performed a cross operation on 35 systems that submitted trained weights: all were uniformly replaced with the reference harness, and score changes were observed. A counterintuitive phenomenon appeared:

    • Instruction-tuned weights showed a clear average score increase after switching to the reference harness (about 30 to 38);
    • Developer-trained weights collapsed after switching to the reference harness (about 20 dropping to less than 3).

    5.2 What This Means

    Instruction tuning is usually performed under general harness assumptions, so the capabilities learned by the weights are relatively insensitive to the harness; switching harnesses is therefore harmless or even beneficial. In contrast, weights trained by the developer agent are often deeply bound to the harness it designed itself—its knowledge is a property of the “weights-harness pair,” not a property of the weights alone.

    An analogy: if a trained-weight and new-harness combination shows clear degradation after a harness change, that itself suggests the new harness may not be better than the old one, and the change decision needs to be re-examined. Note that these cross average scores use a different convention from the main leaderboard’s weighted score; they are analytical data and should not be mixed with the main leaderboard.

    5.3 Search Behavior Characteristics

    Analysis of the development process also found that among 28 runs that met the filtering conditions and showed improvement, 25 achieved their maximum improvement in the first round of search (the first hop). This suggests that the evolutionary search process may suffer from rapid saturation or getting stuck in local optima, with significantly lower value density in later iterations.

    6. Boundaries and Limitations of the Experiment

    Rigorous conclusions must state their scope. This evaluation has at least the following limitations:

    • Limited target model coverage: only two types of target models are involved, without covering larger-scale models or different architectures;
    • Single training method: only offline fine-tuning is validated, without covering online optimization methods such as reinforcement learning;
    • Fixed budget: compute, time, and teacher-model call quotas are fixed, so conclusions cannot be extrapolated to larger-budget scenarios;
    • Heterogeneous development tools: different researchers use different development toolchains, introducing additional variables.

    7. Practical Recommendations for Developers

    Based on the above findings, engineering practice for agent self-evolution should follow these principles:

    1. Run decoupling experiments before attribution. To determine whether “the weights got better or the harness got better,” one must hold one fixed and change only the other. Any system-level improvement without ablation should not be directly recorded as a training gain.

    2. Re-evaluate training gains after harness changes. Old training data implicitly assumes old calling patterns. After a harness upgrade, perform small-scale regression validation and, if necessary, re-adapt training.

    3. Treat “weights + harness” as the delivery unit. The evaluation object should be the paired whole, not an isolated checkpoint. This is especially important when making model selection or harness upgrade decisions.

    4. Make evaluation conventions transparent. Domain weights for normalized weighted scores and the selection of reference baselines directly affect conclusions. Reports must explicitly state the convention to avoid misreading scores across different target models.

    8. Conclusion

    The most valuable contribution of this evaluation is that it breaks down “agent self-evolution” from a vague vision into an engineering problem that can be rigorously measured. Its core lesson is: weights and harness are not two independently tunable knobs, but an integrated whole that defines each other. For teams building agent systems in the cloud—whether based on their own compute or a combination of container platforms, model services, and toolchains—the correct approach to evolution is always co-optimization, cross-validation, and separate attribution. Evolution that changes only the model has completed only half the journey.