Harness-Zero / paper deep dive
Harness distillation via agent-as-harness

What if the harness could teach the model?

Harness-Zero turns an evolved agent harness into training-time guidance, then distils the behaviours it induces into model weights. At deployment, the specialised scaffolding can be removed.

Haoran Ye · Yuxing Lu · Haonan Dong · Zhaochen Su · Guojie SongarXiv:2609.24974v1 · 21 September 2026
01 / 21
Plain-English summary

Keep the behaviour. Lose the scaffolding.

An optimised harness may know how an agent should inspect state, use tools, verify outputs, or avoid risky moves. Harness-Zero uses a reviewer agent to translate that guidance into corrections the student can execute under its ordinary, minimal harness.

23.3 → 44.3%

Macro-average task success after fine-tuning Qwen3.5-9B. The distilled student runs with the fixed target harness alone, without the evolved harness, private reference harness, or reviewer.

Benefit 01 · portability

Specialised harness gains survive a fixed deployment interface.

Benefit 02 · reuse

Procedures can be internalised once, instead of re-routed through many harnesses.

Benefit 03 · leverage

Harness engineering becomes a source of training signal, not only runtime code.

Paper abstract; § 4.3 · Figures are reproduced as an explanatory synthesis.
02 / 21
The problem

Runtime scaffolding is powerful, but its gains are sticky.

Specialised harnesses improve agents

  • Tools and workflows extend what the model can do.
  • Middleware can block, verify, or reshape actions.
  • Skills and memory supply procedural guidance.

But deployment inherits the scaffolding

  • A shared harness leaves domain-specific gains unused.
  • Many harnesses add routing, context, calls, and cost.
  • Harness assumptions can go stale as models change.

The research question: can we use a specialised harness at training time, then make its useful behaviours available under a single fixed target harness?

Paper § 1 · Introduction
03 / 21
Section one

Make the harness a temporary teacher.

First, understand the vocabulary and the response-boundary loop that makes cross-harness supervision possible.

01
04 / 21
Four moving parts

Same model. Different jobs.

The trick is to separate the student’s visible operating loop from the harnessing agent’s private review context.

Key constraint
Every accepted correction must be a complete response valid in the student’s native action space.

h

Target harness. Fixed, minimal runtime interface used at deployment.

h*

Evolved harness. Domain-specific scaffolding optimised on training tasks.

K

Reference harness. Private adaptation of h* for review, relative to h.

πH

Harnessing agent. Reviews proposals and passes or replaces them.

Paper § 3.1–3.2 · Notation simplified for readability.
05 / 21
The core mechanism

Translate guidance at the response boundary.

01 · STUDENT

Propose

The student produces yₜ under the fixed target harness h.

02 · REVIEW

Inspect privately

πH reads the current state, proposal, and reference harness K.

03 · DECIDE

Pass or replace

Sound proposals pass; weak ones get the smallest coherent correction.

04 · EXECUTE

Learn from reality

The accepted response runs through h; its observation returns to the student.

Student-visibleTask · accepted responses · environment observations
PrivateK · review history · reviewer reasoning

The rejected proposal and private review are not added to the student-visible trajectory. Reviewer-perspective reasoning is masked from the fine-tuning loss.

Paper § 3.2–3.3 · Equation (3)
06 / 21
A concrete interaction

Minimal intervention is the supervision signal.

Pass · unchanged

Sound proposal

load_workbook()
inspect headers
edit target range
save output

The reviewer leaves it intact. The student gets credit for the full behaviour.

Harnessing agent πH

Uses K to spot missing procedure, then edits only what is needed.

Replace · coherent

Incomplete proposal

finish script
return answer

The reviewer inserts a student-native check, such as reloading the saved workbook and comparing pre-filled cells.

Why this matters for distillation: the correction is grounded in what the student can observe and execute, so the resulting trajectory is legal under h.

Paper Figure 1 and § 3.2 · Worked example: § B.2
07 / 21
Section two

Does the behaviour actually move into the weights?

The experiments compare runtime harnessing, post-training distillation, alternative supervision signals, and fine-grained behavioural recovery.

02
08 / 21
Experimental setup

Three domains. One minimal target harness.

SpreadsheetBench Verified

