Learning meta-skills for designing agent execution environments for test-time AI4AILearning Meta-Skills for Agent Harness Design in Test-Time AI4AI
The Builder learns meta-skills from Target execution feedback, then builds harnesses for unseen tasks accordingly; both model weights are fixed.
- Agent performance depends on both reasoning ability and the execution environment. The authors study how Builder, with weights fixed, learns from Target's execution feedback to build better harnesses for unseen tasks.
- Meta-skills are written in three fields: when, provide, use. On the development set, the Builder starts from an empty library and updates the skill library over two rounds of construction–execution–reflection; at test time the library is frozen, and a new harness is built for each task using the full library or at most two BM25-selected skills.
- With GPT-5.6-Sol as Builder, the full-library macro-average is 65.31%, 8.95 percentage points higher than no-skill construction, and 12.02 percentage points higher on average than directly giving the same library to the Target. When the same model serves both roles, it is 18.71 percentage points higher on average than no-skill.
- The authors state the evidence covers one main Builder, two benchmarks, and one execution per task per condition, with broader applicability and gains relative to construction cost left to future work. Cross-dataset reuse, longer learning histories, selective retention, and repeated executions are also listed as future directions.
- Evaluated models
- Gemini-3.6-FlashQwen3.8-FlashGPT-OSS-120BGemini-3.1-Pro
- Benchmarks
- Harness-BenchNewtonBench
- Metrics
- completion-oracle scoresymbolic-structure accuracymacro-average scorepaired task-bootstrap 95% CI
The research proposes Meta-Skill, which lets a Builder, with model weights frozen, learn principles of "when support is needed and what resources to provide" from Target execution feedback on a development set, then use the frozen skill library to build execution environments for unseen tasks. On Harness-Bench and NewtonBench, the meta-skill with the full skill library improves macro-average performance by 8.95 percentage points over no-skill construction, and by 12.02 percentage points over directly giving the same skill library to the Target. Gains persist when the same model serves both roles, suggesting system-level self-improvement by learning to build better environments.
Paper analysis
What problem does this paper attempt to solve?
With weights fixed, how the Builder turns Target execution experience into reusable support principles.
With weights fixed, how Builder turns the execution results of its own harness into reusable principles, thereby building better execution environments for unseen tasks.
- Scenario and importance: The authors argue that agent performance depends on both reasoning ability and the environment. In test-time AI-for-AI, Builder designs support, and Target solves problems using that support. The authors define a harness as an environment containing instructions, resources, and executable mechanisms, and ask how Builder turns the results of an existing harness into knowledge that supports future tasks.
- Distinction from task skills: Task skills describe how to do a task; Builder needs principles for designing support. The authors state that each meta-skill should specify when support is needed, what capability or resource to provide, and how Target uses it while remaining accountable for judgment.
- Position among existing approaches: In related work, the authors place this paper on the test-time system design side: ADAS and AFlow search agent programs and workflows, Darwin Godel Machine evolves its own agent code, Meta-Harness uses execution feedback to search harness implementations, and strong-to-weak harness uses a stronger Builder to provide executable support to a weaker Target. This paper, with weights fixed, learns reusable construction principles offline from Target execution, then freezes them and reconstructs for each test task.
- Proposed approach: Starting from an empty meta-skill bank, Builder constructs harnesses on development tasks, reviews Target's public execution records and scores, and adds or revises principles accordingly. After learning, the skill bank is frozen, and a new harness is built for each held-out task. Learning changes Builder's external knowledge and the constructed support; both Builder and Target weights remain fixed.
- Observations by the authors: The full-bank meta-skills achieve a macro-average of 65.31% on Harness-Bench and NewtonBench, 8.95 percentage points higher than a no-skill Builder, and 12.02 percentage points higher on average than giving the same bank directly to Target. When the same model serves both roles, the authors state an average improvement of 18.71 percentage points over no-skill construction, and suggest this points to a path for system-level self-improvement by learning to build better environments.
What related research exists?
Related work falls into two lines: test-time system design and agent skills. This paper studies the design principles that support them.
The paper divides related work into two groups and, in Appendix A.2, again compares three nearby works.
AI for AI in Agentic Systems
- Model development: AIDE (Jiang et al., 2025) uses LLM agents to write and improve machine learning pipelines; MLE-Dojo (Qiang et al., 2026) provides an environment for training and evaluating agents that do this engineering work.
- Test-time agent design: Automated Design of Agentic Systems and AFlow (Hu et al., 2025; Zhang et al., 2025) search agent programs and workflows; Darwin Godel Machine (Zhang et al., 2026) evolves its own agent code; Meta-Harness (Lee et al., 2026) uses execution feedback to search harness implementations.
- Strong-to-weak harness: Qian et al. (2026) use a stronger Builder to provide executable support to a weaker Target. The authors state this paper adds offline skill learning to that setting: learning reusable construction principles from Target execution, freezing them, and guiding entirely new harness construction for each test task, with both model weights fixed.
Agent Skills and Meta-Skills
- Procedural knowledge reuse: Voyager (Wang et al., 2023) stores executable routines; ExpeL (Zhao et al., 2024) and Agentic Context Engineering (Zhang et al., 2026) accumulate textual insights and situational playbooks. SkillRL (Xia et al., 2026) co-evolves skills and policies with reinforcement learning; Evo-Harness (Wei et al., 2026) compiles execution experience into transferable problem-solving skills. SkillsBench (Li et al., 2026) measures skill utility with curated packages and deterministic verifiers.
- Meta-level learning: Meta Context Engineering (Ye et al., 2026) learns skills for constructing context files and code; MetaSkill-Evolve (Wang et al., 2026) evolves policies for improving task skills.
Baseline methods and benchmarks
- Baselines: Native environment, No-skill Builder, Direct Builder skills (retrieved or full bank), Independent structured Target skills (retrieved or full bank), Mined free-form Target skills (retrieved or full bank). Evaluation benchmarks are Harness-Bench (Yao et al., 2026) and NewtonBench (Zheng et al., 2026).
Appendix A.2 juxtaposes this paper with Evo-Harness, Meta-Harness, and Meta Context Engineering: the former learns problem-solving guidance, Meta-Harness searches executable harness implementations, and Meta Context Engineering evolves policies for constructing context files and code. The authors state this paper focuses on reusable knowledge for support design, where Builder extracts when, provide, and use from its own harness results, then guides entirely new construction on held-out tasks.
How does the paper address this problem?
On the development set, reflection updates the meta-skill bank; at test time, the bank is frozen and a new harness is built per task.
The authors use a construction–execution–reflection loop to teach the Builder support principles, rather than directly improving the Target. The weights of both Builder and Target are fixed throughout; experience is stored in an external meta-skill bank.
Problem setup
- Roles and environment: B and T are the fixed Builder and Target. Each benchmark provides a baseline environment H0 with native capabilities, an evaluator r, and a budget Cx that covers only Target execution, not Builder construction computation.
- Objective: A harness strategy H maps public task inputs x to an augmented environment Hx of H0. The objective is to maximize expected test performance J(H) = Ex∼ Dtest, τ∼ T(·|x,Hx)[r(x,τ)] under cost(τ) ≤ Cx.
- Separation of learning and evaluation: The Builder learns the strategy through Target execution on development instances and is evaluated on held-out test instances.
Meta-skills and development-period updates
- Definition: A meta-skill is s = (when, provide, use). The when field marks observable conditions needing support; provide specifies the capabilities or resources the environment should supply; use explains how the Target should use the support and which judgments remain its responsibility. Appendix B.1 states that the three fields together do not exceed 192 tokens.
- Workflow: The skill library starts empty as S0. For each development task, the Builder constructs a harness alone using the neutral environment H0, public component interfaces, and the current full skill library; the Target executes within it, producing public execution records and benchmark-native development scores. The same Builder then reviews the current library, the generated program, and public feedback F(e), updating the skill library according to formula (2), until a fixed development-set traversal budget is reached.
- Update rule: Each step identifies an observed error or recurring burden that better support could mitigate, and compares it with the current library: if evidence corrects or strengthens existing guidance, revise; if a different reusable support need appears, add; if no justified update exists, keep unchanged. At most one addition or revision per batch, and it must cite evidence from that batch. The main experiment runs two rounds of development-set traversal for each Builder–Target–benchmark combination, with at most one evidence-based keep, revise, or add per task.
- Information visible during learning: Appendix B.1 states that the primary evidence is the actual submission or its absence, interpreted together with public task requirements, full input–observation pairs, public errors, final artifacts, and the support already provided by the harness. Private reference answers or researcher-written diagnostics are not provided. Revisions must identify the modified skill and current evidence; superseded versions remain archived.
Test-time construction
- Two supply modes: The skill library is frozen as S∗. Full bank places all meta-skills in the Builder context; retrieval uses fixed BM25 against the task's initial public prompt, selecting at most two skills with positive relevance scores.
- Per-task fresh construction: For each test task, the Builder constructs a task-specific harness in a new environment, in which the Target executes and is responsible for the final submission, written as Hx∗ = B(H0, x, K(x, S∗)). The Builder does not see test trajectories, scores, reference answers, or evaluator internals.
- Seven component types: Table 1 lists instructions, memory, context, composed tools, execution control, verification and recovery, and workspace. The corresponding defaults in H0 are generic prompts, empty storage, default history, native tools, default loop, native rules, and empty draft area. Underlying benchmark tools, evaluation budgets, and scoring rules remain fixed. The Builder decides what memory to store, when to retrieve it, and which tools and resources the Target receives.
- Builder working environment: The authors provide shared interfaces, execution isolation, design guidance, and resource limits; construction permissions are identical across conditions, and interface repair opportunities are bounded. Appendix B.2 states that harness generation output is capped at 16K tokens, candidates violating component interfaces get at most two repairs; skill update calls have an 8K token output cap. Temperature is 0 for all, and high reasoning effort (or corresponding thinking mode) is requested.
Success criteria and budgets
- Harness-Bench: Reports deterministic completion-oracle scores on 95 test tasks, averaged and converted to percentages. Each task allows 30 model rounds, 30 tool calls, and 96K cumulative tokens.
- NewtonBench: Reports symbolic-structure accuracy on 292 test tasks. Each task allows 12 rounds, 10 tool calls, and 192K tokens; Appendix Table 5 also states that a single experiment call may query at most 20 entries.
- Failure scoring: End-to-end evaluation, divided by the fixed number of test cases. Valid native results are retained; audited harness construction failures score 0 because there is no executable harness. Appendix B.1 states that all claimed test tasks remain in the denominator.
What experiments did the paper conduct?
Full-library macro-average 65.31%, 8.95 points higher than no-skill, 12.02 points higher on average than direct delivery.
Experimental setup
- Models: In the main experiment, Builder is GPT-5.6-Sol. Targets are Gemini-3.6-Flash, Qwen3.8-Flash, and GPT-OSS-120B. The self-improvement experiment additionally uses Gemini-3.6-Flash and Gemini-3.1-Pro in both roles; in the transfer experiment, the receiving Builder is Gemini-3.1-Pro.
- Data: In Table 2, Harness-Bench has 106 problems total, with 11 for development and 95 for testing; NewtonBench has 324 problems, with 32 for development and 292 for testing. About 10% is used for learning, and the rest only for evaluation. There is no separate validation split.
- Learning budget: Each Builder–Target–benchmark starts from an empty bank, with two passes over the development set, and at most one evidence-based keep, revise, or add per task. At test time, the bank is frozen, and a new harness is built per problem.
- Metrics: Harness-Bench uses a deterministic completion-oracle score (95 problems, averaged and converted to percentage); NewtonBench uses symbolic-structure accuracy (292 problems). Construction failures count as 0. Uncertainty is given as 95% intervals from paired-task bootstrap, and the paper states these intervals are not adjusted for multiple comparisons.
- Baselines: Native environment; No-skill Builder (same construction space and budget, empty skill bank); Direct Builder skills (the same meta-skills given directly as instructions to Target, without Builder-generated harness components); Independent structured Target skills (GPT-5.6-Sol with equal budget iteratively extracts structured problem-solving skills from Target's execution in a neutral environment, given directly to Target); Mined free-form Target skills (GPT-5.6-Sol uses one offline pass to organize neutral-environment trajectories into free-form notes). Skill supply is either full-bank or BM25 top-2.
- Execution budget: Harness-Bench has 30 rounds, 30 tool calls, and 96K tokens per task; NewtonBench has 12 rounds, 10 tool calls, and 192K tokens. Limits are the same across conditions. The paper does not report the number of repeated runs; Appendix A.3 lists independent learning runs and repeated executions as future practices to characterize variance.
Main results
Table 3 shows test scores (%) on the fixed test split with GPT-5.6-Sol as Builder. Bold indicates the best in each column as marked by the authors.
Swipe horizontally to read the table
Method Gemini / HB Qwen / HB OSS / HB Gemini / NB Qwen / NB OSS / NB Macro Native environment 37.35 69.63 52.46 55.48 54.11 39.38 51.40 Builder, no skills 53.29 71.51 63.02 56.16 50.34 43.84 56.36 Direct skills, all 42.38 68.70 58.34 58.56 55.82 35.96 53.29 Indep. Target skills, all 40.59 72.89 56.63 67.81 52.40 35.96 54.38 Mined Target skills, all 40.70 66.10 66.01 41.44 54.11 39.04 51.23 Meta-skills, retrieved 61.50 74.81 64.74 64.04 57.88 39.73 60.45 Meta-skills, all 67.81 72.64 68.22 68.84 63.70 50.68 65.31 HB is Harness-Bench, NB is NewtonBench, OSS is GPT-OSS-120B. The per-cell numbers for retrieved Direct, Independent, and Mined are in Table 3, with macros of 52.42, 52.87, and 51.59, respectively.
- Implementation relative to direct delivery: The authors state that giving the same full bank to Builder is higher than giving it directly to Target in all six settings, with the largest improvement of 25.43 percentage points and an average of 12.02 percentage points. The authors attribute the gain to turning declarative meta-skills into persistent state, executable tools, verification logic, or control decisions, rather than just exposing knowledge to Target.
- Experience relative to construction ability: The full-bank Builder is higher than the no-skill Builder in all six settings, with an average gain of 8.95 percentage points. The authors state the gain varies with Target and benchmark, and accumulated guidance needs to be adapted to the Target and task. Relative to no-skill, NewtonBench shows positive gains for all three Targets, averaging 10.96 percentage points, and Harness-Bench averages 6.95 percentage points.
- Full bank relative to retrieval: The full bank is higher than top-2 retrieval in five of the six settings; the authors state it is on average 7.19 percentage points higher on NewtonBench. The exception is Qwen on Harness-Bench: retrieved 74.81, full bank 72.64. The authors suggest broader access is not uniformly beneficial.
Is skill refinement monotonic?
Figure 2 freezes the skill bank after zero, one, and two development passes and evaluates on the full test split for Gemini and Qwen.
- NewtonBench: The authors state the first pass changes scores by less than 1.1 percentage points for each Target, and the second pass adds 13.01 percentage points for Gemini and 12.33 for Qwen. Annotations include Gemini 50.3, 56.2, 68.8 and Qwen 55.8, 51.4, 63.7 (x-axis is refinement passes). The average gain from zero to two passes across all settings is 10.42 percentage points. Based on manual inspection, the authors believe early updates collect local observations, and later revisions connect them into reusable interventions.
- Harness-Bench: The authors state Gemini rises each pass, while Qwen drops 4.06 percentage points from its first-pass peak. Annotations include 53.3, 71.5, 59.8, 76.7, 67.8, 72.6. The authors suggest revisions may over-tighten guidance toward recent evidence and recommend using development-only evidence to decide whether to continue, keep an earlier version, or roll back.
Same-model self-improvement and transfer
- Self-improvement: Figure 3(a) uses Gemini-3.6-Flash and Gemini-3.1-Pro, with construction, reflection, and execution done by the same model, across three settings. The authors state Builder meta-skills are on average 18.71 percentage points higher than no-skill, and 14.14 percentage points higher than skills given directly to Target. Annotated absolute scores and gains relative to no-skill include 77.4 (+21.9), 77.7 (+25.3), 75.7 (+8.9); other bar numbers include 55.5, 64.0, 52.4, 55.1, 66.8, 69.2. The authors view this as another optimization axis without updating weights or relying on a stronger teacher.
- Cross-Builder: Figure 3(b) uses Qwen-Flash as Target. The authors state that on NewtonBench, the Sol-to-Qwen bank gains 13.36 percentage points under Sol, and drops 4.45 percentage points when transferred to Gemini-Pro; on Harness-Bench, the same transfer gains 2.72 percentage points. The authors note all confidence intervals include 0, so performance gains remain uncertain. Gemini-Pro's own bank is 3.69 percentage points higher than the imported Sol-to-Qwen bank on Harness-Bench and 9.93 percentage points higher on NewtonBench. Giving Sol's bank learned from Gemini execution to Gemini-Pro, then constructing harnesses for Qwen, yields gains of 4.58 percentage points on Harness-Bench and 5.48 on NewtonBench; on NewtonBench, this bank is only 0.68 percentage points lower than Gemini-Pro's own Qwen bank.
Component ablation and outcome transfer
- Components: Table 4 freezes constructed harnesses on NewtonBench, removing the execution controller, or removing memory plus context, compared to the main-table full-bank execution. Removing the controller: Gemini-3.6-Flash goes from 68.84 to 55.48 (−13.36, 95% CI [−18.49, −8.22]), Qwen-Flash from 63.70 to 58.90 (−4.79, [−10.27, 0.68]), and GPT-OSS-120B from 50.68 to 49.66 (−1.03, [−6.51, 4.11]). Removing memory plus context gives 66.78 (−2.05), 59.59 (−4.11), and 54.11 (+3.42), respectively, with all three intervals containing 0. The authors state only Gemini's controller interval excludes 0; memory plus context does not establish a reliable overall effect.
- Outcome transfer: Figure 4 pairs the full bank and no-skill across all model–task pairs in the six main settings. On NewtonBench, no valid submissions drop from 394 to 254 (35.5%), correct discoveries rise from 439 to 535 (21.9%); recovery from no valid submission to correct law is 145, and regression is 46; valid but incorrect submissions rise from 43 to 87. On Harness-Bench, full successes increase from 59 to 67, which the authors attribute mainly to partial-to-full success. All three Targets improve overall on NewtonBench by 6.85–13.36 percentage points; the authors state gravity, radioactive decay, and Hooke's law have positive category point estimates across models. On Harness-Bench, each Target has gains on SRE/release tasks, with mixed effects elsewhere; GPT-OSS improves overall by 5.20 percentage points but drops 2.23 percentage points on vertical workflows.
Other ablations and analyses
- Retrieved main results (Table 3 macro): Direct 52.42, Independent structured Target skills 52.87, Mined free-form 51.59, meta-skills retrieved 60.45.
- On Harness-Bench, Qwen's Independent structured Target skills (full bank) is 72.89, higher than that column's meta-skills full bank of 72.64; GPT-OSS's Mined free-form retrieved is 71.12, higher than that column's meta-skills retrieved 64.74 and full bank 68.22.
- On NewtonBench, Gemini's Independent structured Target skills (retrieved and full bank) is 67.81, lower than the full-bank meta-skills 68.84, and higher than the no-skill Builder 56.16.
- The appendix case study traces two test episodes: how principles flow through Builder-written code and Target tool calls to the final product; one NewtonBench submission is accepted by the native evaluator as equivalent to the reference law, with symbolic accuracy 1 and RMSLE 0, while on the same task no-skill is valid but incorrect (symbolic accuracy 0, RMSLE 0.092), and Direct-all ends with a model failure and no submission.
- The paper does not report query counts or wall-clock time comparisons across conditions; Table 5 lists per-task limits, but the main text does not give measured times.
What are some points that can be further explored?
The authors leave broader Builders, tasks, and gains relative to construction cost as future work.
Limitations and future directions noted by the authors
- Evidence scope and cost (Section 6, Message 3): The authors state that the evidence covers one main Builder, two benchmarks, and executions taken once per task and per condition. Establishing broader applicability would require more diverse Builders and tasks, and evaluating performance gains relative to construction cost, which the authors leave to future work.
- Cross-dataset reuse (Appendix A.2): The authors state that the current results establish usefulness on new tasks within known categories and mechanisms, covering workflow execution and scientific discovery; cross-dataset reuse is beyond the scope of this evaluation and is left for future work. The authors propose a hypothesis: skill granularity is a central issue for broader reuse.
- Stability and mechanisms (Appendix A.3): The authors state that the empirical effects depend on the evaluated task list, model, learned library, and recorded executions. Independent learning runs, repeated executions, and alternative task partitions can characterize variation across different experience histories; targeted interventions on individual principles and component interactions can refine the causal account of how support works.
- Broader reuse (Appendix A.3): Extending reuse across datasets, unseen task families, and different tool interfaces is described by the authors as a promising next step.
- Longer learning histories (Appendix A.3): The current setup freezes deployment after two rounds of development. The authors wish to study how principles are preserved, revised, and combined over longer task streams; changes between refinement rounds motivate selective retention based on development-set evaluation. Larger libraries also offer opportunities for adaptive retrieval and skill composition.
- Deployment targets (Appendix A.3): The experiments study performance under a fixed Target interaction budget, with Builder learning and construction outside that execution budget. The authors state that a complementary goal at deployment is to allocate a joint compute or latency budget across learning, construction, and execution according to workload; how reusing learned libraries, caching common support components, and adjusting construction effort per task affect this allocation is left for future work. Section 5.1 also suggests that update rules use development-set-only evidence to assess revision confidence and decide whether to continue, keep the earlier version, or roll back.
Experimental coverage
- In the main tables, the tested Targets are Gemini-3.6-Flash, Qwen3.8-Flash, and GPT-OSS-120B, with GPT-5.6-Sol as the Builder; Gemini-3.1-Pro also appears in the same-model and transfer settings (Sections 4.1, 5.2, 5.3).
- The benchmarks are Harness-Bench (test 95) and NewtonBench (test 292); development sets are 11 and 32, respectively (Table 2). Skill learning is two rounds of development-set traversal, with at most one keep, revise, or add per task.
- Comparisons include the Native environment, No-skill Builder, Direct Builder skills, Independent structured Target skills, Mined free-form Target skills, and the full library versus BM25 top-2 (Table 3).
- Component ablations on NewtonBench remove the controller, or remove memory and add context, and report unadjusted pairwise task bootstrap 95% intervals (Table 4). Result transfer is broken down by Harness-Bench task category and NewtonBench physical mechanism (Figure 4).
- The paper reports per-task limits on rounds, tool calls, and tokens (Section 4.1, Table 5), but does not report the number of repeated executions per condition; Appendix A.3 lists repeated executions as a follow-up analysis that could be used to characterize variation.
Summarize the main content of the paper
A frozen meta-skill library guides the Builder in building harnesses for unseen tasks, with weights kept fixed.
The authors study test-time AI4AI: when both Builder and Target weights are fixed, Builder learns how to construct better execution environments for Target.
- Problem: Task skills teach Target how to solve problems; the authors seek support design principles. Meta-skills use when, provide, and use to specify when to support, what to provide, and how Target uses it while retaining judgment responsibility.
- Method: On the development set, starting from an empty bank, Builder constructs harnesses, Target executes, and Builder makes at most one evidence-based keep, revise, or add based on public feedback, over two passes, then freezes. At test time, using the full bank or at most two BM25 items, a new harness is built for each held-out task on H0. Seven optional component types include instructions, memory, context, combined tools, execution control, verification and recovery, and workspace. Target execution budget is fixed; construction computation does not count against that budget.
- Main results: With GPT-5.6-Sol as Builder, the full bank achieves a macro-average of 65.31% across six settings on Harness-Bench and NewtonBench (Table 3), 8.95 percentage points higher than a no-skill Builder, and on average 12.02 percentage points higher than giving the same bank directly to Target, and is higher than direct delivery in all six settings. The full bank is higher than top-2 retrieval in five settings, with the exception of Qwen on Harness-Bench.
- Other results: In three settings where the same model serves both roles, it is on average 18.71 percentage points higher than no-skill. On NewtonBench, the second refinement pass brings Gemini +13.01 and Qwen +12.33 percentage points, while on Harness-Bench Qwen drops 4.06 percentage points from its first-pass peak. Removing the controller drops Gemini-3.6-Flash on NewtonBench from 68.84 to 55.48. No valid submissions drop from 394 to 254, while valid but incorrect submissions rise from 43 to 87.
- Authors' conclusions: The authors believe these comparisons highlight the value of translating experience into executable support; component and transfer results point to adapting reusable principles to each model and task. The same-model experiments are used by the authors to illustrate that a model can improve itself at test time by learning to build better support for itself. The authors also state that the current evidence is one main Builder, two benchmarks, and one execution per task per condition, with broader applicability and gains relative to construction cost left to future work.