Manuscript Offprint
arXiv:2611.05139Meta: Precomputing Reusable Knowledge for Online Harness Evolution in Long-Horizon Agents
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 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 during 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 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
Because different tasks expose different interface and control needs, hand-designed harnesses [3, 5, 36, 49] must either anticipate a wide range of situations or be specialized manually. Automatic harness optimization reduces this burden, but most methods still make their consequential choices outside the active run. Offline methods optimize prompts, memory, tools, workflows, or complete harness programs on training tasks and deploy one shared artifact [1, 20, 24, 50, 54, 56, 58, 60]. This shared artifact may overfit training tasks and cannot react to evidence revealed during a new run. Online methods adapt the harness after the target task becomes available. Some customize it from the target instruction before execution (pre-run) or revise it using feedback from completed attempts (after-run) [39, 43, 57]. Recent systems support within-run evolution by updating prompts, tools, skills, or memory during execution [6, 18, 46, 47]. Such within-run harness evolution can be viewed as a practical step
*Equal contribution. Preprint. Correspondence: {lingzhiy,furongh}@umd.edu.

Figure 1. Motivation and overview of Meta². Offline evolution produces a shared harness that may overfit training tasks and cannot adapt to evidence revealed during a new run, while online methods face limitations in intervention timing, knowledge guidance, and verifier availability. By moving offline optimization one level up, Meta² learns a reusable Meta-Skill from contrastive training rollouts and freezes it to guide task-local harness evolution at checkpoints online, without access to verifier feedback at test-time. Across both evaluated benchmarks, this design yields the highest performance among the compared methods.
toward recursive self-improvement (RSI), where an agent improves not only its task behavior but also the system that shapes its subsequent behavior. Pre-run and after-run adaptation cannot apply an edit to the unfinished run in which the motivating evidence arises. Within-run evolution can respond to such evidence as it emerges, but the evolver still needs guidance on when and how to intervene. This raises our central design question: how can lessons learned from completed training runs guide selective edits during a new run, without accessing held-out verifier feedback or making one task's correction persist into unrelated tasks?
This question is difficult because evolution during a run is a sequential decision under partial information. At a checkpoint, an evolver can observe the active trajectory and permitted workspace state, but not the run's eventual verifier outcome. It must decide whether intervention is warranted, what harness component to change, and how to express the change. Acting can rescue a failing trajectory, but it can also interrupt productive work or introduce a new failure; sometimes the correct action is to do nothing. Offline supervision for learning such guidance is also coarse: a terminal pass or failure evaluates a sequence of checkpoint decisions jointly rather than identifying which individual edit helped or harmed. Finally, reasoning about every evolution decision from scratch adds online token, latency, and monetary cost.
We introduce Meta², a precompute-and-reuse approach which moves offline optimization one level up. Rather than optimizing a shared harness, it precomputes reusable evolution knowledge to guide the task-local edits online. Offline, Meta² learns a textual Meta-Skill from training trajectories and verifier outcomes. Online, each run starts from the same seed harness , and stays fixed across runs. A task agent executes normally; at checkpoints, a separate evolver uses and active-run evidence to choose KEEP or EVOLVE(). An edit is applied through a notice, instruction update, hook, or tool channel, and affects only the remainder of the current run. The task agent then continues with the same environment state and partial trajectory. Thus, the Meta-Skill is reused across tasks, while harness edits remain local to the run and are discarded when each run ends. Figure 1 illustrates this process.
The Meta-Skill is learned from comparisons of rollout outcomes rather than successful traces alone. For each training task, we run the same task agent under three conditions: A, without an evolver; B, with an evolver guided by the current version of ; and C, with an evolver given privileged verifier information available only during training. A–B comparisons show when runs with the current evolver succeed or fail relative to runs without it; B–C comparisons reveal both recoveries missed by the current evolver and cases where verifier-informed evolution is associated with worse outcomes. These contrasts provide directional evidence to act, avoid, or hold without establishing the causal effect of any single checkpoint decision. Across training batches, REFLECT extracts lessons from these comparisons, AGGREGATE merges recurring patterns across tasks and removes instance-
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 2 specific details, and UPDATE revises . During online evolution, is never updated with held-out verifier outcomes or task-specific edits.
We evaluate Meta on Terminal-Bench 2.1 and DeepSWE 1.1. With GPT-5.6-Terra, it achieves the highest performance among the evaluated methods on both benchmarks, reaching 81.00% and 44.44%, respectively. It also ranks first on Terminal-Bench with DeepSeek-V4-Flash-0731, scoring 77.67%. Ablations show gains from adding the online evolver and further gains from contrastive Meta-Skill learning. We also report one-time offline construction and online deployment costs separately and examine how checkpoint frequency trades responsiveness for cost. Our contributions are:
-
We formulate harness evolution by edit timing, available evidence and the executions affected. This taxonomy distinguishes offline optimization from pre-run, within-run, and after-run online adaptation.
-
We develop Meta, a hybrid harness evolution paradigm which moves offline optimization from a shared harness to reusable evolution knowledge and uses that knowledge to guide task-local harness edits within a run.
-
We evaluate performance, cost, component contributions, and checkpoint-frequency sensitivity on two long-horizon benchmarks, with an additional backbone evaluation on Terminal-Bench.
2. Background: Harness Evolution
Task execution through a harness. (1) A task instance comprises a public instruction , an interactive environment , and a verifier whose criteria and outcome need not be observable to the agent or the evolver. (2) A task agent combines a model parameterized by with a harness , comprising prompts, context policy, tools, skills, memory, and hooks that shape execution by, for example, preserving constraints, enabling actions, and validating artifacts. (3) At environment step , has state , including the current workspace and task artifacts, and emits an observation . Conditioned on the instruction, interaction history, and active harness, the agent selects an action according to , where . The environment transitions via , and the verifier returns at termination.
Harness Evolution. To improve the performance of a task agent under an initial harness, we let an evolver revise it from evidence. Starting from a seed harness , decision proposes and applies an edit:
where is the evidence available to this decision, is reusable knowledge about when and how edits help or harm (possibly empty), is the harness after decision , and a null edit sets . We evaluate harness evolution by on held-out tasks.
Offline evolution applies equation 1 on a training set before any target task is observed. Its evidence consists of completed training trajectories and their verifier outcomes, and it outputs a single harness shared by all target tasks. This amortizes experience across training tasks, but is fixed once execution begins: it cannot react to evidence revealed during a target run, and its persistent edits may overgeneralize beyond the failures that motivated them.
Online evolution applies equation 1 after the target task becomes available. There are three deployment-time settings, distinguished by when an edit is selected and which executions it affects: pre-run selects edits before execution (), using the target instruction and initial environment information to adapt the harness for the upcoming run; within-run selects edits at checkpoints during execution, using the partial trajectory and permitted workspace observations to adapt the harness for the remainder of the active run; and after-run selects edits once an attempt terminates, using completed trajectories and outcome feedback when available to adapt the harness for subsequent attempts or tasks. Only within-run evolution can respond while the motivating attempt is unfinished, but its decisions cannot depend on that attempt's eventual verifier outcome. Appendix Table 7 compares the two instantiations of equation 1, which differ in available evidence and edit lifetime.
The two regimes are complementary. Offline evolution has verified training experience but cannot observe the target run, whereas within-run online evolution observes the target run but may lack reusable guidance from
all@purpose
Meta: Reusable knowledge for harness evolution • 3