Real-world spreadsheet manipulation. 300 tasks for evolution and collection, 100 held out.

AppWorld

Interactive tool use across simulated applications. 147 tasks for training, 168 held out.

USPTO Retrosynthesis

Single-step precursor prediction. 500 balanced training tasks, 100 disjoint test tasks.

Student: Qwen3.5-9B · LoRA SFT · two epochs

Harnessing agent: GPT-5.6 Sol

Harness evolution: Kimi K3 under Kimi Code

Target harness h
A fixed mini-SWE-agent-style harness with a system prompt and one Bash execution tool.

Paper § 4.1 · Benchmark metric is pass@1 for SpreadsheetBench/USPTO and SGC for AppWorld.
09 / 21
Result one · inference-time comparison

Agent-as-harness beats code-as-harness on average.

With the evolved guidance adapted into K, the reviewer averages 81.1% across six benchmark–model settings, compared with 78.1% for the evolved harness mounted as code.

68.6
78.1
81.1
+27.6%

Relative improvement over the fixed target harness in the paper’s six-setting average.

An empty K averages 69.2%, so the review loop alone explains little of the gain. The adapted guidance is doing the work.

Paper § 4.2 · Table 1 · Six settings across SpreadsheetBench, AppWorld, and USPTO.
10 / 21
Result two · deployment-time comparison

The distilled student surpasses the specialised harness.

SettingSpreadsheetBenchAppWorldUSPTOAverage
Base model under h31.026.812.023.3
Base model under h*39.048.238.041.7
Generic DeepAgents35.019.67.020.5
Harness-Zero under h44.058.930.044.3
+21.0 pts

Absolute macro-average improvement from 23.3% to 44.3%. The distilled model runs under h alone at deployment.

Easy to internalise

Procedures for state inspection, targeted edits, and verification transfer well.

Harder to internalise

USPTO’s reaction priors, candidate generation, and executable chemistry validation remain partly external.

Paper § 4.3 · Table 2 · Values are task success percentages.
11 / 21
Result three · ablation

Answer access is not the same as useful supervision.

The best training signal starts from the student’s own trajectory and repairs it in the student’s action space. Stronger demonstrations alone do not transfer reliably.

12%
3%
15%
30%

Action-space compatibility is the hinge

Trajectories collected under h* teach the student to call tools it will not have at deployment. Harness-Zero avoids this mismatch by expressing every correction through h.

Paper § 4.4 · Table 3 · USPTO test pass@1 under h after the same SFT recipe.
12 / 21
Result four · behavioural recovery

Most harness-exclusive patterns reappear.

The authors mined 28 behaviours that appeared under h* but not under h, then measured whether the distilled model recovered them under h alone.

82.3%

Average recovery across the 28 selected patterns.

SpreadsheetBench · 18 patterns

Examples: inspect before editing, protect pre-filled cells, reload saved workbooks, avoid fragile coordinates.

USPTO · 6 patterns

Examples: parse with RDKit first, enumerate candidates, validate and canonicalise SMILES.

AppWorld · 4 patterns

Examples: retrieve complete pages, read back mutations, avoid repeated failed calls, choose action vs answer.

The base model scores 0% by construction on these selected patterns, because each pattern was chosen to be absent under h.

Paper § 4.5 · Table 4 · Recovery is pattern-specific, not a claim of universal capability.
13 / 21
Read the result honestly

Harness-Zero narrows the harness. It doesn’t erase it.

Reviewer quality

The method depends on a capable harnessing model. With weaker reviewers, intervention can become harmful.

Collection cost

Reviewing every proposal adds a model call at collection time. The paper reports 2.4× mean USPTO latency.

Expressivity

Some harness mechanisms, especially context management, are not directly expressible as student responses.

The strategic implication: harness development can become a scalable source of training data. Better models build better scaffolds; the scaffolds return reusable behaviour to the weights.

Paper § 5 · Limitations and Future work
14 / 21
Section three

How to build a useful first version.

The paper’s method is a training pipeline. Treat it as a disciplined data-generation loop, not as another runtime agent wrapper.

03
15 / 21
Step-by-step guide

Six bounded moves from harness to weights.

Define h

Freeze the deployment interface: tools, context contract, turn limits, and observables.

Evolve h*

