Manuscript Offprint

arXiv:2611.05139

Meta2^2: Precomputing Reusable Knowledge for Online Harness Evolution in Long-Horizon Agents

Lingzhi Yuan, Yiguang Cai, Weize Liu, Siqi Yang, Feijiang Han, Yongkyun Lee, Udari Madhushani Sehwag, Furong Huang

Meta²: Precomputing Reusable Knowledge for Online Harness Evolution in Long-Horizon Agents

Lingzhi Yuan¹,, Yiguang Cai²,, Weize Liu¹, Siqi Yang³, Feijiang Han¹, Yongkyun Leeᵃ, Udari Madhushani Sehwag⁴, Furong Huangᵃ,¹

¹University of Maryland; ²University of Washington; ³University of Illinois at Urbana-Champaign; ⁴Scale AI; ⁵All Purpose AI

Harness optimization improves long-horizon agents by refining the prompts, tools, memory, and hooks around a frozen model. Offline methods can learn from completed trajectories, but deploy one shared harness for the task agent that may overfits training tasks and cannot react to evidence revealed during a new run. Online evolution can adapt before, during or after one run through an evolver, but may have to reason about every intervention from scratch, or rely on verifier feedback which is usually unavailable at test-time. We introduce Meta², which moves offline optimization one level up: rather than optimizing a shared harness, it learns reusable knowledge for harness evolution and applies it within each task online. Offline, Meta² learns a textual Meta-Skill M\mathcal{M} by contrasting training rollouts of the same task agent under three configurations: without an evolver, with an evolver guided by the current version of M\mathcal{M}, and with an evolver given privileged verifier information available only during training. Contrasts in trajectories and outcomes are aggregated across tasks to refine M\mathcal{M} into reusable guidance on when and how to evolve, when to leave the harness unchanged, and which interventions to avoid. Online, an evolver combines the frozen M\mathcal{M} with emerging trajectory evidence to decide whether to KEEP the harness unchanged or EVOLVE it through a task-local edit. Each edit shapes the remainder of the same run, preserving its environment state and accumulated progress. This way, evolution guidance transfers across tasks while realized harness edits remain task-local, and held-out verifier feedback is never available to the evolver. On two long-horizon benchmarks Terminal-Bench 2.1 and DeepSWE 1.1, Meta² achieves the highest performance among evaluated methods with GPT-5.6-Terra, reaching 81.00% and 44.44%, respectively. Ablations support the value of contrastive evolution guidance and keeping online harness edits task-local.

Project: https://meta-square.github.io/

all purpose

References (52)