When AI tools automatically rewrite an agent's instructions and tools, do those upgrades work on new problems or just memorize old ones?
How do evolved harness edits generalize across different benchmark domains?
This explores whether the changes an automated system makes to an agent's scaffolding (prompts, tools, control flow) while the model stays frozen still help on tasks and domains they weren't evolved on, or whether they only patch the tasks they were tuned against.
This explores whether the changes an automated system makes to an agent's scaffolding (prompts, tools, control flow) while the model stays frozen still help on tasks and domains they weren't evolved on. The corpus says that by default they mostly don't. A close look at evolved harness trajectories found the edits were sensible and well-motivated, but most just persisted fixes an agent could have rediscovered in a single rollout (Do harness edits learn reusable strategies or memorize task fixes?). Those edits cache shortcuts for problems already within reach. They don't turn hard failures into successes. The same pattern shows up as overfitting: recursive scaffold edits memorize the tasks used for evolution, and the gains shrink when you move out of distribution (Does harness self-improvement memorize tasks instead of learning broadly?).
What does transfer tends to be plumbing rather than task knowledge. When an auto-research loop was scaled across many environments, it converged on four mechanisms: how actions are executed, how context is compacted, how observations are handled, and how reading is delegated. Together they cut token traffic by 44.7–49.0% at comparable performance on a 51-task benchmark (Can agent harnesses be automatically optimized across many environments?). None of these depend on what a task is about, which is probably why they survive a change of domain. Related evidence points the same way. One execution runbook built around frozen weights carried over to newer models without modification (Can execution harnesses lift model performance without retuning weights?). AIDE2's gains held on four held-out benchmarks, including physics-based weather forecasting, which sat outside the distribution used for selection (Do AIDE2's improvements transfer to unseen tasks?).
Generalization also depends on how the evolution is run, not just on what gets found. ModularRSI evolves harness modules separately, uses contrastive trajectories on data disjoint from the benchmark, and aggregates evidence across tasks before touching a component. That separates mechanism-level improvements from task-specific adaptation and shows consistent gains on unseen tasks and domains (Can harness modules improve separately from benchmark data?). RRSI reaches a similar place from another direction, constraining both the proposal and selection stages to favor reusable mechanisms over benchmark-specific ones. Selecting over a population of variants under a preserve-and-extend contract also looks robust, with average 17-point gains across benchmarks (Can frozen models improve by evolving their harnesses?).
Three caveats keep the picture honest. First, a gain that looks like generalization may just be extra compute. Harness gains only count once they beat task-level test-time search given the same feedback and inference budget (How should we measure gains from automatic harness evolution?). Second, transfer across models is uneven. Every model tier can produce useful harness edits, but the ability to benefit from them follows an inverted U, peaking in mid-tier models. Weak models fail to invoke the harness, and strong models struggle to follow it faithfully (Do stronger models always evolve harnesses better?). Third, some harness value is tied to its domain by design. A safety harness strict enough for one model over-blocks another, and policies general enough to cross domains miss application-specific safety relations (Should safety harnesses be customized for each deployment?). Even a successful builder-model harness for Theory-of-Mind nearly doubled a weaker model's score largely through task-specific routing and by moving unstable reasoning into deterministic code (Can a stronger model lift a weaker one at test time without retraining?).
So the working answer is that harness edits generalize to the extent they encode how an agent handles context, actions and observations rather than how to beat a particular task. A related result points to what makes such edits portable. Organizing a harness around runtime behavior, with an explicit map from behaviors to code, let weaker planners match stronger models at code localization (Can explicit behavior maps help weaker planners compete with stronger models?).
Sources 12 notes
Analysis of evolved harness trajectories shows rational, well-motivated edits across prompt and tool layers, but most persist fixes an agent could rediscover in a single rollout. Gains remain limited because memorized shortcuts cache what's already within reach rather than converting hard failures into successes.
Recursive edits to agent scaffolding can memorize evolve-set tasks, causing in-distribution gains to shrink out-of-distribution. RRSI addresses this by constraining the proposal and selection stages to favor reusable mechanisms over benchmark-specific ones.
Cross-environment harness optimization yielded four mechanisms (action execution, context compaction, observation handling, delegated reading) that reduced token traffic by 44.7–49.0% while maintaining comparable performance on a 51-task benchmark, suggesting harness-level gains are orthogonal to model improvements.
StateM improves Terminal-Bench 2.1 accuracy across multiple models by optimizing execution systems around frozen weights. The same runbook transfers to newer models without modification, achieving 95.3% on GPT-5.6 and lifting DeepSeek-V4 Flash by 5.4 points.
The paper reports that AIDE2's improvements transfer to four held-out benchmarks spanning machine learning, algorithm engineering, and physics-based weather forecasting—the last being outside the selection task distribution. This demonstrates transferable gains beyond overfitting to the selection set.
Show all 12 sources
ModularRSI evolves harness modules independently using contrastive trajectories on benchmark-disjoint data, showing consistent gains across unseen tasks and domains. The approach isolates mechanism-level improvements from task-specific adaptation by aggregating evidence across tasks before updating components.
DarwinX achieves average 17-point gains across benchmarks by evolving harness variants (prompts, tools, skills, control flow) under a preserve-and-extend contract while keeping the model frozen. Key evidence includes Terminal-Bench 2.1 rising to 84.7% and WebArena-Infinity reaching 93.0% audit-clean pass@1.
Automatic harness evolution must be compared against task-level test-time search under equal feedback and inference budgets. Only gains beyond what matched search achieves are attributable to the harness design itself, not just more computation.
Model capability to produce useful harness edits stays constant across tiers, but capacity to actually benefit from those edits follows an inverted U-shape, peaking in mid-tier models. Weak models fail to invoke harnesses; strong models struggle with faithful instruction-following.
A harness strict enough for one model over-blocks another, while policies general enough to transfer across domains miss application-specific safety relations. Domain semantics and model characteristics jointly determine which harness is effective.
A stronger model built inference-time harnesses that nearly doubled weaker model performance on Theory-of-Mind benchmarks without retraining, primarily by moving unstable reasoning into deterministic code and task-specific routing rather than encouraging extended reasoning.
A behavior-to-code mapping representation improved win rates by 10–19 points while reducing planner tokens by 8–13%. Weaker planners using this mapping matched stronger models' code localization across all precision and recall metrics.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Harness Updating Is Not Harness Benefit: Disentangling Evolution Capabilities in Self-Evolving LLM Agents
- Rethinking the Evaluation of Harness Evolution for Agents
- HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?
- DarwinX: Evolving Agent Harnesses Through Natural Selection
- ModularRSI: Modular and Generalizable Recursive Harness Self-Improvement
- Scaling Laws for Agent Harnesses via Effective Feedback Compute
- Ouroboros: A Self-Developing Frontier Coding Agent with Reviewed Core Evolution
- RRSI: Regularized Recursive Self-Improvement of Agent Harnesses