Cross-Model and Cross-Data Agent Self-Improvement: How Harness Experience Transfers

    Continuous recursive self-improvement (RSI) of AI Agents usually happens inside a single environment—but what happens when the dataset or the underlying model changes? This article breaks down the concept of Continuous Recursive Self-Improvement (CRSI), explaining why simply reusing optimized harness code often fails across environments, and why the real key to transferable improvement lies in carrying over the reasoning and evidence behind each change rather than the final code alone. It also outlines two experimental settings—cross-dataset and cross-model—and draws practical lessons for teams building evolving Agent systems.

    Cross-Model and Cross-Data: How AI Agents Keep Improving Themselves Recursively

    1. The Other Half of Agent Capability: The Control Program Beyond the Model

    When discussing LLM-powered Agents, attention naturally goes to model parameters and training data. But in real-world engineering, how an Agent ultimately performs often depends just as much on the control program outside the model—commonly referred to in the industry as the harness.

    The harness is responsible for answering several key questions:

    • How prompts are organized: how context is trimmed, how tool descriptions are injected, and how conversation history is compressed;
    • Which tools are called: how capabilities like retrieval, code execution, and file operations are exposed to the model;
    • How results are processed: whether tool outputs are truncated, summarized, or parsed into structured data;
    • When execution stops: deciding whether a task is complete, whether to retry, or whether to terminate proactively.

    This program is typically pure external code, fully decoupled from model weights. That’s precisely why recursive self-improvement (RSI) can happen at this layer—run the current version of the harness, collect execution feedback, have the model propose modifications, then use an evaluator to select a better next version. Throughout the process, the task model’s weights stay frozen; only the external program iterates.

    2. The Core Problem: Code Transfer Is Not Experience Transfer

    Harness optimization within a single environment is relatively mature, but real engineering scenarios often demand that improvements be reusable across environments. An experiment from the research illustrates the problem well:

    A harness optimized by Model A on a given benchmark was handed to Model B to perform the same type of task. Its initial score (68.41) turned out to be lower than the baseline score (73.89) of Model B’s own seed harness.

    This reveals an important fact: reusing code itself does not guarantee gains. Modifications that worked in the source environment implicitly encode adaptations to a specific model’s behavior. For example, if Model A tends to produce verbose outputs, the harness may include aggressive truncation logic—while Model B’s outputs are already concise, so the same truncation discards critical information. This kind of “over-adaptation” is common in traditional software migration too, but in the Agent context, differences in model behavior amplify it.

    This leads to the core research concept: Continuous Recursive Self-Improvement (CRSI)—the improvement process should not reset to zero when the environment changes. Instead, the experience that produced those modifications should be carried over along with them.

    3. Two Typical Settings: Cross-Dataset and Cross-Model

    The research divides CRSI into two orthogonal experimental settings:

    1. Cross-Dataset Setting

    • Kept constant: the task model (weights frozen);
    • Changed: the task benchmark and its data splits;
    • Goal: verify whether harness improvement experience accumulated on Task A can accelerate optimization on Task B.

    This setting answers the question: is the experience “task-specific,” or does it contain generalizable methodological components?

    2. Cross-Model Setting

    • Kept constant: the task benchmark and data splits;
    • Changed: the task model that executes the task;
    • Goal: verify whether harness optimization experience can provide a “warm start” on a new model instead of starting from scratch.

    This setting answers the question: is the experience “model-specific,” or is it general knowledge about “how to organize a harness”?

    Both settings share one prerequisite: a compatible executable interface. As long as the old and new environments stay consistent at the level of tool-calling protocols and input/output formats, the existing harness optimization pipeline can keep running without being rebuilt from the ground up.

    4. From “Preserving Code” to “Preserving the Rationale”

    The key insight behind CRSI can be summarized as a shift in perspective:

    Dimension Traditional RSI CRSI
    What is transferred Optimized harness code The experience and reasoning behind the modifications
    On environment change Re-optimize or directly reuse code Continue along the improvement trajectory, keep recursing
    Why transfer fails Over-adaptation to the source environment Experience abstraction reduces adaptation risk

    Specifically, beyond the final code, the following should also be transferred:

    1. Motivation for each change: why this version is better than the previous one, and what evaluation evidence supports it;
    2. Failure cases: which attempts failed and what the failure patterns were;
    3. Environment difference annotations: which conclusions are model-specific and which are task-specific.

    This resembles Architecture Decision Records (ADRs) in software engineering—recording not just “what was changed,” but “why it was changed.” With this rationale available, the optimizer in a new environment can judge which pieces of experience can be inherited directly and which need targeted correction, avoiding a cold start from zero.

    5. Implications for Engineering Practice

    For developers building Agent systems, this approach offers several immediately actionable takeaways:

    • Treat the harness as a first-class citizen: establish version control and evaluation baselines for prompt templates and tool orchestration logic, not just for model versions;
    • Build an evidence chain for every harness change: record score comparisons before and after each modification, along with representative failure samples, forming a transferable experience library;
    • Design compatible executable interfaces: the stability of the tool-calling protocol determines whether improvement experience can be reused across environments;
    • Beware the illusion of the “optimal harness”: the best configuration obtained by iterating on a single model plus a single benchmark very likely contains overfitted components—run cross-validation before switching environments.

    When building Agent platforms in the cloud, the same philosophy applies: making “experience accumulation” part of the platform itself—for instance, fully logging the evaluation trajectory of every improvement through a logging service, and maintaining an experience library with version snapshots through object storage—allows the results of self-improvement to compound as the system evolves, rather than resetting to zero after every environment change.

    6. Conclusion

    The central thesis of continuous recursive self-improvement is this: an Agent’s self-improvement should not be a one-off code optimization, but a portable, continuable iterative process. The cross-dataset and cross-model settings test, respectively, whether experience transfers across tasks and across executors. The key to making that transfer work lies in upgrading from “preserving the final code” to “preserving the rationale behind each change”—letting the evidence, motivations, and lessons from every iteration become the input for the next round of improvement. For Agent systems aiming at long-term evolution, this may matter more than any single point optimization.