Harness-Zero: Harness Distillation via Agent-as-Harness

Hugging Face Daily Papers Papers

Summary

This paper introduces Harness-Zero, a method for distilling optimized agent harnesses into large language models via agent-as-harness, significantly boosting task performance in knowledge work, tool use, and science domains even after specialized harnesses are removed.

Agent harnesses, the external systems that mediate model-environment interaction, can substantially improve agent performance, but their gains remain tied to the harness at deployment. Because the best harness varies across domains, instances, and models, a general-purpose agent must either settle for a suboptimal shared harness or route among an ever-growing set of specialized ones. We therefore study agent harness distillation: using a domain- or instance-optimized harness as training-time guidance and transferring the behaviors it induces into model weights, so that its gains survive under a single fixed target harness. The challenge is that the two harnesses differ in action space and available information, so guidance from the optimized harness cannot serve directly as supervision for the target one. We introduce Harness-Zero, which enables harness distillation through agent-as-harness. Guided by the optimized harness, a harnessing agent corrects student responses before execution in the target harness's action space, turning harness guidance into training demonstrations. Fine-tuning on the resulting trajectories internalizes harness-induced behavior into the model, so the specialized harness can be removed at deployment. Our experiments spanning knowledge work, tool use, and science domains show that: (1) For frontier LLMs using the same evolved harness, agent-as-harness outperforms code-as-harness. (2) With the specialized harness removed at deployment, Harness-Zero improves the base model's macro-average task success from 23.3% to 44.3%, even exceeding the 41.7% it reaches with that harness still attached. (3) Harness-Zero recovers harness-induced behaviors absent from the base model, with 82.3% average recovery across 28 patterns in the three domains.
Original Article
View Cached Full Text

Cached at: 09/22/26, 07:27 AM

Paper page - Harness-Zero: Harness Distillation via Agent-as-Harness

Source: https://huggingface.co/papers/2609.24974

Abstract

Agentharnesses,theexternalsystemsthatmediatemodel-environmentinteraction,cansubstantiallyimproveagentperformance,buttheirgainsremaintiedtotheharnessatdeployment.Becausethebestharnessvariesacrossdomains,instances,andmodels,ageneral-purposeagentmusteithersettleforasuboptimalsharedharnessorrouteamonganever-growingsetofspecializedones.Wethereforestudyagentharnessdistillation:usingadomain-orinstance-optimizedharnessastraining-timeguidanceandtransferringthebehaviorsitinducesintomodelweights,sothatitsgainssurviveunderasinglefixedtargetharness.Thechallengeisthatthetwoharnessesdifferinactionspaceandavailableinformation,soguidancefromtheoptimizedharnesscannotservedirectlyassupervisionforthetargetone.WeintroduceHarness-Zero,whichenablesharnessdistillationthroughagent-as-harness.Guidedbytheoptimizedharness,aharnessingagentcorrectsstudentresponsesbeforeexecutioninthetargetharness’sactionspace,turningharnessguidanceintotrainingdemonstrations.Fine-tuningontheresultingtrajectoriesinternalizesharness-inducedbehaviorintothemodel,sothespecializedharnesscanberemovedatdeployment.Ourexperimentsspanningknowledgework,tooluse,andsciencedomainsshowthat:(1)ForfrontierLLMsusingthesameevolvedharness,agent-as-harnessoutperformscode-as-harness.(2)Withthespecializedharnessremovedatdeployment,Harness-Zeroimprovesthebasemodel’smacro-averagetasksuccessfrom23.3%to44.3%,evenexceedingthe41.7%itreacheswiththatharnessstillattached.(3)Harness-Zerorecoversharness-inducedbehaviorsabsentfromthebasemodel,with82.3%averagerecoveryacross28patternsinthethreedomains.

View arXiv pageView PDFGitHub1Add to collection

Get this paper in your agent:

hf papers read 2609\.24974

Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2609.24974 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2609.24974 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2609.24974 in a Space README.md to link it from this page.

Collections including this paper0

No Collection including this paper

Add this paper to acollectionto link it from this page.

Similar Articles

HarnessX: A Composable, Adaptive, and Evolvable Agent Harness Foundry

Hugging Face Daily Papers

HarnessX is a foundry for composable, adaptive, and evolvable AI agent harnesses that uses compositional primitives and trace-driven evolution to improve agent performance. Across five benchmarks, it achieves an average gain of +14.5% (up to +44.0%), demonstrating that runtime interface evolution is a complementary lever to model scaling.

best of the best agentic harnesses do this…

Reddit r/AI_Agents

The author shares insights on building effective agent harnesses: the best ones minimize LLM reliance for trivial tasks and reserve LLMs for complex reasoning, distinguishing genuine harnesses from simple wrappers.