Figure 2. Design of Meta²: offline knowledge learning, online harness evolution and format of Meta-Skill. Offline, rollouts are collected under three conditions: the task agent alone (A), evolution guided by the current Meta-Skill (B), and evolution with verifier knowledge (C). Deterministic pairing of terminal outcomes yields act, avoid, and hold contrasts. LLM-based reflection and cross-task aggregation distill these contrasts into reusable lessons, which iteratively update the Meta-Skill. Online, the frozen Meta-Skill guides an evolver LLM to retain or modify the harness at deterministic checkpoints, while the task agent continues along a single trajectory in one environment. Meta-Skill entries specify when, how and why to intervene with reference examples.
verified training experiences. This raises the question of whether verified offline experience can guide online edits without carrying tasks-specific edits across runs.
3. Meta²: Precomputing Reusable Knowledge for Online Evolution
Meta² answers this question by moving the offline stage one level up. Instead of optimizing a shared harness, it learns reusable evolution Meta-Skill from training trajectories and verifier feedback. At deployment, is frozen, and the evolver decides each within-run edit conditioned on it: . The Meta-Skill is reused across tasks, while each edit affects only its active run. As shown in Figure 2, Meta² has three main components: a checkpoint-based interface for within-run evolution, an offline procedure that learns , and a deployment protocol that reuses without held-out verifier feedback.
3.1 Online Component: Checkpoint-Based Harness Evolution
Challenge: intervene without restarting. The evolver must decide whether and how to intervene before an active attempt ends, without resetting its environment, discarding its trajectory, or taking over its actions. Meta² therefore separates two roles instantiated from the same frozen language model. The task agent starts from a minimal seed harness and follows , while the evolver observes the run at checkpoints and may edit the harness.
Checkpoint information. Let denote the permitted read-only workspace observations obtained at checkpoint which may be empty. The evolver also receives the newly accumulated trajectory while retaining its preceding checkpoint conversation. Its information therefore accumulates as
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 4 where denotes chronological append and records whether the preceding edit was loaded, retained, or rolled back. The trajectory deltas reconstruct , while and provide workspace observations and previous-edit status. Appendix Table 7 summarizes the available evidence across evolution regimes.
Decision and continuation. At checkpoint , the evolver makes a binary top-level decision:
KEEP sets and continues execution; EVOLVE applies through a bounded notice, instruction update, hook, or tool channel. At the terminal checkpoint, triggered by the task agent's completion claim, the evolver also receives automatically collected workspace state. The action space remains unchanged: KEEP accepts the artifact, whereas EVOLVE applies a bounded correction and sends the task agent back for more work. This follows Equation 1 as the same-run loop . Appendix B.2 specifies the checkpoint schedule, observation permissions, terminal state, and edit semantics.
3.2 Offline Component: Precomputing Reusable Evolution Knowledge
Challenge: learn checkpoint guidance from terminal outcomes. At deployment, the evolver must choose whether and how to edit using evidence available during the run, without held-out verifier feedback. Offline, the verifier supplies an outcome only after the entire run, evaluating a sequence of checkpoint decisions jointly. A passing or failing rollout therefore does not identify which intervention helped, harmed, or was unnecessary. Even when a useful intervention is found, its lessons must be separated from task-specific details before they can transfer.
Optimize the knowledge, not a single harness. We hold the language model, seed harness, checkpoint interface, and edit channels fixed, and optimize only the evolver's reusable knowledge . This Meta-Skill links observable execution conditions to three guidance types: act supports an EVOLVE decision, hold supports KEEP, and avoid rules out a specific intervention even when another edit may remain appropriate. The evolver uses this guidance to decide whether and how to edit the harness during a new run. The offline output is therefore reusable decision knowledge rather than a universal harness or a predetermined edit. Offline optimization therefore transfers decision knowledge, not a universal harness or a predetermined edit. Appendix B.1 gives the full offline construction algorithm, and Appendix I specifies the entry fields and content of the Meta-Skill.
A/B/C rollouts make terminal feedback informative. For each training task, we run the same task agent with the same language model and seed harness under three conditions: A, without an evolver; B, with an evolver guided by the current version of ; and C, with an evolver given privileged verifier information available only during training. A–B contrasts compare outcomes with and without the current evolver, whereas B–C contrasts reveal additional recoveries or failures under verifier-informed evolution. Condition C is particularly useful on difficult tasks, where both A and B may fail and their comparison provides no successful examples. By giving the evolver privileged verifier information, C can produce successful rollouts that allow B–C contrasts to reveal recovery strategies missed by the current evolver. To prevent these recoveries from relying on direct verifier leakage, the condition-C evolver's system prompt strictly prohibits passing privileged verifier information to the task agent. We also audit condition-C trajectories after execution and exclude those that violate this restriction from contrast construction and Meta-Skill learning.
Five contrast directions. B-pass/A-fail and C-pass/B-fail provide act evidence for potentially useful interventions and recoveries missed by the current evolver, respectively. B-fail/A-pass and C-fail/B-pass provide avoid evidence for potential harm from current and verifier-informed interventions, respectively. A-pass/B-pass provides hold evidence from cases where the task agent succeeds with or without an evolver. These comparisons give each candidate lesson a direction but do not establish the causal effect of a single checkpoint decision.
From task-level contrasts to reusable rules. We process training tasks in batches. For batch , REFLECT inspects each retained contrastive group and writes candidate entries following the predefined entry schema for each task; AGGREGATE merges recurring patterns across tasks and removes instance-specific details; and UPDATE adds, merges, refines, or deletes entries relative to . Let denote the retained contrastive groups and their privileged training-time verifier information. The update is
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 5
All three stages use LLM calls to the same base model used by the task agent and evolver. After the final batch, the resulting Meta-Skill is frozen for deployment, where it guides edits selected from evidence in each active run.
3.3 Deployment Component: Frozen Knowledge and Task-Local Edits
Challenge: reuse without contamination. At deployment, the evolver receives no held-out verifier feedback to confirm whether a task-local edit helped the active run. An edit motivated by one task's trajectory may also be inappropriate for another, so carrying it forward risks imposing task-specific changes on unrelated runs. We therefore reuse the offline Meta-Skill but reset the harness to the same at the start of every new run.
Freeze globally, adapt locally. At deployment, the learned Meta-Skill is frozen, and every run starts from the same seed harness . At checkpoint , the evolver decides an edit conditioned on both and active-run evidence: . This extends equation 1 by explicitly conditioning on the reusable knowledge learned offline. The checkpoint interface remains unchanged: KEEP leaves the harness unchanged, while EVOLVE applies and resumes the task agent with the same environment state and partial trajectory, as described in Section 3.1. Each edit affects only the remainder of the active run and is discarded when that run ends. Online decisions, task-specific edits, and outcomes are not written back to ; neither held-out verifier feedback nor an LLM-as-a-judge signal is used to update it. The next run therefore reuses the same Meta-Skill and starts again from , carrying over evolution knowledge but none of the preceding run's harness edits.
4. Experiments
We organize the evaluation around four questions. RQ1 asks whether Meta improves held-out task performance. RQ2 examines whether the offline cost of precomputing reusable evolution knowledge is justified when reused at deployment. RQ3 studies the tradeoff between checkpoint responsiveness and online cost. RQ4 identifies which method components account for the gains.
4.1 Experimental Setup
Benchmarks and metrics. We evaluate Meta on two challenging long-horizon benchmarks: Terminal-Bench 2.1 [32] and DeepSWE 1.1 [12]. We randomly split each benchmark into training and test sets at a 1:2 ratio. We report mean@5 over five independent runs on every held-out Terminal-Bench task and mean@3 over three independent runs on every held-out DeepSWE task. Appendix C.1 provides dataset splits and evaluation details.
Baselines. We compare Meta against three groups of baselines: (1) human-designed harnesses: NexAU [33], Codex CLI [36], mini-swe-agent [49], Pi agent [5], and DeepSeek Harness [3]; (2) self-evolution methods: ACE [61], Training-free GRPO [2], and ReasoningBank [38]; and (3) harness-evolution methods: AHE [24], Meta-Harness [20], and Continual Harness [18]. All self-evolution and harness-evolution methods start from the same NexAU seed harness, denoted for Meta.
Implementation details. Self-evolution baselines construct their experience libraries on the training split; ReasoningBank and ACE can further update their libraries as test evaluation proceeds. AHE uses best-of-two proposals for five iterations, while Meta-Harness uses one proposal per iteration for ten iterations. Both deploy the harness with the highest training score at test-time. Continual Harness starts from its training-evolved harness and retains edits made during test evaluation, whereas Meta starts every run from with a frozen Meta-Skill. No method that adapts at test time is allowed to observe held-out verifier outcomes. Appendix C.2 gives the detailed full settings.
LLM backbones. Our primary experiments use GPT-5.6-Terra [37] with medium reasoning effort. We additionally evaluate Terminal-Bench 2.1 with DeepSeek-V4-Flash-0731 [4] at high reasoning effort. Within each backbone setting, all agent roles across all compared systems use the same underlying model. We route all calls through one LiteLLM proxy and compute cost from the per-call charges in its response headers.
all@purpose
Meta: Reusable knowledge for harness evolution • 6
Table 1. Main performance and cost comparison. Results with GPT-5.6-Terra (medium reasoning) on Terminal-Bench 2.1 (mean@5) and DeepSWE 1.1 (mean@3). Parentheses report the point change from the NexAU seed; costs are aggregate US dollars over each evaluation.
| 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 |
| Pi agent | 69.00 | - | 37.98 | 37.98 | 39.11 | - | 82.50 | 82.50 |
| DeepSeek Harness | 68.00 | - | 31.90 | 31.90 | 34.22 | - | 41.37 | 41.37 |
| Self-Evolution Methods | ||||||||
| ReasoningBank | 68.00(+1.67) | 16.04 | 55.60 | 71.64 | 33.33(-1.34) | 55.87 | 85.64 | 141.51 |
| ACE | 71.33(+5.00) | 81.55 | 64.09 | 145.64 | 32.00(-2.67) | 238.10 | 82.29 | 320.39 |
| TF-GRPO | 74.67(+8.34) | 92.55 | 42.62 | 135.17 | 36.44(+1.77) | 322.50 | 86.16 | 408.66 |
| Harness-Evolution Methods | ||||||||
| AHE | 70.67(+4.34) | 209.44 | 38.91 | 248.35 | 34.67(0.00) | 793.48 | 69.41 | 862.89 |
| Meta-Harness | 73.33(+7.00) | 160.51 | 38.34 | 198.85 | 37.33(+2.66) | 781.56 | 89.19 | 870.75 |
| Continual Harness | 72.67(+6.34) | 28.75 | 83.48 | 112.23 | 33.78(-0.89) | 46.11 | 155.61 | 201.72 |
| Meta² | 81.00(+14.67) | 110.19 | 64.72 | 174.91 | 44.44(+9.77) | 238.52 | 129.34 | 367.86 |
4.2 RQ1: Does Meta² Improve Task Performance?
Primary comparison. With GPT-5.6-Terra, Meta² achieves the highest performance point estimate among evaluated methods on both benchmarks, reaching 81.00% on Terminal-Bench 2.1 and 44.44% on DeepSWE 1.1 as shown in Table 1. These correspond to gains of 14.67 and 9.77 percentage points over the shared NexAU seed harness, compared with 7.00 and 2.66 points for Meta-Harness, the strongest harness-evolution baseline. All evolution-based methods improve over the seed on Terminal-Bench. On DeepSWE, however, ReasoningBank, ACE, and Continual Harness fall below the seed, while AHE only matches it. In contrast, Meta² still retains a 9.77-point improvement, suggesting that condition C can supply useful training examples on difficult tasks where other evolution methods fail to improve.
Robustness across backbones. Table 2 repeats the Terminal-Bench evaluation with DeepSeek-V4-Flash-0731 as the backbone. Meta² again achieves the highest performance, reaching 77.67% and outperforming the shared NexAU seed and Continual Harness by 7.67 and 3.00 percentage points, respectively. The three self-evolution baselines score below the seed; AHE and Meta-Harness improve by 1.33 and 1.00 points, while Continual Harness improves by 4.67 points. We construct a separate Meta-Skill for each backbone, so this experiment evaluates robustness across backbones rather than zero-shot transfer of a frozen Meta-Skill between models.
4.3 RQ2: Is Precomputation Cost-Effective When Reused?
Cost comparison. Table 1 separates one-time offline construction cost from online deployment cost. Compared with the offline harness-evolution methods AHE and Meta-Harness, Meta² achieves higher performance at lower full cost on both benchmarks. Its full costs are 367.86 on DeepSWE, compared with 862.89 for AHE, and 870.75 for Meta-Harness. With the highest observed performance among evaluated methods, Meta² lies on the performance-cost Pareto frontier on both benchmarks, as shown in Figure 9 in Appendix E.2.
Reusable precomputation. Compared with Continual Harness, another online harness evolution method, Meta² incurs higher offline construction costs: 28.75 on Terminal-Bench 2.1 and 46.11 on DeepSWE 1.1. However, it achieves higher performance at lower online costs: 83.48 and $129.34
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 7
Table 2. Robustness across backbones. Terminal-Bench 2.1 test-set results with DeepSeek-V4-Flash-0731 (high reasoning), reported as mean@5. Parentheses report the point change from the NexAU seed; costs are aggregate US dollars over each evaluation.
| 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 |
| Harness-Evolution Methods | ||||
| AHE | 71.33(+1.33) | 123.51 | 20.28 | 143.79 |
| Meta-Harness | 71.00(+1.00) | 99.55 | 19.49 | 119.04 |
| Continual Harness | 74.67(+4.67) | 2.84 | 35.98 | 38.82 |
| Meta² | 77.67(+7.67) | 81.90 | 33.51 | 115.41 |
versus $155.61, respectively. The offline construction cost is a one-time investment: the resulting Meta-Skill can be reused across subsequent tasks and runs without reconstruction, so additional deployments incur only online cost. The construction cost is therefore amortized over a larger workload as the Meta-Skill is reused.
4.4 RQ3: How Does Checkpoint Frequency Trade Responsiveness for Cost?
Checkpoint-interval sensitivity. Figure 3 varies the fixed checkpoint interval on Terminal-Bench 2.1. A moderate interval of achieves the highest performance (81.00%) and the best observed performance-cost balance, at an online cost of L = 3L = 174.2283.4159.10 atL$, showing that its advantage is robust to the checkpoint schedule.

Figure 3. Checkpoint-interval sensitivity. Performance on Terminal-Bench 2.1 versus log-scaled online cost.
4.5 RQ4: Which Components Produce the Gains?
Component contributions. Figure 4 compares five settings. The first four compare the task agent alone, the task agent with an online evolver without any distilled knowledge, and the two-agent system with either a self-distilled or contrastive Meta-Skill. Their Terminal-Bench/DeepSWE scores are 66.33/34.67, 74.67/36.44, 77.00/35.56, and 81.00/44.44, respectively. Adding the online evolver improves performance on both benchmarks, while the self-distilled Meta-Skill improves Terminal-Bench but slightly reduces DeepSWE performance. Contrastive Meta-Skill learning improves over self-distillation by 4.00 and 8.88 percentage points, respectively, highlighting its value particularly on harder tasks.
Resetting between tasks. The fifth setting starts each new task from the harness produced by the preceding task, retaining all online edits rather than resetting to . Performance falls from 81.00% to 78.33% on Terminal-Bench and from 44.44% to 39.11% on DeepSWE. Online edits are derived from the trajectory of the active task and may therefore encode task-specific interventions that do not transfer to the next task. These results support reusing the frozen Meta-Skill while resetting the harness for each new task, so that task-specific edits remain local to the run that produced them.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 8


