Meta: Precomputing Reusable Knowledge for Online Harness Evolution in Long-Horizon Agents
Organizations: University of Maryland · University of Washington · University of Illinois at Urbana-Champaign · All Purpose AI ·
Abstract
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 that may overfit 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 that 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 by contrasting training rollouts of the same task agent under three configurations: without an evolver, with an evolver guided by the current version of , and with an evolver given privileged verifier information available only in training. Contrasts in trajectories and outcomes are aggregated across tasks to refine 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 with emerging trajectory evidence to decide whether to KEEP the harness unchanged or EVOLVE it through a task-local edit. Each edit applies to the rest of the same run without resetting its environment or progress. Thus, evolution guidance transfers across tasks while 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.
Figures & tables
| Method | Terminal-Bench 2.1 | DeepSWE 1.1 | ||||||
| Perf. | Cost ($) | Perf. | Cost ($) | |||||
| Offline | Online | Full | Offline | Online | Full | |||
| Human-Designed Harnesses | ||||||||
| NexAU Seed | 66.33 | – | 34.09 | 34.09 | 34.67 | – | 62.67 | 62.67 |
| Codex CLI | 68.33 | – | 56.59 | 56.59 | 31.11 | – | 136.53 | 136.53 |
| mini-swe-agent | 67.33 | – | 41.08 | 41.08 | 29.33 | – | 68.87 | 68.87 |
| Method | Perf. | Cost ($) | ||
|---|---|---|---|---|
| Offline | Online | Full | ||
| NexAU Seed | 70.00 | – | 16.83 | 16.83 |
| Self-Evolution Methods | ||||
| ReasoningBank | 69.33 (-0.67) | 8.08 | 21.21 | 29.29 |
| ACE | 65.00 (-5.00) | 58.30 | 21.56 | 79.86 |
| TF-GRPO | 66.33 (-3.67) | 37.15 | 19.86 | 57.01 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Meaning |
|---|---|
| Task instance: public instruction, interactive environment, and verifier. | |
| State, observation, and action at step . | |
| Partial trajectory through step . | |
| Frozen task-agent policy. | |
| Seed harness. | |
| Harness after decision . |
| Benchmark | Training tasks | Test tasks | Runs per test task |
|---|---|---|---|
| Terminal-Bench 2.1 | 29 | 60 | 5 |
| DeepSWE 1.1 | 38 | 75 | 3 |
| Terra | DeepSeek | ||
| Method | Terminal-Bench 2.1 | DeepSWE 1.1 | Terminal-Bench 2.1 |
| NexAU Seed | |||
| Codex CLI | – | ||
| mini-swe-agent | – | ||
| Pi agent | – | ||
| DeepSeek Harness | – | ||
| Method | Offline optimization | Pre-run evolution | Within-run evolution | After-run evolution | Test-time verifier requirement |
|---|---|---|---|---|---|
| Meta-Harness [ 20 ] | Not required | ||||
| AHE [ 24 ] | Not required | ||||
| JIT-Agent [ 57 ] | Mode-dependent | ||||
| ACE [ 61 ] | Mode-dependent | ||||
| Harness-R1 [ 39 ] | Required | ||||
| Continual Harness [ 18 ] | Not required |
| Field | Content |
|---|---|
| ID / title | A stable identifier for citation and a short title describing the situation. |
| Type | act supports intervention; hold supports leaving the run unchanged; avoid discourages a particular intervention. |
| Time point | start , during , or end , indicating the execution stage to which the entry applies. |
| When to refer | An observable condition that the evolver can assess from the task instruction, trajectory, permitted workspace observations, or channel budget. |
| Guidance | The harness action to take or avoid, including the channel and message content when applicable. |
| Why | The pattern observed across training tasks that supports the guidance, including relevant qualifications. |
Agent Harness Optimization
Agent harness optimization improves the prompts, tools, memory, workflows, and control code that shape how AI agents act.
See all 192 papers