Use training failures to improve domain-specific tools, middleware, skills, and memory.

Adapt into K

Convert runtime interventions into review criteria and student-native action recipes.

Wrap πS

At each response boundary, send the proposal and new visible events to πH.

Collect Dreview

Keep unchanged proposals and minimal corrections; hide private reviewer reasoning.

Fine-tune + remove

SFT accepted responses under h, then evaluate the student under h without h* or πH.

Paper § 3 · Implementation sequence distilled into an engineering checklist.
16 / 21
The adaptation step

Change the audience, not the intent.

Tools

Student-facing tool becomes a specification for an action recipe the reviewer can construct using h.

Middleware

Execution rule becomes review middleware: a private alert that fires when a proposal violates the intent.

Skills

Instruction becomes a diagnostic criterion: what evidence should appear before the reviewer passes?

Memory

Prior experience becomes failure patterns and intervention guidance, not hidden state injected into the student.

Domain prompt

State the review policy explicitly: when to intervene, how much to change, and what the student can observe.

Grounding rule

If evidence is missing, propose an h-valid check. Never consult hidden solutions or verifier feedback.

Paper § 3.1 and Appendix B · Adaptation is relative to the fixed target harness h.
17 / 21
Reference pseudocode

Keep the reviewer private, the trajectory legal.

agent_as_harness.py
for event in student_rollout:
  proposal = student.propose(visible_state)
  decision, replacement = reviewer.review(
      visible_state, proposal, K, private_history
  )

  accepted = proposal if decision == "PASS" else replacement
  observation = target_harness.execute(accepted)
  reviewed.append(accepted, observation)
  visible_state = visible_state + accepted + observation

# SFT on accepted responses only;
# mask reviewer-perspective reasoning.

Three non-negotiables

  • Replacement is a complete h-valid response.
  • Reviewer cannot inspect hidden task solutions.
  • Only accepted response + observation enters the student trajectory.

Deployment target

(distilled student, h)
No h* · no K · no πH.

Paper § 3.2–3.3 · Pseudocode is an explanatory reconstruction, not source code from the paper.
18 / 21
How to know it worked

Evaluate transfer, not just collection success.

Hold out tasks and domains

Keep a disjoint test set. If possible, add a held-out harness or model to test portability.

Compare the right baselines

Base under h, base under h*, distilled under h, generic harnesses, and direct teacher distillation.

Mine harness-exclusive behaviours

Detect procedures that appear under h* but not h, then score recovery under h after distillation.

Audit legality and privacy

Count unavailable-tool calls, leaked reviewer reasoning, hidden-state access, and turn-limit failures.

Do not optimise the wrong number

Harness-Zero’s ablation shows that high collection success can produce poor distillation. Oracle-answer review reached 98.6% collection success but only 15% test pass@1, while K-guided review reached 59.4% collection success and 30% test pass@1.

Measure whether the student learns reusable procedure, not whether the temporary teacher can finish the training tasks.

Paper § 4.4–4.5 · Tables 3–4
19 / 21
Where this could be useful

Start with behaviours you can observe and verify.

AI product agents

Distil reliable inspect → act → verify routines into a smaller deployment model for support, operations, or internal workflows.

Scientific agents

Turn domain harness checks into model behaviour while keeping the execution surface minimal and auditable.

Tool-heavy knowledge work

Transfer disciplined state management, mutation read-back, and completion criteria without carrying a large generic tool suite.

A sensible first pilot: choose one workflow with clear state transitions, a small action space, and measurable procedural failures. Spreadsheet-like data mutation is a better starting point than open-ended research reasoning.

Synthesis grounded in paper §§ 4–5; the pilot recommendation is an implementation judgement.
20 / 21
The takeaway

Harnesses can be more than runtime scaffolds. They can become training infrastructure for the behaviours we want models to carry.

The strongest lesson is not “add a reviewer”. It is: translate specialised guidance into the student’s legal action space, preserve the student’s state, and evaluate what survives when the scaffolding is gone.

Read the paper

Deck prepared from the attached paper. Metrics and claims are attributed to the paper; recommendations labelled as synthesis are design judgements.

Thank you · Use O for overview, F for fullscreen, ← / → to navigate.
21 / 21
← → navigate · O overview · F fullscreen