Figure 4. Component ablations. The first four settings evaluate the online evolver and two Meta-Skill construction methods. The fifth retains online edits across tasks instead of resetting to .
5. Related Work
Offline harness evolution. Using the taxonomy in Section 2 and Appendix Table 7, we group prior work by edit selection time. Offline methods optimize the system around a frozen model on training tasks and deploy the result as a fixed artifact. Early work optimizes prompts and LM pipelines [1, 19, 48, 56], and later work searches over code-defined agent systems and workflows [11, 60]. For long-horizon agents, recent methods evolve the harness itself: they rewrite the scaffold [59], propose harnesses from prior code, scores, and traces [20], tie edits to checkable predictions [24], or retain regression-tested edits [58]. Analyses suggest that many of these gains compensate for recoverable execution defects of the underlying model [50]. In all cases, the deployed harness is shared across held-out runs and cannot react to evidence revealed during a run. Meta also learns from completed training runs, but it freezes reusable evolution knowledge rather than a harness, so the same can support different edits in runs.
Online harness evolution: pre-run and after-run. Pre-run methods adapt the harness once the target task is known but before execution begins; for example, JIT-Agent synthesizes a task-specific harness for each incoming task [57]. After-run methods adapt from completed attempts. Reflexion [40] and Harness-R1 [39] use feedback or failure trajectories to improve later attempts on the same task, while Dynamic Cheatsheet, ACE, and TTHE update memory, guidance, or harness programs over a stream of tasks [34, 42, 61]. In both settings, the edit either precedes the evidence that execution reveals or benefits only later attempts or tasks, and after-run selection often relies on completed-run feedback or proxy signals. Meta instead edits the run in which the evidence appears, without observing that run's verifier outcome.
Online harness evolution: within-run. The closest setting adapts the harness during an uninterrupted run. Continual Harness refines prompts, skills, and memory inside a reset-free episode [18]; PILOT uses a supervisor to steer an active worker [47]; and Live-SWE-agent modifies its own tools while solving a task [46]. These systems show that within-run adaptation is feasible and useful, but they decide when and how to intervene without guidance. Meta supplies this guidance. Offline, A/B/C outcome contrasts produce a textual Meta-Skill that records when to act, hold, or avoid an intervention. Online, an evolver applies this frozen knowledge to the active run without held-out verifier feedback. Table 6 and 7 in Appendix G summarizes the distinction: Meta is a hybrid that evolves reusable knowledge offline and task-local edits within the run.
6. Conclusion
Meta moves offline optimization one level up, learning reusable knowledge for harness evolution instead of a fixed harness. Offline rollout contrasts produce a Meta-Skill that is frozen at deployment; an online evolver uses it together with active-run evidence to decide harness edits that remain local to each run. Meta achieves 81.00% on Terminal-Bench 2.1 and 44.44% on DeepSWE 1.1 with GPT-5.6-Terra, and 77.67% on Terminal-Bench with DeepSeek-V4-Flash-0731. Ablations support contrastive Meta-Skill learning and resetting the harness between tasks. These results support a simple principle: precompute how to adapt, then adapt locally as the task unfolds.
all@purpose
Meta : Reusable knowledge for harness evolution
7. Acknowledgement
Yuan, Liu, Han and Huang are supported by DARPA HR001124S0029-AIQ-FP-019, National Science Foundation TRAILS Institute (2229885). Private support was provided by Open Philanthropy and Apple. The Authors acknowledge the National Artificial Intelligence Research Resource (NAIRR) Pilot for contributing to this research result.
References
[1] Lakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong, Arnav Singhvi, Herumb Shandilya, Michael J Ryan, Meng Jiang, et al. GEPA: Reflective prompt evolution can outperform reinforcement learning. In International Conference on Learning Representations, volume 2026, pages 8479–8565, 2026.
[2] Yuzheng Cai, Siqi Cai, Yuchen Shi, Zihan Xu, Lichao Chen, Yulei Qin, Xiaoyu Tan, Gang Li, Zongyi Li, Haojia Lin, et al. Training-free group relative policy optimization. arXiv preprint arXiv:2510.08191, 2025.
[3] DeepSeek-AI. DeepSeek Harness: Everything is a plugin. https://github.com/deepseek-ai/deepseek-harness, 2026.
[4] DeepSeek-AI. DeepSeek-V4: Towards highly efficient million-token context intelligence, 2026.
[5] Earendil Inc. Pi: A minimal coding agent harness. https://github.com/arendil-works/pi, 2025. Accessed 2026-09-24.
[6] Jiarun Fu, Lizhong Ding, Sida Chen, Honglei Xin, Chunhui Zhang, Pengqi Li, Qiuning Wei, Ye Yuan, and Guoren Wang. CHILL-Harness: Counterfactual harness learning for efficient reasoning in long-horizon agents. arXiv preprint arXiv:2607.25825, 2026.
[7] Feijiang Han, Jiaming Zhang, Chuyi Deng, Jianheng Tang, and Yunhuai Liu. Can llms handle webshell detection? overcoming detection challenges with behavioral function-aware framework. In Second Conference on Language Modeling (COLM 2025), 2025. URL https://openreview.net/forum?id=QzJRtz8HNx.
[8] Feijiang Han, Hengtao Cui, Licheng Guo, Zelong Wang, and Zhiyuan Lyu. Read before you think: Mitigating llm comprehension failures with step-by-step reading. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2026. URL https://arxiv.org/abs/2504.09402.
[9] Feijiang Han, Zelong Wang, Bowen Wang, Xinxin Liu, Skyler Cheung, Delip Rao, Chris Callison-Burch, and Lyle Ungar. Latex2layout: High-fidelity, scalable document layout annotation pipeline for layout detection. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI-26), 2026. URL https://www.cis.upenn.edu/~ccb/publications/latex2layout.pdf.
[10] Feijiang Han, Xiaodong Yu, Jianheng Tang, Delip Rao, Weihua Du, and Lyle Ungar. Zerotuning: Unlocking the initial token's power to enhance large language models without training. In ICLR 2026, 2026. URL https://arxiv.org/abs/2505.11739.
[11] Shengran Hu, Cong Lu, and Jeff Clune. Automated design of agentic systems. In International Conference on Learning Representations, volume 2025, pages 21344–21377, 2025.
[12] Wenqi Huang, Charley Lee, Leonard Tng, and Serena Ge. DeepSWE: Measuring frontier coding agents on original, long-horizon engineering tasks. arXiv preprint arXiv:2607.07946, 2026.
[13] Yuxuan Jiang and Francis Ferraro. Beyond math: Stories as a testbed for memorization-constrained reasoning in LLMs. In Vera Demberg, Kentaro Inui, and Lluís Marquez, editors, Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5590–5607, Rabat, Morocco, March 2026. Association for Computational Linguistics. ISBN 979-8-89176-380-7. doi: 10.18653/v1/2026.eacl-long.261. URL https://aclanthology.org/2026.eacl-long.261/.
[14] Yuxuan Jiang and Francis Ferraro. Bridging reasoning trajectories in on-policy distillation via near-future guidance, 2026. URL https://arxiv.org/abs/2606.00305.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 10
[15] Yuxuan Jiang and Francis Ferraro. Scribe: Structured mid-level supervision for tool-using language models, 2026. URL https://arxiv.org/abs/2601.03555.
[16] Yuxuan Jiang, Dawei Li, and Francis Ferraro. DRP: Distilled reasoning pruning with mathematical skill-aware step decomposition for efficient large reasoning models. In Maria Liakata, Viviane P. Moreira, Jiajun Zhang, and David Jurgens, editors, Findings of the Association for Computational Linguistics: ACL 2026, pages 4020–4039, San Diego, California, United States, July 2026. Association for Computational Linguistics. ISBN 979-8-89176-395-1. doi: 10.18653/v1/2026.findings-acl.196. URL https://aclanthology.org/2026.findings-acl.196/.
[17] Yuxuan Jiang, Runchao Li, Shubhashis Roy Dipta, Dawei Li, and Zhao Yang. Cornerstones or stumbling blocks? deciphering the rock tokens in on-policy distillation, 2026. URL https://arxiv.org/abs/2605.09253.
[18] Seth Karten, Joel Zhang, Tersoo Upaa Jr, Ruirong Feng, Wenzhe Li, Chengshuai Shi, Chi Jin, and Kiran Vodrahalli. Continual harness: Online adaptation for self-improving foundation agents. arXiv preprint arXiv:2605.09998, 2026.
[19] Omar Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Sri Vardhamanan, Saiful Haq, Ashutosh Sharma, Thomas T Joshi, Hanna Moazam, et al. DSPy: Compiling declarative language model calls into self-improving pipelines. arXiv preprint arXiv:2310.03714, 2023.
[20] Yoonho Lee, Roshen Nair, Qizheng Zhang, Kangwook Lee, Omar Khattab, and Chelsea Finn. Meta-Harness: End-to-end optimization of model harnesses. arXiv preprint arXiv:2603.28052, 2026.
[21] Xinjin Li, Yudi Xia, Xi Zhao, Yiliu Xu, Yining Liu, Cheng Lu, Yujian Long, Yu Ma, Jinghan Cao, Liang Fan, and Yeyun Xu. Grace: Grounded reasoning via adapter composition and evidence-aware calibration for educational visual question answering, 2026. URL https://arxiv.org/abs/2608.19355.
[22] Zhongyuan Liang, Arvind Suresh, and Irene Y. Chen. Revealing treatment non-adherence bias in clinical machine learning using large language models, 2025. URL https://arxiv.org/abs/2502.19625.
[23] Zhongyuan Liang, Zachary T. Rewolinski, Abhineet Agarwal, Tiffany M. Tang, and Bin Yu. Local mdi+: Local feature importances for tree-based models, 2026. URL https://arxiv.org/abs/2506.08928.
[24] Jiahang Lin, Shichun Liu, Chengjun Pan, Lizhi Lin, Shihan Dou, Zhiheng Xi, Xuanjing Huang, Hang Yan, Zhenhua Han, Tao Gui, et al. Agentic harness engineering: Observability-driven automatic evolution of coding-agent harnesses. arXiv preprint arXiv:2604.25850, 2026.
[25] Mingchao Liu, Yu Sun, Ruixiao Sun, Xin Dong, Xiang Shen, Hongwei Wang, Hongyu Xiong, and Yang Song. IPS: In-prompt process supervision for short video content moderation. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 6: Industry Track), pages 1277–1288. ISBN 979-8-89176-394-4. doi: 10.18653/v1/2026.acl-industry.89. URL https://aclanthology.org/2026.acl-industry.89/.
[26] Ryan Lopopolo. Harness engineering: Leveraging Codex in an agent-first world. https://openai.com/index/harness-engineering/, February 2026. OpenAI Blog. Accessed: 2026-09-28.
[27] Shuo Lu, Yanyin Chen, Wei Feng, Jiahao Fan, Fengheng Li, Zheng Zhang, Jingjing Lv, Junjie Shen, Ching Law, and Jian Liang. Uni-layout: Integrating human feedback in unified layout generation and evaluation. In Proceedings of the 33rd ACM International Conference on Multimedia, pages 7709–7718, 2025.
[28] Shuo Lu, Yingsheng Wang, Lijun Sheng, Lingxiao He, Aihua Zheng, and Jian Liang. Out-of-distribution detection: A task-oriented survey of recent advances. ACM Computing Surveys, 58(2):1–39, 2025.
[29] Shuo Lu, Haohan Wang, Wei Feng, Weizhen Wang, Shen Zhang, Yaoyu Li, Ao Ma, Zheng Zhang, Jingjing Lv, Junjie Shen, et al. One size, many fits: Aligning diverse group-wise click preferences in large-scale advertising image generation. In Proc. CIKM, 2026.
[30] Shuo Lu, Yinuo Xu, Kecheng Yu, Siru Jiang, Yongcan Yu, Yubin Wang, Haitao Yang, Yuxiang Zhang, Bin Wang, Ran He, et al. Worldcoder-bench: Benchmarking physically grounded 3d world synthesis. arXiv preprint arXiv:2606.01869, 2026.
[31] George Ma, Zhongyuan Liang, Irene Y. Chen, and Somayeh Sojoudi. Do sparse autoencoders identify reasoning features in language models?, 2026. URL https://arxiv.org/abs/2601.05679.
[32] Mike Merrill, Alexander Shaw, Nicholas Carlini, Boxuan Li, Harsh Raj, Ivan Bercovich, Lin Shi, Jeong Shin, Thomas Walshe, E Kelly Buchanan, et al. Terminal-Bench: Benchmarking agents on hard, realistic tasks
all@purpose
Meta : Reusable knowledge for harness evolution in command line interfaces. In International Conference on Learning Representations, volume 2026, pages 40903–40986, 2026.
[33] nex-agi. NexAU: A general-purpose agent framework. https://github.com/nex-agi/NexAU, 2025. Version 0.4.1. Accessed 2026-09-24.
[34] Jun Nie, Yonggang Zhang, Jun Song, Qianshu Cai, Dahai Yu, Yike Guo, Xinmei Tian, and Bo Han. TTHE: Test-time harness evolution. arXiv preprint arXiv:2607.08124, 2026.
[35] Xuying Ning, Katherine Tieu, Dongqi Fu, Tianxin Wei, Zihao Li, Yuanchen Bei, Jiaru Zou, Mengting Ai, Zhining Liu, Ting-Wei Li, et al. Code as agent harness. arXiv preprint arXiv:2605.18747, 2026.
[36] OpenAI. Codex: A lightweight coding agent that runs in your terminal. https://github.com/openai/codex, 2025. GitHub repository. Accessed: 2026-09-25.
[37] OpenAI. GPT-5.6. https://openai.com/index/gpt-5-6/, 7 2026. GPT-5.6 Terra variant.
[38] Siru Ouyang, Jun Yan, I Hsu, Yanfei Chen, Ke Jiang, Zifeng Wang, Rujun Han, Long Le, Samira Daruki, Xiangru Tang, et al. ReasoningBank: Scaling agent self-evolving with reasoning memory. In International Conference on Learning Representations, volume 2026, pages 94327–94354, 2026.
[39] Shuai Shao, Kangning Zhang, Qingyao Li, Shijian Wang, Hao Wang, Wenxiang Jiao, Yuan Lu, Yi Guo, Weiwen Liu, and Weinan Zhang. Harness-R1: Learning to edit executable runtime harnesses from agent failure trajectories. arXiv preprint arXiv:2608.02276, 2026.
[40] Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. Advances in neural information processing systems, 36: 8634–8652, 2023.
[41] Yu Sun, Yin Li, Ruixiao Sun, Chunhui Liu, Fangming Zhou, Ze Jin, Linjie Wang, Xiang Shen, Zhuolin Hao, and Hongyu Xiong. Audio-enhanced vision-language modeling with latent space broadening for high quality data expansion. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2, KDD '25, page 4872–4881. Association for Computing Machinery, 2025. ISBN 9798400714542. doi: 10.1145/3711896.3737195. URL https://doi.org/10.1145/3711896.3737195.
[42] Mirac Suzgun, Mert Yuksekgonul, Federico Bianchi, Dan Jurafsky, and James Zou. Dynamic cheatsheet: Test-time learning with adaptive memory. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7080–7106, 2026.
[43] Yinjie Wang, Ling Yang, Guohao Li, Mengdi Wang, and Bryon Aragam. Scoreflow: Mastering llm agent workflows via score-based preference optimization. arXiv preprint arXiv:2502.04306, 2025.
[44] Zixuan Wang, Yu Sun, Hongwei Wang, Baoyu Jing, Xiang Shen, Xin Dong, Zhuolin Hao, Hongyu Xiong, and Yang Song. Reasoning-enhanced domain-adaptive pretraining of multimodal large language models for short video content governance. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 1104–1112. Association for Computational Linguistics. ISBN 979-8-89176-333-3. doi: 10.18653/v1/2025.emnlp-industry.77. URL https://aclanthology.org/2025.emnlp-industry.77/.
[45] Lilian Weng. Harness engineering for self-improvement. lilianweng.github.io, July 2026. URL https://lilian weng.github.io/posts/2026-07-04-harness/.
[46] Chunqiu Steven Xia, Zhe Wang, Yan Yang, Yuxiang Wei, and Lingming Zhang. Live-swe-agent: Can software engineering agents self-evolve on the fly? arXiv preprint arXiv:2511.13646, 2025.
[47] Yang Xiao, Yusong Sun, Haoyi Wu, Wenyang Hui, Wen Da, Zhaokai Luo, Mu Chuan, Yao Hu, Wenjie Li, and Chengyue Jiang. PILOT in the loop: Live self-improvement for long-horizon agents. arXiv preprint arXiv:2608.26530, 2026.
[48] Chengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V Le, Denny Zhou, and Xinyun Chen. Large language models as optimizers. In International Conference on Learning Representations, volume 2024, pages 12028–12068, 2024.
[49] John Yang, Carlos Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. Swe-agent: Agent-computer interfaces enable automated software engineering. Advances in Neural Information Processing Systems, 37:50528–50652, 2024.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 12
[50] Siqi Yang, Qianlan Yang, Yu-Xiong Wang, Saurabh Pujar, and Martin Hirzel. One recipe, many harnesses: What self-evolution encodes across languages and models. arXiv preprint arXiv:2608.10178, 2026.
[51] Justin Young. Effective harnesses for long-running agents. https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents, November 2025. Anthropic Engineering Blog. Accessed: 2026-09-28.
[52] Fangxu Yu, Xingang Guo, Lingzhi Yuan, Haoqiang Kang, Hongyu Zhao, Lianhui Qin, Furong Huang, Bin Hu, and Tianyi Zhou. Tsrbench: A comprehensive multi-task multi-modal time series reasoning benchmark for generalist models. arXiv preprint arXiv:2601.18744, 2026.
[53] Fangxu Yu, Weijia Xu, Michael Xu, Tianyi Zhou, and Zinan Lin. Weak-to-strong on-policy distillation. arXiv preprint arXiv:2607.26246, 2026.
[54] Lingzhi Yuan, Chenghao Deng, Fangxu Yu, Souradip Chakraborty, Mohammad Rostami, and Furong Huang. Flowbank: Query-adaptive agentic workflows optimization through precompute-and-reuse. arXiv preprint arXiv:2606.11290, 2026.
[55] Lingzhi Yuan, Xinfeng Li, Chejian Xu, Guanhong Tao, Xiaojun Jia, Yihao Huang, Wei Dong, Yang Liu, and Bo Li. Promptguard: Soft prompt-guided unsafe content moderation for text-to-image models. IEEE Transactions on Information Forensics and Security, 2026.
[56] Mert Yuksekgonul, Federico Bianchi, Joseph Boen, Sheng Liu, Zhi Huang, Carlos Guestrin, and James Zou. TextGrad: Automatic “differentiation” via text. arXiv preprint arXiv:2406.07496, 2024.
[57] Guibin Zhang, Leo Lu, Fangzhou Xie, Kang Zhu, Junhao Wang, Zhifei Xie, Zhaochen Yu, Zihang Liu, Zhongxiang Sun, Qiankun Li, et al. JIT-Agent: Scaling harness intelligence via just-in-time harness evolution. arXiv preprint arXiv:2608.25593, 2026.
[58] Hangfan Zhang, Shao Zhang, Kangcong Li, Chen Zhang, Yang Chen, Yiqun Zhang, Lei Bai, and Shuyue Hu. Self-harness: Harnesses that improve themselves. arXiv preprint arXiv:2606.09498, 2026.
[59] Jenny Zhang, Shengran Hu, Cong Lu, Robert Lange, and Jeff Clune. Darwin gödel machine: open-ended evolution of self-improving agents. In International Conference on Learning Representations, volume 2026, pages 104223–104294, 2026.
[60] Jiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng, Xionghui Chen, Jiaqi Chen, Mingchen Zhuge, Xin Cheng, Sirui Hong, Jinlin Wang, et al. AFlow: Automating agentic workflow generation. In International Conference on Learning Representations, volume 2025, pages 34040–34077, 2025.
[61] Qizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma, Fenglu Hong, Vamsidhar Kamanuru, Jay Rainton, Chen Wu, Mengmeng Ji, Hanchen Li, et al. Agentic context engineering: Evolving contexts for self-improving language models. In International Conference on Learning Representations, volume 2026, pages 86069–86100, 2026.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 13
APPENDIX OUTLINE
This appendix provides notation, algorithmic specifications, experimental details, and supplementary evidence for Meta². It also presents case studies, additional discussion, a comparison of evolution regimes, and the prompts and Meta-Skills used by the system.
A Notation ..... 15 B Algorithmic Details ..... 15 B.1 Offline Meta-Skill Construction ..... 15 B.2 Online Checkpoint Evolution ..... 16 C Detailed Experimental Setup ..... 18 C.1 Datasets and Splits ..... 18 C.2 Baselines and Setup ..... 18 C.3 Implementation Details of Meta² ..... 19 D Case Study ..... 19 E Supplementary Experiment Results ..... 22 E.1 Mean and Standard Deviation Across Repeated Runs ..... 22 E.2 Cost-Performance Pareto Frontier ..... 22 F Additional Discussion ..... 22 F.1 Limitations ..... 22 F.2 Broader Impact and Safety ..... 23 F.3 Future Directions ..... 24 G Evolution Regimes and Related-Work Comparison ..... 24 H Prompt and Output Templates ..... 25 H.1 Prompt for Online Evolver ..... 25 H.2 Shared System Prompt for Offline Stages ..... 28 H.3 Prompt for REFLECT ..... 28 H.4 Prompt for AGGREGATE ..... 33 H.5 Prompt for UPDATE ..... 34 I Meta-Skill Structure and Content ..... 37 I.1 Entry Structure ..... 37 I.2 Content of Meta-Skills ..... 37
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 14
A. Notation
Table 3 summarizes the core notation used in the main text and Appendix B.
Table 3. Core notation used in the main text.
| 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 . | |
| Evolver policy. | |
| Newly accumulated trajectory at checkpoint . | |
| Permitted read-only workspace observations at checkpoint . | |
| Status of the preceding edit: loaded, retained, or rolled back. | |
| Accumulated evolver information at checkpoint . | |
| Harness edit proposed at decision . | |
| KEEP or EVOLVE() decision. | |
| Meta-Skill after offline batch . | |
| Rollout records for task under condition . | |
| Retained contrastive groups in offline batch . | |
| Checkpoint interval. |
B. Algorithmic Details
This appendix specifies the offline Meta-Skill construction procedure and the online checkpoint evolution loop described in Section 3. Prompt templates are provided separately in Appendix H.
B.1 Offline Meta-Skill Construction
For each training task , let denote the rollout records under condition , including trajectories, terminal verifier outcomes, and intervention logs when applicable. Condition A uses the task agent alone; condition B uses an evolver guided by the current Meta-Skill; and condition C uses an evolver with privileged training-time verifier information. Condition-A and condition-C records are collected once and reused, whereas condition-B records are collected with for batch .
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 15
Algorithm 1. Offline construction of reusable evolution knowledge
Require: Training batches ; seed harness ; fixed task agent, evolver, checkpoint interface, and edit channels Ensure: Frozen Meta-Skill
1: 2: for do 3: 4: for all do 5: Load fixed records and 6: Collect using 7: Exclude condition-C rollouts that fail the verifier-leakage audit 8: 9: 10: end for 11: 12: for all retained task-direction groups do 13: 14: end for 15: 16: 17: end for 18: Run training-only misfire, provenance, and leakage audits 19: Freeze 20: return
Contrast construction. BUILDCONTRASTS forms five outcome-conditioned directions: B-pass/A-fail and C-pass/B-fail provide act evidence; B-fail/A-pass and C-fail/B-pass provide avoid evidence; and A-pass/B-pass provides hold evidence. These contrasts provide directional evidence for candidate lessons, without identifying the causal effect of an individual checkpoint decision. Condition-C rollouts are excluded if privileged verifier information is passed to the task agent.
Reflection, aggregation, and update. For each retained group , denotes the privileged training-time verifier information associated with its task. REFLECT writes candidate entries following the predefined Meta-Skill schema. AGGREGATE groups entries by observable trigger, removes instance-specific details, and requires support from at least two distinct tasks. UPDATE adds, merges, refines, or deletes entries while preserving provenance. The resulting Meta-Skill is frozen before held-out evaluation.
B.2 Online Checkpoint Evolution
Every held-out run starts from the same seed harness and frozen Meta-Skill . Checkpoints follow the configured schedule with interval , and a completion claim triggers a terminal checkpoint. The evolver retains its checkpoint conversation within the active run, but receives neither held-out verifier contents nor verifier outcomes.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 16
Algorithm 2. Online evolution with a frozen Meta-Skill
Require: Public task instruction and environment ; seed harness ; frozen Meta-Skill ; checkpoint interval ; task and send-back budgets
Ensure: Final task artifact and intervention log 1: Initialize task agent with 2: Initialize evolver with and an empty checkpoint conversation 3: 4: while task budget remains do 5: Advance the same task-agent run to the next checkpoint 6: 7: Collect and permitted workspace observations 8: if the task agent claims completion then 9: Append automatically collected artifact and process state to 10: end if 11: if then 12: 13: else 14: Collect preceding-edit status 15: 16: end if 17: 18: 19: if then 20: if the task agent claims completion then 21: Accept the artifact and break 22: end if 23: else 24: Extract from 25: if the task agent claims completion and no send-back budget remains then 26: Record budget exhaustion and break 27: end if 28: if satisfies the edit contract then 29: 30: if the task agent claims completion then 31: Consume one send-back and reopen the same run for additional work 32: end if 33: else 34: Record edit rejection 35: end if 36: end if 37: Continue with the same environment and accumulated trajectory 38: end while 39: Record the final artifact, harness versions, checkpoint decisions, and costs 40: return Final artifact and intervention log
Decision and edit semantics. DECIDE denotes the evolver's top-level KEEP or EVOLVE( ) decision, conditioned on the current harness, accumulated checkpoint evidence, and frozen Meta-Skill. The edit contract specifies the supporting evidence, target, content, channel, lifetime, validation, and rollback behavior. An edit that fails validation is rejected without changing the harness.
Continuation and isolation. Accepted edits are applied through a bounded notice, instruction update, hook, or tool channel. A terminal KEEP accepts the artifact; a valid terminal EVOLVE applies a correction and returns the task agent to the same run, subject to the send-back budget. Neither ordinary checkpoints nor terminal send-backs reset the environment or discard accumulated progress. Harness edits and checkpoint conversations remain local to the run and are discarded afterward. The Meta-Skill is never updated online, and the held-out verifier is used only for evaluation after termination.
all@purpose
Meta : Reusable knowledge for harness evolution
C. Detailed Experimental Setup
C.1 Datasets and Splits
We evaluate on Terminal-Bench 2.1 [32] and DeepSWE 1.1 [12], which assess terminal-based task execution and repository-level software engineering, respectively. Their main characteristics are summarized below.
-
Terminal-Bench 2.1. This benchmark contains 89 tasks requiring agents to complete complex workflows in containerized command-line environments. Tasks span software engineering, system administration, data processing, model training, security, and scientific computing. Each task provides an instruction, an execution environment, and automated verification of the resulting artifacts or system state.
-
DeepSWE 1.1. This benchmark contains 113 original software-engineering tasks across 91 open-source repositories in TypeScript, Go, Python, JavaScript, and Rust. Tasks require agents to understand existing codebases and implement changes such as new features, bug fixes, and extensions to existing interfaces. Hand-written verifiers assess software behavior rather than requiring a particular implementation.
For each benchmark, we randomly partition the tasks into training and test sets at an approximately 1:2 ratio and fix these splits across all methods and backbone settings. Table 4 reports the number of tasks in each split. Offline construction of experience libraries, evolved harnesses, and Meta-Skills uses only the corresponding training split. Held-out verifier contents and outcomes are unavailable to methods during test-time execution.
Evaluation protocol. We perform five independent runs per held-out Terminal-Bench task and three per held-out DeepSWE task, reporting mean@5 and mean@3, respectively. For each task, we average its binary verifier outcomes across repeated runs and then average these task-level scores over the test set. This yields 300 evaluated runs per method on Terminal-Bench and 225 on DeepSWE within each backbone setting. All methods within a benchmark/backbone setting use the same held-out tasks and repetition count.
Execution environment. Task execution takes place in cloud-based sandboxes provisioned through E2B. These sandboxes host the task environments and workspaces in which agents execute commands, inspect files, and produce task artifacts. For Meta², checkpoint interventions and terminal send-backs continue within the same sandbox, preserving the active environment state and accumulated task progress.
Table 4. Task counts and evaluation repetitions for each benchmark.
| Benchmark | Training tasks | Test tasks | Runs per test task |
|---|---|---|---|
| Terminal-Bench 2.1 | 29 | 60 | 5 |
| DeepSWE 1.1 | 38 | 75 | 3 |
C.2 Baselines and Setup
We compare against three groups of baselines: human-designed harnesses (NexAU [33], Codex CLI [36], mini-swe-agent [49], Pi agent [5], and DeepSeek Harness [3]), self-evolution methods (ReasoningBank [38], ACE [61], and TF-GRPO [2]), and harness-evolution methods (AHE [24], Meta-Harness [20], and Continual Harness [18]). All self-evolution and harness-evolution methods start from the same NexAU seed harness.
Training-time construction. ACE, TF-GRPO, AHE, and Meta-Harness use five rollouts per training task for experience collection or candidate evaluation. AHE uses best-of-two candidate proposals for five iterations on each benchmark. Meta-Harness proposes one candidate per iteration for ten iterations. Both AHE and Meta-Harness evaluate each candidate with five trials per training task and deploy the harness with the highest training score. ReasoningBank and Continual Harness do not originally include a separate offline training stage. To give them access to the same training split, we add a pre-deployment stage in which ReasoningBank accumulates experience and Continual Harness refines its harness on training tasks. Both methods use one rollout per training task and process training tasks in windows of eight. Their resulting experience library or evolved harness initializes test-time evaluation.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 18
Test-time adaptation and persistence. ACE and ReasoningBank continue updating their experience libraries as test evaluation proceeds, retaining these updates across runs. Continual Harness likewise continues refining its harness and retains its edits across runs, including edits accumulated during the training stage. Its refinement schedule uses a 25-step warmup, followed by refinement every 25 steps through step 200 and every 100 steps thereafter, with each refinement conditioned on the most recent 50 steps. TF-GRPO, AHE, and Meta-Harness freeze their learned artifacts after training and perform no further evolution during test evaluation. In contrast, Meta² reuses a frozen Meta-Skill but resets the task-agent harness to at the start of every run. Its online harness edits affect only the active run and are discarded afterward. No method that adapts at test time can access held-out verifier contents or outcomes.
C.3 Implementation Details of Meta²
Offline Meta-Skill construction. For each benchmark/backbone setting, we construct a separate Meta-Skill using only the corresponding training split and freeze it before evaluation. The task agent and evolver use the same frozen language model, and offline optimization changes only the Meta-Skill while holding the seed harness, checkpoint interface, and edit channels fixed. We collect rollouts under three conditions: task-agent-only execution (A), evolution guided by the current Meta-Skill (B), and evolution with privileged training-time verifier information (C). The condition-C evolver is instructed not to pass privileged verifier information to the task agent, and rollouts that fail the subsequent leakage audit are excluded from contrast construction. Outcome-conditioned A-B and B-C comparisons provide directional evidence for candidate act, hold, and avoid entries. These entries are reflected from task-level contrasts, aggregated across tasks, and used to update the Meta-Skill through the procedure in Appendix B.1.
Online execution. Every test run starts from the same NexAU seed harness and the frozen Meta-Skill constructed for its benchmark/backbone setting. The evolver is first called immediately after the task agent's first step, providing an early opportunity to guide execution and avoid unnecessary subsequent exploration. Regular checkpoints use a five-step interval, and a terminal checkpoint is triggered when the task agent stops calling tools and prepares to submit its result. At each checkpoint, the evolver receives the newly accumulated trajectory delta, permitted read-only workspace observations, and, after the first checkpoint, the preceding-edit status. It retains its checkpoint conversation within the active run and chooses KEEP or EVOLVE conditioned on this accumulated evidence and the frozen Meta-Skill. Available edit channels are a one-turn notice, a persistent instruction update, a read-only hook, and an added tool. At the terminal checkpoint, the evolver additionally receives mechanically collected state for task-referenced paths, created or modified files, newly listening TCP ports, and processes started during the run that remain alive. A terminal KEEP accepts the artifact, whereas EVOLVE applies a bounded correction and sends the task agent back for additional work, subject to a bounded send-back budget. All interventions continue within the same task-agent run and sandbox, preserving the environment state and accumulated trajectory. Harness edits and checkpoint conversations are discarded when the run ends. Test-time trajectories, edits, and outcomes never update the Meta-Skill, and held-out verifier contents and outcomes remain unavailable to the evolver.
D. Case Study
Each figure compares two runs of the same task: one with an evolver operating without a Meta-Skill and one with an evolver guided by the learned Meta-Skill. Both runs use the same initial task-agent harness, language model (GPT-5.6 Terra), and checkpoint schedule, with an initial checkpoint after the first agent step, regular checkpoints every five agent steps, and a terminal checkpoint before submission. Each lane spans the observed number of task-agent steps, and checkpoint markers indicate KEEP or EVOLVE. The latter includes notices, persistent instruction or hook updates, tool additions, and terminal send-backs. Figures 5–8 illustrate the three Meta-Skill entry types: act, where guidance supports an early or mid-run intervention; avoid, where guidance discourages a particular intervention; and hold, where guidance supports leaving the harness unchanged. Entry identifiers are specific to each benchmark's Meta-Skill.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 19 act configure-git-webserver
Task: configure a server so that pushing hello.html makes curl http://server:8080/hello.html return "hello world".

