Multi-Task Self-Evolving Harnesses with the Agent as Its Own Optimizer
Abstract
A harness is the code around a language model agent that organizes prompts, calls tools, manages context, and controls execution. As models grow stronger, recent work has begun to let agents improve their own harnesses, a line of work known as self-evolving harnesses. In most existing methods, a separate proposer running on a human-designed harness modifies the solver's harness, and a separate harness is evolved for each benchmark. Real-world tasks come from many domains, so both the evolution and the evaluation of a harness should cover a diverse range of tasks. We propose a framework close to recursive self-improvement: the same frozen model, on the same version of the harness, first solves tasks as the solver and then, as the proposer, reads the complete run records and directly edits the harness that runs it. Each evolution batch draws tasks from five benchmarks in different domains. To measure generalization, training and held-out tasks are strictly separated, and we additionally evaluate on five out-of-distribution benchmarks not used in the first stage. The design borrows from deep learning training and has two stages, multi-task pretraining and continual training. Starting from a 49-line seed harness, the harnesses evolved by GLM-5.3 and GPT-5.6 Sol gain about 5 points on the in-distribution benchmarks. They are on par with Claude Code and Codex on these benchmarks, and the GPT-5.6 Sol harness is also on par with Codex on five out-of-distribution benchmarks. The weaker model of each family benefits less: GLM-5.3-Flash gains less than 2 points, and the harness evolved by GPT-5.6 Luna scores below the seed. Continued evolution on Claw-Eval in the second stage further improves GPT-5.6 Sol and GLM-5.3-Flash on its multimodal tasks. We also analyze where the gains come from and the mechanisms that emerged during evolution. Code: https://github.com/xqkkk/self-evolving-harness.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
Related papers
Self-Evolving Algorithm-Design Agents: Escaping In-Context Evolutionary Stagnation via Population-Curated Policy Optimization
Shared title terminologycs.AIChen Lu, Ke Xue, Siyuan Xu et al.
PrivMeSA: Privacy-Aware Self-Evolving Multi-Agent System for Medicine via Local-Remote LLM Collaboration
Shared title terminologycs.AIDannong Wang, Yuran Zhang, Bian Sun et al.
Topological Coherence for Self-evolving Multi-agent Systems
Shared title terminologycs.AISen Zhao, Ruiqi Kong, Zuyu Zhang et al.
Self-Evolving Evaluation Environments for Computer-Use Agents
Shared title terminologycs.AIWenhao Wang, Panrong Tong, Quyu Kong et al.
Do Self-Evolving Skills Generalize to Held-Out Tasks?
Shared title terminologycs.AIXihao Piao, Zifeng Wang, Zhen Chen
AnyAct: Universal Action for Self-Evolving Agents
Shared title terminologycs.AILingrui Xu, Yangqin Jiang, Jiachang Zhang et al.