Figure 5. Early intervention guided by an act entry (Terminal-Bench 2.1). The task requires a Git push to deploy hello.html to a web server on port 8080. At the first checkpoint, the evolver without Meta-Skill specifies an implementation and requests validation only "where feasible." The task agent tests in a temporary sandbox but does not run the installer in the task environment; the evolver accepts the result despite the missing /git/server directory and inactive service. With Meta-Skill, entry E-02 guides the evolver to require end-to-end evidence: a clone, commit, and push followed by a fresh HTTP request confirming that the deployed page returns "hello world." The task agent installs the service and verifies this sequence, after which the evolver chooses KEEP at the subsequent and terminal checkpoints.
act obsidian-linter-link-format-conversion
Task: add a Link Style rule; linkStyle and imageStyle are configured separately (60 hidden tests).

Figure 6. Mid-run intervention guided by an act entry (DeepSWE 1.1). The task requires a Link Style rule with independently configured linkStyle and imageStyle. By checkpoint , both task agents have produced an initial implementation, and both evolvers issue a notice. Without Meta-Skill, the notice focuses on parser issues exposed by failing tests, while the image-handling route remains unchecked. The submitted implementation passes 58 of 60 hidden tests, incorrectly converting images when linkStyle is set to wiki and imageStyle is set to leave images unchanged. With Meta-Skill, entry E-02 directs attention to an unverified execution route, and the evolver identifies the interaction between link and image parsing. The task agent repairs this route, and the submitted implementation passes all 60 hidden tests.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 20 avoid winning-avg-corewars
Task: write a warrior that wins ≥75/100 vs stone, vampire, paper and ≥33/100 vs snake, g2-clear.

Figure 7. Avoiding premature redirection with an avoid entry (Terminal-Bench 2.1). By checkpoint , both task agents have identified the bundled Rave warrior as a promising candidate, but its performance against stone remains below the required threshold. Without Meta-Skill, the evolver uses its final notice to redirect exploration toward other bundled warriors. The task agent constructs an Aeka–Rave hybrid but finishes with 74 wins against stone, one short of the required 75. With Meta-Skill, entry E-06 discourages changing the search strategy while exploration continues to make progress. The evolver chooses KEEP at and subsequent checkpoints, allowing the task agent to continue tuning Rave and satisfy all five performance thresholds.
hold path-tracing-reverse
Task: write mystery.c that behaves identically to the binary /app/mystery (<2 KB gzipped).

Figure 8. Preserving the notice budget with a hold entry (Terminal-Bench 2.1). In both runs, the first command fails because the file utility is unavailable, and the task agent subsequently switches to alternative tools. Without Meta-Skill, the evolver spends notices at and , exhausting this channel before output comparisons reveal a substantial mismatch. With Meta-Skill, entry E-04 discourages a notice about the isolated tool failure, while a separate instruction guided by E-03 requires output comparison. The two notices remain available at to address reference preservation and the observed mismatch, and the task agent ultimately reproduces the reference output. This case illustrates a difference in intervention timing rather than establishing that withholding the early notice determines success.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 21
E. Supplementary Experiment Results
E.1 Mean and Standard Deviation Across Repeated Runs
Table 5 reports mean performance and sample standard deviation across repeated evaluation runs. Each repetition covers the full held-out task set: 60 tasks for Terminal-Bench 2.1 and 75 tasks for DeepSWE 1.1. We compute the percentage of tasks passed in each repetition, then report the mean and sample standard deviation over five repetitions for Terminal-Bench and three for DeepSWE. Standard deviations are expressed in percentage points and describe variation across repetitions.
Table 5. Mean performance ± sample standard deviation across repeated evaluation runs (percentage points). Terminal-Bench 2.1 uses five repetitions over 60 tasks, and DeepSWE 1.1 uses three repetitions over 75 tasks. Terra denotes GPT-5.6-Terra, and DeepSeek denotes DeepSeek-V4-Flash-0731. Dashes indicate settings not evaluated.
| Method | Terra | DeepSeek | |
|---|---|---|---|
| Terminal-Bench 2.1 | DeepSWE 1.1 | Terminal-Bench 2.1 | |
| NexAU Seed | |||
| Codex CLI | – | ||
| mini-swe-agent | – | ||
| Pi agent | – | ||
| DeepSeek Harness | – | ||
| ReasoningBank | |||
| ACE | |||
| TF-GRPO | |||
| AHE | |||
| Meta-Harness | |||
| Continual Harness | |||
| Meta² | |||
E.2 Cost–Performance Pareto Frontier
Figure 9 compares held-out performance against full cost for GPT-5.6-Terra on both benchmarks. Full cost includes offline construction, where applicable, and online execution over the complete held-out evaluation. A method is Pareto dominated if another method has no higher cost and no lower performance, with a strict improvement in at least one dimension. The dashed lines connect the non-dominated point estimates.
Meta² lies on the Pareto frontier and achieves the highest performance point estimate on both benchmarks. It also dominates AHE and Meta-Harness, attaining higher performance at lower full cost. Lower-cost human-designed harnesses remain on both frontiers, while Continual Harness and TF-GRPO provide intermediate cost–performance tradeoffs on Terminal-Bench. Thus, Meta² extends the frontier toward higher performance while retaining alternatives with lower total expenditure. These comparisons use the evaluation sizes reported in Appendix C.1; the contribution of one-time offline construction to full cost depends on the number of subsequent runs.
F. Additional Discussion
F.1 Limitations
Interpretation of outcome contrasts. The A/B/C comparisons provide run-level evidence for evolution guidance rather than causal estimates of individual checkpoint decisions. Because independently sampled trajectories
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 22

Figure 9. Performance versus full cost with GPT-5.6-Terra. Full cost includes one-time offline construction and online evaluation costs, plotted on a logarithmic horizontal scale. Dashed lines connect the non-dominated performance-cost point estimates for Terminal-Bench 2.1 (left) and DeepSWE 1.1 (right).
may diverge before an intervention, differences in terminal outcomes cannot be attributed to a single edit. Accordingly, the Meta-Skill records guidance grounded in observed contrasts, and the evolver assesses its applicability using evidence from the active run. Controlled comparisons that resume from a shared checkpoint state would enable more precise attribution.
Deployment cost and intervention timing. The evolver introduces additional model calls, and its deployment cost depends on checkpoint frequency and the extent of intervention. Our checkpoint-frequency study examines this tradeoff, while hold and avoid guidance supports selective intervention. Bounded edit channels, validation, and rollback further constrain changes to the active harness. These mechanisms do not guarantee that every intervention is useful or timely, leaving room for more efficient checkpoint scheduling and decision policies.
Scope of reusable guidance. Cross-task aggregation removes instance-specific details to produce guidance that can be reused across tasks. The resulting entries remain abstractions of the training evidence, and their applicability depends on whether the active run exhibits the relevant conditions. Support from multiple tasks and retained source examples aid interpretation and traceability, but do not establish applicability to all task distributions. Evaluating transfer under broader distribution shifts is a useful direction for future work.
Evaluation coverage. Our evaluation focuses on terminal and software-engineering tasks with inspectable artifacts and automatic verification. The results establish performance within these settings and the evaluated backbone configurations. Further evaluation is needed to assess applicability to domains with different interaction structures or less explicit completion criteria, such as embodied control and open-ended research.
F.2 Broader Impact and Safety
Online harness evolution may improve the reliability of long-horizon agents by allowing them to respond to tool failures, artifact errors, and evidence revealed during execution. A reusable Meta-Skill can support consistent intervention decisions when similar situations recur. Because harness edits influence subsequent agent behavior, deployment should account for tool permissions, the confidentiality of trajectory data, and the traceability of changes.
Our implementation restricts workspace inspection to permitted read-only observations and applies task-local edits through bounded channels with validation and rollback. The Meta-Skill remains frozen during deployment, and intervention logs record checkpoint decisions and harness changes. For broader deployment, we recommend least-privilege tool access, explicit edit scopes, versioned changes, and access-controlled audit logs. Edits that expand
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 23 permissions or authorize external actions beyond the original task scope should require human approval. Privileged verifier information is used only during offline construction, with condition-C rollouts audited for leakage before inclusion in Meta-Skill learning.
F.3 Future Directions
One direction is to refine the Meta-Skill during deployment using reliable feedback from newly completed tasks. This could help the guidance adapt to changing task distributions, provided that updates distinguish reusable lessons from task-specific corrections and are validated before reuse. Such a protocol would require an explicit source of deployment feedback, separate from held-out verifier information reserved for evaluation.
A second direction is to replace fixed checkpoint intervals with an adaptive scheduling policy. The policy could use execution evidence and evolver uncertainty to determine when inspection is warranted, balancing timely intervention against monitoring cost. Further extensions include retrieving relevant entries from larger Meta-Skills, identifying situations not covered by existing guidance, and evaluating transfer across task-agent models and domains.
G. Evolution Regimes and Related-Work Comparison
Table 6 summarizes the evolution regimes supported by representative methods. The four regime columns describe offline optimization and pre-run, within-run, and after-run evolution, following the definitions in Section 2. A checkmark denotes explicit support, a triangle denotes support restricted to particular modes or reuse of completed-run artifacts, and a cross denotes that the regime is not supported in the described protocol. The final column indicates whether deployment-time adaptation requires task-verifier feedback, including feedback used to select updates for subsequent runs. The comparison describes the original methods rather than the training-time adaptations introduced for our baseline evaluation.
Table 6. Evolution regimes and test-time verifier requirements of representative methods. ✓ denotes explicit support, △ restricted support, and × no support in the described protocol. Verifier requirements refer to deployment-time adaptation rather than offline training or final evaluation.
| 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 |
| PILOT [47] | ✕ | ✕ | ✓ | ✓ | Required |
| Live-SWE-agent [46] | ✕ | ✕ | ✓ | ✕ | Not required |
| Meta² (ours) | ✓ | ✕ | ✓ | ✕ | Not required |
The online evolution regimes are not mutually exclusive: a method may adapt before or during a run and also use completed-run evidence to update artifacts for subsequent tasks. For example, JIT-Agent generates a task-specific harness before execution and, in its streaming mode, uses the completed rollout's reward, latency, and cost to update the harness bank. PILOT combines within-run steering and harness updates with verifier-based selection of which updates to retain across iterations. Continual Harness refines its harness within a run and retains the resulting harness in subsequent runs.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 24
Table 7 summarizes harness evolution by decision timing, available evidence, and the executions affected by an update. Offline optimization uses training experience to construct an artifact shared across target runs, whereas online evolution adapts after the target task becomes available. The online settings differ in whether an update affects the upcoming run, the remainder of an active run, or subsequent attempts or tasks. The final row locates Meta² within this taxonomy: the Meta-Skill is learned offline and reused across tasks, while checkpoint information guides task-local edits during execution.
Table 7. Evolution regimes by timing, evidence, and update scope. Online edits occur pre-run, within-run, or after-run; after-run updates target either the next attempt or later tasks. Meta² learns reusable offline and applies task-local edits within-run.

| Regime | Decision time and information | Effect scope and principal limitation |
|---|---|---|
| Offline evolution | ||
| Pre-deployment | Before deployment; training trajectories and outcomes when available () | Shared across target runs; cannot react to evidence revealed during a target run |
| Online evolution (deployment-time) | ||
| Pre-run | At ; target instruction () | Current run from ; cannot use evidence that emerges during execution |
| Within-run | At checkpoint ; instruction, partial trajectory, workspace, and prior edit status (), but not the eventual outcome | Remainder of the current run; lacks eventual outcome feedback and adds monitoring and intervention overhead |
| After-runsame task | After attempt ; completed trajectory and outcome when available () | Next attempt only; cannot rescue attempt and requires a restart |
| After-runtask stream | Before task ; earlier target trajectories and outcomes when available () | Later tasks; cannot benefit the run that exposed the problem, and retained updates may overgeneralize or regress |
| Meta² (ours) | Offline: learn reusable from ; online, within-run: combine it with without | Reusable is carried across tasks; each expires when its active run ends; checkpoint supervision still adds online overhead |
H. Prompt and Output Templates
This appendix presents the prompts for the online evolver and the offline REFLECT, AGGREGATE, and UPDATE stages. Template variables and conditional blocks are populated at runtime.
H.1 Prompt for Online Evolver
The following system prompt is used by the online evolver on Terminal-Bench 2.1. The DeepSWE version uses the same checkpoint interface, intervention channels, and output format, but adds instructions for submitting
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 25 committed Git changes and evaluating them in a separate container. The Meta-Skill block is included only in configurations that use learned guidance.
Online Evolver System Prompt
You are the supervisor of a long-horizon task.
Another agent - the worker - is doing the work: it operates in an isolated environment, decides its own actions, and holds its own context.
You do not act in that environment.
At each checkpoint you decide whether to change anything about the worker's situation, and you can only do so through the channels listed below.
The worker cannot see this conversation.
It perceives only what you send through a channel, and it treats what arrives as established. Nothing you write as plain text reaches it.
What arrives at each checkpoint
-
The task statement, at the first checkpoint only.
-
The outcome of your previous checkpoint: whether your edits loaded, or were rolled back, with the error.
-
The worker's actions since the last checkpoint: its reasoning summaries, the commands it ran, and what the environment returned.
Each block is truncated at 1,500 characters; the worker's full command outputs are on disk (see below).
-
Two runner-computed sections at the end: Repeated procedures (commands the worker has re-run three or more times with small variations, with a fingerprint) and Your channel budget (notices used, persistent channels used).
-
When the worker's last turn contained no tool call, a note saying it has stopped.
Unless you send it back with notice, the state at that moment is final and is scored. The note says how many send-backs remain.
You are one continuous conversation for the whole task.
Your own history is the record of what you have sent and what came of it; list_changes lists the harness edits you have made.
Read tools
read_file, search_file_content, glob, list_directory.
They reach the task directory (/app), the worker's harness (/nexau-workspace), the worker's saved command outputs (/tmp/nexau_bash_tool_results/<id>/stdout.txt and stderr.txt, the untruncated text of what the trace shows truncated), and the trial logs.
Other paths return an error.
They read; nothing you call executes in the worker's environment except a probe.
Channels
Each channel's tool description carries its full contract: inputs, validation, limits, and what the worker will see.
What differs between channels is when the content reaches the worker, whether it persists, and what it guarantees.
| channel | reaches the worker | persists | guarantee |
|---|---|---|---|
| --- | --- | --- | --- |
notice | at the start of its next turn, read once | no | advisory |
append_worker_prompt / rewrite_worker_prompt | in its standing instructions, every turn from its next stretch of work | yes | advisory |
register_check (Python, standard library, separate interpreter, reads files) | its output is appended to every command result | yes | reports |
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 26
| register_probe (bash, runs in the worker's environment, may execute programs) | its output is
→ appended to every command result | yes | reports |
| add_tool | a new option in its action space | yes | optional |
| add_skill | a note it can load on demand | yes | optional |
| add_middleware | code around every model call or tool call | yes | enforced |
| rollback | restores the harness to its state at a checkpoint | - | - |
Limits enforced by the tools and the runner:
- One
noticeper checkpoint; a second call at the same checkpoint is refused. At most two notices per task while the worker is working; the tool refuses further ones. Sending a stopped worker back also usesnotice; it is counted separately and its remaining number → is shown in the stopped note. - Harness edits (prompt, check, probe, tool, skill, middleware) take effect at the start of the → worker's next stretch of work. If the rebuilt harness fails to load, the edit is rolled back and you are called again immediately → with the error and one more attempt.
- After
add_tool,add_skill,add_middleware, or a change to the standing instructions, the → worker's next message states that the harness changed and what was added, including your → description of it verbatim. Checks and probes are not announced; their output carries its own label on every command result. - Aborting the worker is not available; the task runs to its own budget. A worker that is sent back keeps consuming that budget.
{% if knowledge_base_text %}
Meta-Skill
Below is the whole Meta-Skill: entries learned offline from runs on other tasks of this benchmark → by the same worker model. It is the only precedent available to you, and it is reproduced here in full - there is no file to → open and nothing further to read. What it says about other tasks is precedent; anything you tell the worker about this task's files, → outputs or environment must come from your own reads or from the trace.
Its entries for the opening moment are not reproduced here.
They are delivered once, in the first checkpoint's message, under the heading # code_agent has just → started; that message stays in this conversation afterwards, so they remain available at every
→ later checkpoint.
{{ knowledge_base_text }} {% endif %}
Output
Use the channel tools for anything you want to change.
End every checkpoint with exactly one complete_task call whose result is a JSON object:
{"reasoning": "<for the log: what you saw, what you did or why nothing, and what backs each fact you
→ sent>"
reasoning never reaches the worker.
A notice written into reasoning is not delivered; only the notice tool delivers one.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 27
H.2 Shared System Prompt for Offline Stages
The REFLECT, AGGREGATE, and UPDATE stages use the same system prompt to define the task setting and the information available under conditions A, B, and C.
| Shared System Prompt |
|---|
| <System>A **worker** agent solves a software task in a git repository: it must change the repository so that↪ a set of named tests newly passes without breaking the tests that already passed, and commit the↪ change.It never sees any of those tests.Three settings are compared on the same tasks:- **a***: the worker runs alone, unsegmented, with a simpler worker prompt (no probe/check↪ middleware).- **b***: a **supervisor** agent (the same model) watches the worker every few steps and may change the↪ worker's harness for this task: send a one-off message (`notice`, at most two while the worker↪ is working), add or rewrite standing instructions in the worker's prompt (`append_worker_prompt`,↪ `rewrite_worker_prompt`), register a read-only probe or check whose output is appended to every↪ worker command result, add a tool or skill, or roll back its own changes.When the worker stops, the supervisor accepts the result (the diff between the base commit and HEAD↪ is submitted and graded; uncommitted work is discarded) or sends the worker back with a notice↪ (at most twice).At the stop it also sees a runner-computed workspace state.It reads the **Meta-Skill** (entries with ids `E-NN`) and cites the ids it acts on.- **c***: a supervisor that was given this task's acceptance conditions and verifier source at its↪ first checkpoint, told to use them only to decide what is at risk and what to measure, and not to↪ pass their values to the worker.It has no Meta-Skill.Neither the worker nor the b supervisor ever sees the verifier.</System> |
H.3 Prompt for REFLECT
The REFLECT stage compares two groups of rollouts from the same training task and extracts candidate Meta-Skill entries. The consolidated template below specifies the five contrast directions, entry fields, and output format. Only the selected direction applies to each call, and privileged verifier information may explain training outcomes but cannot supply conditions or instructions unavailable to the online evolver.
| REFLECT Prompt |
|---|
| {system}Your task is to compare two groups of runs of **one task** along the selected contrast direction and↪ extract the experiences the Meta-Skill should carry from it.<Selected Direction>{direction_block}The entry type for this call is `{type}`.Apply only the corresponding direction below.</Selected Direction> |
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 28
<Contrast Directions>- informed - b runs that failed vs c runs that passed. Type: act.
The left group is setting b runs that failed; the right group is setting c runs that passed.
The c supervisor knew the acceptance conditions.
Find what it did - which harness change, at which moment, on which evidence - that the b supervisor could also have done without the acceptance conditions.
The evidence must be something visible in the trace, the workspace, or the statement.
A lesson whose only basis is a value in the acceptance conditions is not allowed.
If the c supervisor's advantage was only that it knew a hidden value, the verdict is no_supervisor_effect.
- effective - a runs that failed vs b runs that passed. Type: act.
The left group is setting a runs that failed; the right group is setting b runs that passed. Find a concrete intervention by the b supervisor that addresses a gap visible in the a runs: which harness change, at which moment, on which visible evidence. The comparison provides directional evidence, not a checkpoint-level causal estimate.
The two groups differ in more than the supervisor.
Setting a uses a different worker directory: its system prompt says "your only tool", while setting b's says "your main tool ... other tools may be added during the task", and b's worker carries check/probe middleware.
Setting a runs unsegmented*, while b runs in segments of a few turns; the effect of segmentation has not been measured on this benchmark.
Do not credit the supervisor for differences that come from the worker scaffolding or from segmentation.
Write an entry only when you can point at one concrete intervention in a b run and describe what the a runs did at the corresponding point without it.
If the b runs passed for reasons unrelated to the supervisor's actions, the verdict is no_supervisor_effect.
- harmful - a runs that passed vs b runs that failed. Type: avoid.
The left group is setting a runs that passed; the right group is setting b runs that failed.
Identify a concrete intervention associated with a subsequent failure or deviation, and compare it with the corresponding behavior in the passing a runs.
avoid concerns evidence of potential harm from a particular intervention, not merely an intervention with no observable effect.
The a/b worker-scaffolding and segmentation differences described above apply here too.
Do not blame the supervisor for a failure that the worker scaffolding or segmentation explains.
Write an entry only when you can identify one concrete intervention in a b run and show that the a runs, at the corresponding point, proceeded without the same problem.
Otherwise the verdict is no_supervisor_effect.
- overreach - b runs that passed vs c runs that failed. Type: avoid.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 29
The left group is setting b runs that passed; the right group is setting c runs that failed.
The c supervisor knew more - the acceptance conditions - but its runs had worse outcomes.
Identify a concrete intervention associated with the failure: which channel, what content, at which moment.
Explain what visible evidence could have supported avoiding that intervention.
If the c failures are explained by the worker's own variation rather than by a supervisor action, the verdict is no_supervisor_effect.
- unnecessary - a runs that passed vs b runs that passed with interventions.
Type: hold.
The left group is setting a runs that passed without any supervisor; the right group is setting b runs that passed and in which the supervisor did intervene.
Both groups succeeded, but this alone does not establish that an individual intervention was unnecessary.
The question is: what observable situation appeared to require intervention, yet the worker could resolve it without supervision?
You are also given two mechanical lists:
(1) In the a runs, every command that exited non-zero, with its failure category.
(2) In the b runs, the interventions whose content did not appear in the worker's later behavior.
when should identify an observable feature of the kind in list (1) - a failure class, a retry pattern, or a stage of the work.
guidance should say to hold and identify the evidence supporting that decision.
Do not write a hold entry for a situation where the a runs also show the worker getting stuck.
</Contrast Directions>
<Your Input>-
The task statement.
-
The task's acceptance conditions and verifier source.
The worker and the b supervisor never see these; use them to understand why a run passed or failed, never as content for an entry.
- Pass rates of the three settings on this task.
These are independent samples, not matched pairs.
-
A structured record of every run in the two groups: each worker turn's command, exit code, and the start of its output; each supervisor checkpoint at its true position, tagged
first/mid/final, with the channel and text of what it did and the Meta-Skill ids it cited. -
The full text of the Meta-Skill entries cited in these runs.
Only those entries are shown; the rest of the Meta-Skill is not provided.
{extra_input}
- Tools:
read_run(run, start, end)returns turns T<start>..T<end> of one run with the supervisor checkpoints between them;search_run(run, text)returns matching lines.
Use them when the record is too terse to judge a decision or when two runs appear to conflict. At most {tool_budget} calls.
</Your Input>
<Task Instructions>- Compare the two groups along the selected direction.
Judge each supervisor decision by what was visible to it at that moment, not by the terminal outcome.
Do not treat independent rollout comparisons as checkpoint-level counterfactuals.
- Set the verdict to
entrieswhen the comparison supports a lesson for the b supervisor.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 30
Otherwise, use no_supervisor_effect and explain why: for example, the same failure appears on both sides, or the difference is explained by the worker's own variation.
-
If the verdict is
entries, write one or more entries. Type is fixed by the selected direction:{type}. Do not output it as an entry field. Every entry carries atime_point. One comparison may yield several entries at different time points. An early constraint and a final verification requirement are different entries, even when they address the same failure. -
For every cited Meta-Skill entry shown in the input, state whether it
helped,misled, wasignored_when_relevant, or wasirrelevantin these runs.
</Task Instructions>
<Time Point>-
start- the first checkpoint. The worker has taken one turn. Focus on before-acting decisions: preserving evidence that a routine first step would destroy, constraining how the worker probes, or excluding a route that available evidence shows cannot work. Do not give the worker the answer. -
during- the worker is working and there is an execution trace. Base decisions on observable evidence, such as a claim contradicted by command output, a recurring failure, or an unverified route exposed by the trace. -
end- the worker has stopped calling tools, the artifact exists, and workspace state has been collected. Assess whether the artifact and available validation support the worker's completion claim.
</Time Point>
<Fields of an Entry>-
title: 3 to 7 words naming the situation, not the action. -
time_point: start | during | end. -
when: one situation the b supervisor can recognize from what it actually holds at a checkpoint - the trace, a command's exit code, the workspace state, or the channel budget. Write it so that it can match a task from an unrelated domain. Do not include a task name, domain noun (file format, algorithm, library, protocol, subject matter), path, command, version, or value. Describe one situation, not a list of alternatives. Any wording specific to this task must be lifted one level up. -
guidance: specify both the harness action and, when applicable, what the message to the worker must carry. State which channel to use, at which moment, or what not to do. Forhold, specify why the run should be left alone and what evidence supports that choice. When sending a message, distinguish between naming a concrete gap already exposed by the worker's trace and asking the worker to establish a property for itself. Explain which is appropriate. Do not reduce a specific, evidence-supported correction to a generic request for verification.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 31
-
why: describe what was observed in these runs, including the behavior following the intervention and the corresponding behavior without it. Do not claim causal certainty from independently sampled runs. -
example: one line starting with this task's name and a colon, describing concretely what happened. Do not include run labels or turn numbers. -
runs: the runs from which this entry was extracted. This field records provenance; no minimum is required. -
derivable: statement | worker_output | workspace_state | supervisor_read. State what evidence the b supervisor could use to make the decision. A lesson that requires hidden acceptance conditions is not allowed.
</Fields of an Entry>
<Output Format>Output exactly one JSON object and nothing else. Use English.
{
"analysis": "the comparison, with run and turn anchors",
"verdict": "entries | no_supervisor_effect",
"reason": "one or two sentences",
"entries": [
{
"title": "",
"time_point": "start | during | end",
"when": "",
"guidance": "",
"why": "",
"example": "<task>: ...",
"runs": ["b2", "a4"],
"derivable": "statement | worker_output | workspace_state | supervisor_read"
}
],
"entry_credit": [
{
"id": "E-03",
"effect": "helped | misled | ignored_when_relevant | irrelevant",
"runs": ["b1"],
"note": "one sentence"
}
],
"recheck": "the raw-run reads you made and whether they changed anything; \\none" if none
}
Set entries to [] when the verdict is no_supervisor_effect.
</Output Format>
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 32
H.4 Prompt for AGGREGATE
Each AGGREGATE call processes the candidates in one non-empty entry-type and time-point cell from the current training batch. It uses the shared system prompt in Appendix H.2 and the instructions below. Candidates are grouped by observable situation and intervention content, with each retained entry supported by at least two distinct training tasks.
AGGREGATE Prompt
You are assembling one cell of the Meta-Skill: Type = {type}, Time point = {time_point}. Below are all candidate entries from this batch that fall in this cell.
Each candidate was written from one training task and is tagged with its source task and the comparison direction it came from.
<Time Point Meaning>{time_point_def}
</Time Point Meaning>
<What to Produce>Group the candidates into families and write one entry per family.
-
A family is defined by its
when- the situation in which the entry comes into play. Two candidates from different tasks belong to the same family when a supervisor would recognise the same situation, even when the tasks look nothing alike. -
Hard constraint: every entry you output must draw on candidates from at least two different training tasks.
A candidate that cannot be joined with one from another task goes to dropped with a reason. Do not invent a family of one to hold it.
-
Contradictory candidates belong in the same family, and the entry must say what separates them. "Intervene here" and "leave it alone here" describing the same situation is the most valuable thing in this material, not an error to resolve by dropping one side.
-
A family is one situation.
The merged when must still be one recognisable situation - at most two alternatives joined by or.
If candidates describe different situations (a false download, a missing companion tree and a partial aggregation are three situations, not one), they are different families - even if that leaves a family with one task, which is then dropped.
Never fuse distinct situations into a list to satisfy the >=2-task constraint.
- There is no cap on the number of entries and no target; the >=2-task constraint and the one-situation rule are the only limits.
</What to Produce>
<Rules>- Nothing specific to a training task may appear in
title,when,guidanceorwhy- no task name, path, file name, field name, package, command, numeric value, and no domain noun that only fits one area.
Those belong only in examples.
whymust state the cross-task pattern: in what form it appeared on the different tasks.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 33
-
examples: one line per source task, each starting with the task name and a colon (at most three). -
derivable: the weakest basis among the merged candidates. -
English. Each field one or two sentences.
-
Two candidates match when the situation and the kind of content the message carries are the same. "The supervisor named a gap the worker had already exposed" is one kind; "the supervisor asked the worker to establish a property" is another. Do not require the gap itself to be the same - that is domain-specific and belongs in
examples.
Output exactly one JSON object and nothing else.
{
"entries": [
{
"title": "",
"when": "",
"guidance": "",
"why": "",
"examples": ["<task>: ...", "<task>: ..."],
"derivable": "statement | worker_output | workspace_state | supervisor_read",
"from_candidates": ["C-03", "C-07"]
}
],
"dropped": [
{
"candidate": "C-05",
"reason": "one sentence"
}
]
}
from_candidates must list every candidate id in the family; the source tasks are computed from it.
</Output Format>
<Candidates>{candidates}
</Candidates>H.5 Prompt for UPDATE
The UPDATE stage is invoked once per training batch to incorporate aggregated entries into the current Meta-Skill. It uses the shared system prompt in Appendix H.2 and the instructions below. Updates consider both new entries and entry-level feedback, while preserving identifiers, source support, and examples.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 34
UPDATE Prompt
Your task is to decide how the Meta-Skill should change in response to the new entries from one ↔ batch of training tasks. Choose one operation for each new entry, and add operations for the entry credit where the rules ↔ below require one.
<Your Input>- The current Meta-Skill: every entry with its id and fields, plus its internal
support(which ↔ training tasks it came from). - The new entries from this batch (ids
C-NN), each withtype,time_point, fields andsupport. - The entry credit collected in this batch: for cited entries, whether they helped, misled, were ↔ ignored when relevant, or were irrelevant, with runs.
- Tools
read_run(run, start, end)andsearch_run(run, text)to confirm what a run shows before ↔ changing an existing entry. At most {tool_budget} calls.
</Your Input>
<Operations>-
ADD: the new entry describes a situation no existing entry covers.
-
MERGE: the new entry and one existing entry (or two existing entries) have a
whenthat lands ↔ on the same observable. The merged entry keeps the existing id; itswhenmust still be one recognisable situation ↔ (at most two alternatives joined by "or") and itsguidanceone action;supportbecomes ↔ the union. Give the id, optionallyabsorb(other existing ids folded in), and only the fields that change. -
REFINE: an existing entry covers the same situation; improve it without widening it - ↔ sharpen or qualify the guidance, correct the why, change the type if the evidence shows it, or ↔ append an example. Never add a triggering condition. Give the id and only the fields that change.
-
DELETE: see rule 4.
-
NONE: already covered, or adds nothing.
-
Before calling a new entry "different from every existing one" (ADD), check whether it lands on ↔ the same observable as an existing entry - if it does, that is a MERGE, not an ADD.
-
REFINE never widens
when. To widen, use MERGE, and only if the result is still one recognisable situation. If the mergedwhenwould become a list of unrelated observables, or the mergedguidancewould ↔ need "depending on the case" to branch, it is not a merge: keep two entries. -
An entry judged
ignored_when_relevantgets at most an appended example, not a newwhen. -
DELETE only when an entry was judged
misledin at least two runs of this batch and no ↔ qualifier can be written that narrows it to a situation where it is still useful. Otherwise add the qualifier (REFINE).
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 35
-
Examples are only appended (at most three per entry); existing examples are never rewritten.
-
Cross-task wording in title, when and guidance: no task name, domain noun, path, command, version → or value.
-
Call the one-off message channel notice.
-
Every operation other than NONE cites at least two runs as
<task>:<run>(for example →dna-insert:b2). -
Length targets: title 60 characters, when 240, guidance 360, why 300, example 260.
Output exactly one JSON object and nothing else.
Use English.
{
"operations": [
{
"op": "ADD | MERGE | REFINE | DELETE | NONE",
"candidate": "C-NN or null",
"id": "existing id for MERGE / REFINE / DELETE, else null",
"absorb": ["other existing ids, MERGE only"],
"entry": {
"title": "",
"when": "",
"guidance": "",
"why": "",
"type": ""
},
"add_example": "for REFINE only, or null",
"runs": ["<task>:b1", "<task>:a3"],
"reason": "one sentence"
}
],
"recheck": "the raw-run reads you made and whether they changed anything; \\\"none\\\" if none"
}
For MERGE and REFINE, entry holds only the fields that change.
For DELETE and NONE, entry may be empty.
</Output Format>
<Current Meta-Skill>{kb}
</Current Meta-Skill>
New Entries from This Batch>
{candidates}
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 36
</New Entries from This Batch>
<Entry Credit from This Batch>{credit}
</Entry Credit from This Batch>
I. Meta-Skill Structure and Content
1.1 Entry Structure
A Meta-Skill is a versioned textual library that guides harness evolution at checkpoints. Each entry associates an observable situation with guidance on whether and how to intervene. The evolver interprets these entries using evidence from the active run to select a task-local harness edit or leave the harness unchanged. We denote the frozen library by , with the entry fields summarized in Table 8.
Table 8. Fields of a Meta-Skill entry. Each entry specifies an observable situation, evolution guidance, and supporting training examples.
| 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. |
| Reference examples | Up to three examples from distinct training tasks illustrating the situation and observed behavior. |
The When to refer field describes an observable condition at a level that permits reuse across tasks. Vague judgments such as “the approach looks wrong” provide little basis for matching an entry to checkpoint evidence. Conversely, exact file names, commands, packages, or expected answers tie a trigger to a particular instance. We therefore express triggers through observable relations, such as a claim contradicted by command output, repeated attempts that produce no new evidence, or an artifact inconsistent with the task agent’s completion claim. Task-specific details are confined to reference examples and internal provenance records. Construction metadata, including supporting task identifiers and candidate provenance, is retained separately to support aggregation and subsequent updates.
1.2 Content of Meta-Skills
Entries are organized by type and execution stage. The act entries describe situations in which training contrasts support an intervention, such as an unverified execution route, an unresolved contradiction, or an unsupported completion claim. The hold entries identify situations where the task agent is making progress or recovering without assistance. The avoid entries describe interventions associated with adverse outcomes, such as prematurely selecting an interpretation or redirecting a search that is still advancing. These types guide different aspects of a
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 37 checkpoint decision: act supports a change, hold supports continuation, and avoid excludes a particular change while leaving other interventions available.
The execution-stage labels further specify when the guidance applies. Start entries concern early constraints, evidence preservation, and route selection. During entries concern evidence revealed as work proceeds, including progress, contradictions, and unverified behavior. End entries concern whether the delivered artifact and available validation support acceptance.
Cross-task aggregation retains reusable guidance supported by at least two distinct training tasks. Raw verifier text, hidden expected outputs, task solutions, and held-out information are excluded from the deployed guidance. At deployment, the frozen Meta-Skill is supplied directly in the evolver's conversation. Entries labeled start are delivered in the first checkpoint message, while the remaining entries are included in the system prompt. All entries remain available in the evolver's conversation at subsequent checkpoints. The evolver records the entry IDs it uses, or indicates that no entry applies, and grounds each decision in evidence from the active run. Checkpoint decisions, task-local edits, and test-time outcomes do not update the frozen library.
Meta-Skills for Terminal-Bench 2.1
Entries learned offline from supervised and unsupervised runs on other tasks of this benchmark by the same worker model. What they say about those tasks is precedent, not a fact about the task in front of you: anything you tell the worker about this task's files, outputs, or environment must come from your own reads or from the trace.
Every action available to you changes this run's harness; the actions differ in how long the change lasts. A notice reaches one worker turn. A standing instruction (append_worker_prompt or rewrite_worker_prompt), a check, and a probe reach every turn from the worker's next stretch of work onward. Tools, skills, and middleware change the worker's structure.
How to read an entry
-
Type—act: a situation where a harness change helped; hold: a situation that looks like it needs intervention and does not, so leave the run alone; avoid: an intervention that did harm.
-
Time point—start (first checkpoint), during (worker working), or end (worker stopped).
-
When to refer—the observable situation that brings the entry into play. Match on this.
-
Guidance—what to do, or what not to do.
-
Why—what was observed in the training runs.
-
Reference examples—how it looked on training tasks; illustration only.
An entry whose situation you do not see does not apply. Nothing here ranks the entries or states how often each was drawn on. Write in reasoning the IDs of the entries you act on and the IDs of entries whose situation you saw but decided against. If none applies, say so.
At the first checkpoint
The worker has taken one turn. These entries are for this moment only: a standing instruction installed now reaches every one of its remaining turns, and the route it will follow is not yet fixed. Match on the situation as with any other entry.
E-02—Externally observable end state named. Type. act
Time point. start
When to refer. The statement requires an end state that can only be confirmed by observing the system from outside it, rather than by a file or a build result.
Guidance. Install a standing instruction that completion requires a fresh observation of that external view taken before and after the action, under the same conditions. Do not let a reachable channel, a running process or a returned status stand in for it.
Why. Supervisors that established this expectation at the first checkpoint obtained a visible observed change and passed, while those that concentrated on channel availability accepted a reported status without a comparable observation.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 38
Reference examples. (1) install-windows-3.11: passing runs compared captures of the external view around injected input, while failed runs confirmed only that the channel accepted commands.
E-03—Obvious first move destroys or under-covers. Type. act
Time point. start
When to refer. The most direct way into the task would either alter something that cannot be recovered once altered, or would cover less than the requirement actually asks for—and the worker has not yet committed to a route.
Guidance. Install a standing instruction that constrains the method before it acts: what must be preserved or worked on only in copy, how wide the search or enumeration has to be, and which behaviour the requirement implies that its wording does not spell out. Say nothing about what the answer is.
Why. On these tasks the deciding step was the first one. Where the constraint was installed the work survived; where the first ordinary action went ahead unconstrained, the evidence or the coverage was already gone by the time anything else could be said.
Reference examples. (1) sqlite-db-truncate: the artifact that had to be recovered was also the thing an ordinary read would rewrite. (2) dna-assembly: the established ordering and boundaries had to be preserved through an encoding step that silently reorders them.
E-01—Interpretation asserted before inspection. Type. avoid
Time point. start
When to refer. At the first checkpoint the worker has only listed the inputs it was given and has not yet displayed or compared their contents.
Guidance. Do not use a notice or a standing instruction to fix an interpretation, a boundary or a transformation of material the worker has not yet inspected. A standing instruction may constrain how it examines the material and what it must preserve; leave the reading of the material to it.
Why. A first-checkpoint message that supplied a specific interpretation was adopted verbatim and produced an internally consistent but wrong result, while the unsupervised run made its own comparison and read the material differently.
Reference examples. (1) dna-insert: a first-checkpoint notice stated a particular insertion boundary before inspection; the worker adopted it, while the passing unsupervised run found a different alignment itself.
While the worker is working
E-07—Reported success with unchanged observation. Type. act
Time point. during
When to refer. An action reports success, and a later direct observation of the very thing it was meant to change shows the same state as before.
Guidance. Send one notice stating that the reported success is contradicted by the observation, and require a fresh comparison under stable conditions before the worker builds anything further on the claim.
Why. Runs that treated an accepted command as proof of effect accepted a state that had not changed; runs that treated the unchanged observation as unresolved kept working until the action visibly took effect.
Reference examples. (1) install-windows-3.11: repeated accepted inputs left the external view unchanged in failed runs, while passing runs continued until an input visibly changed it.
E-08—Restriction the evidence has not established. Type. act
Time point. during
When to refer. The worker narrows the problem by a constraint that neither the requirements nor any observed failure supports—coupling things that vary independently, or rejecting inputs that were accepted before—and that narrowing is what makes its search come up empty or its behaviour change.
Guidance. Send one notice to drop the unsupported restriction, keep only what the requirements and the observed failures establish, and retry. Do not accept an empty result under an unproven restriction as evidence that none exists.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 39
Why. An assumed coupling eliminated the viable candidates entirely; an inferred rejection rule changed behaviour outside the failure that was actually demonstrated. Both turned an unproven limitation into a requirement.
Reference examples. (1) dna-insert: forcing two independently variable components to the same setting returned nothing, and enumerating them separately produced a working combination at once. (2) fix-code-vulnerability: a message adding rejection of a further boundary input produced a failing artifact, while passing repairs restricted themselves to the demonstrated unsafe class.
E-09—Comparison the worker ran reports a mismatch. Type. act
Time point. during
When to refer. A comparison or check the worker itself ran reports that its result differs from a reference in membership, count, or value, and later turns proceed without that difference having been resolved.
Guidance. Send one notice requiring the worker to isolate the first difference, decide whether any permitted normalisation explains it, repair otherwise, and rerun that same comparison. Do not let a narrower check that passes stand in for the one that failed.
Why. Supervisors that treated a failing self-run comparison as blocking obtained corrected and revalidated artifacts; runs that let it pass continued on an artifact whose own evidence contradicted it.
Reference examples. (1) regex-chess: a randomised comparison exposed a discrepancy after a narrower check had passed, and passing runs required it reconciled and repeated. (2) dna-assembly: a reported failing round-trip check was replaced by another hand-built calculation instead of being resolved.
E-11—Located material bypassed for a surrogate. Type. act
Time point. during
When to refer. The trace shows the worker has already located the thing the requirement names—the material itself, or the authority it must come from—and it is nonetheless working from something it found separately.
Guidance. Send one notice to open or cross-check against what it already located before going further, and to state which of the two its result rests on. Do not let a calculation from the surrogate become the final evidence.
Why. Workers that kept working from a surrogate after having exposed the named source delivered results the named source did not support; redirection to what they had already found produced passing results.
Reference examples. (1) mteb-leaderboard: the official source had been exposed but the answer was computed from a separately obtained copy, and passing runs followed the named source instead. (2) build-pov-ray: the listed material containing what was needed was passed over for continued speculative search until a message pointed back at it.
E-04—Isolated environment failure with visible reformulation. Type. hold
Time point. during
When to refer. The worker has already begun substantive work on the deliverable, and a single command then exits non-zero because the execution environment rejects an invocation feature or an auxiliary capability is unavailable, with the next visible action reformulating the same work.
Guidance. Hold: do not supply a replacement or spend a notice on that failure. This concerns reacting to the failure itself—it does not bar a method, scope, or acceptance constraint you would have installed anyway. Intervene once the same class of failure recurs, or once a substantial share of the time budget is gone with no progress past it.
Why. Across many training tasks this signature appeared in runs that passed with no supervisor at all; the worker removed the unsupported feature, installed the capability, or switched route on its own turn. Messages spent here changed nothing the worker was not already doing.
Reference examples. (1) sqlite-with-gcov: an early command was rejected over an unsupported control option, then retried in a compatible form and the build completed. (2) financial-document-processor: an unavailable inspection utility was followed by capability discovery and a successful alternative. (3) reshard-c4-data: one unsupported interpreter option failed, then the same test ran through a compatible interpreter.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 40
E-05—Failure output carries its own correction. Type. hold
Time point. during
When to refer. The worker has already begun substantive work, a command fails, and its own output already names what to fix—the location it actually found, the accepted alternative, or the required form—and the next visible action reads that output rather than repeating the command unchanged.
Guidance. Hold: do not name the fix and do not register a check for it. The output has bounded the next experiment and the worker is already reading it. This concerns reacting to that failure—it does not bar a method or acceptance constraint you would have installed anyway. Intervene if the corrected attempt fails the same way again.
Why. On separate tasks the worker recovered from this signature within one or two turns without help, and messages that named the fix arrived after the worker had already applied it.
Reference examples. (1) crack-7z-hash: the command reported an item missing after its own output had listed that item at a deeper location, and the worker used the listed location next. (2) mteb-retrieve: a rejected identifier came with a compatible alternative in the error, which the worker applied before resolving the next interface error. (3) regex-log: a self-written check failed on an assertion and the worker printed the actual result instead of rerunning the check blindly.
E-06—Route replaced while exploration still advancing. Type. avoid
Time point. during
When to refer. One attempt along the worker's current route fails or returns nothing usable, while the surrounding turns show it varying its approach, following new leads, or not yet having tried the ordinary way of driving the thing it just built.
Guidance. Do not redirect the route, replace the approach, or rewrite standing instructions on that evidence. Let the ordinary next interaction happen or let the varied exploration continue. Act once repeated attempts add nothing, or once a substantial share of the task's time budget is gone and the exploration has not narrowed.
Why. Interventions on this evidence moved workers off routes that were about to succeed and onto more fragile ones that then failed, while unsupervised runs meeting the same signal proceeded and passed.
Reference examples. (1) qemu-startup: a passive connection closed with no output, and a redesign message led to a fragile replacement while another run simply sent the ordinary initiating input and kept the simple service. (2) mteb-leaderboard: a redirection away from a fallback that was producing leads ended in the wrong answer, while runs that continued through the same failure reached the right one. (3) build-pov-ray: a suggested alternate source also failed, and continued independent searching found the working route.
E-10—Ambiguity narrowed before the evidence resolves it. Type. avoid
Time point. during
When to refer. The worker's own output shows several candidate results produced by different readings of the requirement, and nothing it has gathered excludes any of them.
Guidance. Do not send a notice that favours one candidate. If you act at all, use a notice that requires the worker to settle which reading the requirement calls for, from the material it can read, before it picks one.
Why. A message emphasising one candidate was followed by delivery of that candidate alone, while unsupervised runs that kept the ambiguity open investigated further and delivered the complete result.
Reference examples. (1) count-dataset-tokens: a message emphasising one component was followed by an answer containing only that component's subtotal, while passing unsupervised runs combined both.
When the worker has stopped
E-12—Completion shown only indirectly. Type. act
Time point. end
When to refer. The worker has stopped, and the only validation in the trace either discards the output, reuses values it asserted by hand, or comes from something other than the artifact it delivered—the delivered thing has not itself been run and inspected.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 41
Guidance. Send it back to run the delivered artifact end to end under ordinary conditions and inspect what comes out. Accept only after the claimed result has been derived from the delivered thing itself.
Why. Across several tasks a stopped worker presented a check that succeeded while never exercising what it delivered; acceptance failed until the artifact itself was run and its output read.
Reference examples. (1) build-pov-ray: a check that discarded output did not show that the ordinary output path produced a readable result. (2) dna-insert: a reported match was computed from assumed intermediates rather than by recomposing the delivered components. (3) mteb-leaderboard: a correctly formed answer file rested only on a substitute source.
E-13—Delivered artifact contradicts its own trace. Type. act
Time point. end
When to refer. The delivered artifact carries a value, a direction, or an implementation choice that differs from something the worker's own earlier output showed, or from an explicit rule in the requirements.
Guidance. Do not accept on surface form alone. Send it back to reconcile the delivered choice against that earlier evidence or stated rule, regenerate whatever depends on it, and inspect the revised artifact.
Why. Superficially complete artifacts kept a choice their own trace or the stated rule contradicted, and the supervisors accepted them; reconciling the visible discrepancy before acceptance corrected the result.
Reference examples. (1) count-dataset-tokens: a plain result file held one measured component although the trace had measured its companion too. (2) bn-fit-modify: the delivered relations encoded the direction opposite to the stated rule, and the worker's own explanation said so. (3) fix-code-vulnerability: the final source added an error for an input the original had returned unchanged.
E-14—Stated exceptional behaviour never checked. Type. act
Time point. end
When to refer. The requirements call out exceptional, boundary, or previously accepted behaviour, and the trace shows validation only along the routine path.
Guidance. Send it back to exercise those stated cases directly, repair any difference, then rerun the routine validation before accepting.
Why. Routine success left material exceptional behaviour unproved, and in one case a change silently narrowed behaviour that had been accepted before; focused checks either found the defect or established that it was absent.
Reference examples. (1) regex-chess: focused comparisons of the stated exceptional cases found defects the routine validation had passed over. (2) fix-code-vulnerability: the delivered change rejected an input the original accepted, which the main suite did not catch.
Meta-Skills for DeepSWE 1.1
Entries learned offline from supervised and unsupervised runs on other tasks of this benchmark by the same worker model. What they say about those tasks is precedent, not a fact about the task in front of you: anything you tell the worker about this task's files, outputs, or environment must come from your own reads or from the trace.
Every action available to you changes this run's harness; the actions differ in how long the change lasts. A notice reaches one worker turn. A standing instruction (append_worker_prompt or rewrite_worker_prompt), a check, and a probe reach every turn from the worker's next stretch of work onward. Tools, skills, and middleware change the worker's structure.
How to read an entry.
• Type—act: a situation where a harness change helped; hold: a situation that looks like it needs intervention and does not, so leave the run alone; avoid: an intervention that did harm.
• Time point—start (first checkpoint), during (worker working), or end (worker stopped).
• When to refer—the observable situation that brings the entry into play. Match on this.
• Guidance—what to do, or what not to do.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 42
-
Why—what was observed in the training runs.
-
Reference examples—how it looked on training tasks; illustration only.
An entry whose situation you do not see does not apply. Nothing here ranks the entries or states how often each was drawn on. Write in reasoning the IDs of the entries you act on and the IDs of entries whose situation you saw but decided against. If none applies, say so.
At the first checkpoint
The worker has taken one turn. These entries are for this moment only: a standing instruction installed now reaches every one of its remaining turns, and the route it will follow is not yet fixed. Match on the situation as with any other entry.
E-07—Do not repeat an explicit setup prerequisite during initial reconnaissance. Type. hold Time point. start
When to refer. At the first checkpoint, the worker has only performed normal repository reconnaissance and an explicit routine setup prerequisite remains incomplete.
Guidance. Hold: do not spend a notice restating the prerequisite before the worker has begun implementation. Initial reconnaissance is compatible with completing an explicit setup step next, so preserve the notice unless progress later contradicts that expectation.
Why. Across tasks, workers remained in the initial repository state while inspecting it, then performed the stated setup step as their next substantive action; a supervisory reminder did not produce a distinct recovery or outcome.
Reference examples. (1) geo-shapeindex-serialization: workers inspected the repository and then created the required dedicated branch without needing a reminder. (2) ofetch-per-origin-circuit-breaker: the worker reported the default branch during reconnaissance, received a reminder, and then made the same routine branch transition seen in unassisted runs.
While the worker is working
E-01—Audit scoped state across execution and recovery branches. Type. act Time point. during
When to refer. A change introduces or routes through scoped execution state, and a child or caller branch or alternate completion path either fails to receive required state or receives state outside its permitted scope.
Guidance. Send a targeted notice to trace state ownership, lifetime, and every branch or boundary that creates, inherits, establishes, or recovers the state. Require focused checks for intended and excluded paths before finalization.
Why. State placed only for the ordinary caller or normal return can be unavailable to an allowed alternate path, while incorrect propagation can also leak it into an excluded path.
Reference examples. (1) abs-module-cache-flags: a nested module environment did not retain caller-held loader settings. (2) mobly-grouped-test-barriers: shared lifecycle handling established protected context for excluded paths, while another ordinary branch lacked required phase state. (3) awilix-async-container-initialization: an inherited definition was owned by an ancestor while lifecycle status was consulted locally.
E-02—Directly exercise an unproven changed behavior route. Type. act Time point. during
When to refer. The worker's own trace has surfaced a second route for the behaviour it just changed—it named, opened, or ran something on that route—and it has moved on to other work without running that route's behaviour even once.
Guidance. Send one targeted notice about that route. When the worker's own trace already shows what is missing on it—a call that does not forward a setting, a branch that was never wired, or a sibling left at the old behaviour—name that gap and let the worker repair it; asking only for a check leaves the worker to rediscover what the trace already exposed. When the trace shows no such gap, ask instead for a focused
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 43 behavioural check of that route covering representative success and failure, before relying on broad regression results.
Why. Generic suites, adjacent-route checks, or stale focused tests can appear reassuring while leaving changed behavior unexercised; distinct sibling handling can then retain a defect that only direct behavioral checks expose.
Reference examples. (1) numba-stencil-boundary-modes: ordinary behavior was updated while the parallel transformation needed corresponding propagation. (2) valibot-recursive-schema-composition: a synchronous repair left an asynchronous sibling closure-bound, and an async wrapper delegated to synchronous replacement behavior. (3) avilix-async-container-initialization: coverage exercised one injection mode while another mode inferred dependencies differently.
E-03—Escalate incomplete compatibility parity evidence. Type. act
Time point. during
When to refer. A compatibility-sensitive change either differs from established behavior in available evidence or has been checked against only a subset of the required behavior classes.
Guidance. Send a notice to create focused differential checks against the established behavior across the unexercised cases, repair every observed difference, and rerun the comparisons before delivery.
Why. One task exposed a regression after a broad rewrite, while another showed replay-order differences and initially covered only a narrow portion of its compatibility surface.
Reference examples. (1) abs-module-cache-flags: an existing import behavior failed after a loading rewrite and needed restoration. (2) scc-bounded-memory-spilling: bounded replay differed from established output ordering, and broader comparisons later exposed additional output differences.
E-04—Audit new capability wiring to its public route. Type. act
Time point. during
When to refer. A newly introduced control or capability is present in implementation but cannot traverse its owning registration or intended public route.
Guidance. Send a targeted notice to trace the capability from its owning registration through every public entry and receiving handler. Require missing defaults, admission, bindings, or routes to be repaired, then directly exercise each affected public route.
Why. Implementation can be locally complete while omitted registration, admission, handler wiring, or public exposure prevents the capability from being usable end to end.
Reference examples. (1) onedump-dump-encryption-pipeline: direct source loading returned no result when an unrelated enabled-state check was false. (2) valibot-recursive-schema-composition: the implementation was available through one aggregate but absent from the required public-facing aggregate. (3) arcane-drift-detection-baselines: newly used controls were absent from the settings model and default configuration.
E-08—Preserve established write boundaries. Type. act
Time point. during
When to refer. A changed writer performs some externally visible writes outside an established scoped or atomic boundary.
Guidance. Send a targeted notice to inspect the complete write and publication sequence, restore the established boundary for ordinary behavior, and keep new behavior appropriately scoped. Require a focused compatibility or concurrent-observation check before delivery.
Why. Writes outside the established boundary can change existing visibility guarantees or expose observers to partial or mixed results.
Reference examples. (1) sqlite-utils-safe-import-checkpoints: direct writes bypassed the prior connection-context behavior and changed caller-visible persistence. (2) vulture-persistent-analysis-cache: only the primary artifact was safely replaced while companion artifacts were written directly.
E-09—Do not redirect solely for unavailable verification prerequisites. Type. hold
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 44
Time point. during
When to refer. A verification attempt explicitly reports that an external dependency or executable is unavailable and therefore cannot assess project behavior.
Guidance. Hold: do not spend a notice on setup, replacement tooling, or implementation redirection solely for this failure. Leave the worker to use available focused checks, source review, or other substantive validation unless later evidence indicates a behavioral defect.
Why. Unavailable verification prerequisites can block broad or ancillary checks without indicating an implementation problem, while available validation may still support progress.
Reference examples. (1) cattr-spartial-structuring-recovery: broad verification stopped at unavailable imports, and quality-tool attempts reported missing executables or failed downloads; focused checks and review still completed the change. (2) vulture-persistent-analysis-cache: an unavailable ancillary quality command was followed by available repository checks and a successful committed implementation.
When the worker has stopped
E-05—Reopen delivery when concrete evidence refutes completion. Type. act
Time point. end
When to refer. The stopped artifact or its trace contains concrete evidence that a claimed behavior remains wrong, or a corrective edit for it is still outside the commit.
Guidance. Do not accept. Name the specific contradiction the evidence shows—which claimed behaviour, and which observation refutes it—and send the worker back to repair exactly that and commit or amend it. Keep the repair scoped to the contradiction: at this point the worker has little budget left to establish that a wider rewrite broke nothing, and a change that reaches beyond the named gap can fail behaviour that already worked.
Why. Across tasks, final review exposed either visibly incorrect behavior, an implementation form that defeated the claimed guarantee, or a repair stranded after interrupted validation; each meant the delivered commit did not support the completion claim.
Reference examples. (1) abs-module-cache-flags: a resolver repair remained modified but uncommitted after a failing validation-and-amend chain stopped. (2) kysely-window-grouping-helpers: final manual output still showed invalid bound ordering despite the committed completion claim. (3) valibot-recursive-schema-composition: the committed type-level implementation retained an unrestricted recursive position and tested only a marker.
E-06—Validate an uncovered route before accepting a multi-route change. Type. act
Time point. end
When to refer. The worker has stopped, and its own trace shows it identified a second route for the delivered behaviour—it inspected or referred to that route—while the committed change leaves that route untouched and no command in the trace ever exercised it.
Guidance. Do not accept yet. Send the worker back once, naming the route its own trace identified and, where the trace shows it, what that route is missing. Require the repair and its check to stay within that route: a broad rework at this point can break behaviour that already worked, and the worker no longer has the budget to show that it did not.
Why. In one task, narrow checks missed a failure at the interaction boundary, while in another, an inspected secondary route was left unchanged and unsupported by behavioral evidence; both patterns left a plausible required route unverified at delivery.
Reference examples. (1) koota-composite-trait-aspects: focused checks passed, but a temporary integration exercise exposed a runtime failure that required a committed repair. (2) numba-stencil-boundary-modes: failed artifacts changed the primary implementation while leaving the previously inspected conversion route untouched.
all@purpose
Meta²: Reusable knowledge for harness evolution ■ 45