Distilling Agentic Systems: A Roadmap across Models, Artifacts, and Harnesses
Authors: Ziluowen Luo, Senzhang Wang, Chaozhuo Li, Jun Yin, Hao Yan, Ming Cheng, Chenxu Wang, Songyang Liu, +4 more
Organizations: Central South University, ChangSha, Hunan, China · Beijing Academy of Artificial Intelligence, Beijing, China · Hong Kong Polytechnic University, Hongkong, China · Beijing University of Posts and Telecommunications, Beijing, China · University of Illinois at Chicago, Chicago, Illinois, USA
Modern agents increasingly rely on memories, tools, and execution logic, so their competence extends beyond model parameters. This shift exposes a limitation of conventional knowledge distillation, which asks how a student model imitates a teacher model. We define Agent Distillation as the persistent transfer of task-solving knowledge from a teacher agent to a student agent. Our study organizes the field by where transferred knowledge is retained: within the model, as artifacts, through the execution harness, or across substrates. This perspective separates transfer evidence from its outcome and clarifies how knowledge moves between agent components. We develop an evaluation framework that relates retention to causal contribution and deployed utility. Together, these contributions establish a foundation for the reliable, maintainable, and safe development of increasingly complex agentic systems.
Figures & tables
Figure 1. From single successful agent to broader reuse of task-solving knowledge.
Survey
Year
T → S
Substrate Coverage
Cross- Substrate
Transfer Evaluation
Model
Artifact
Harness
Distillation-related Surveys
Gou et al. ( Gou et al., 2021 )
2021
✓
✓
✗
✗
✗
⚫
Xu et al. ( Xu et al., 2024 )
2024
✓
✓
✗
✗
✗
⚫
Yang et al. ( Yang et al., 2025 )
2025
✓
✓
✗
✗
✗
✓
Mansourian et al. ( Mansourian et al., 2025 )
2025
✓
✓
✗
✗
✗
⚫
Table 1. Comparison with representative surveys from the distillation and agent literatures. ✓ denotes systematic treatment as a primary organizing perspective, ⚫ denotes partial treatment, and ✗ indicates that the aspect is outside the scope of the survey.
Figure 2. From model-centered to agent-centered knowledge transfer. Agent Distillation treats the complete agent realization as the unit of teacher–student transfer. Our knowledge substrate-centric view organizes existing approaches according to the primary form in which transferred knowledge persists in the student: the parameteric model , reusable artifacts or the dynamic harness .
Figure 3. A running example of Agent Distillation. (a) A teacher coding agent repairs a repository by recovering from an over-broad patch and verifying localized fix. (b) The trace mixes incidental residue, task-specific information and reusable patterns; filtering and abstraction turn selected evidence into a debugging strategy. (c) Then it is realized in student agents and reused on other tasks.
Internalizes knowledge to directly shape inference and decisions
Artifact
Explicit reusable objects
Memories, demonstrations, plans, code, skills, and tools
Externalizes knowledge for retrieval and reuse across episodes
Harness
Dynamic execution logic
Workflows, routing, verification, recovery, and orchestration logic
Operationalizes knowledge by organizing and regulating execution
Table 2. Principal knowledge substrates in Agent Distillation and their roles in future task solving.
Figure 4. The progression of parametric distillation toward environment-grounded agent policy learning.
Figure 5. Representative artifact forms in Agent Distillation. The classification is determined by what persists in RS+ , rather than by the teacher evidence from which it was constructed or the runtime mechanism that later operates it.
Structured action supervision; interface version matters.
Table 3. Representative benchmarks for Agent Distillation. M, R, and H denote model, artifact, and harness substrates; these are interpretive substrate foci for attribution experiments, not benchmark-internal ground truth.
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.
Haoran Ye, Yuxing Lu, Haonan Dong +2
State Key Laboratory of General Artificial Intelligence, School of Intelligence Science and Technology, Peking University · College of Future Technology, Peking University · Google +1
Agentic search enables large language models to solve knowledge-intensive tasks by interleaving multi-step reasoning with retrieval, yet optimizing this with outcome-based reinforcement learning (RL) provides only sparse supervision. Knowledge distillation can supply denser guidance, and advanced proprietary models with their strong reasoning capabilities are promising teachers. While distilling from proprietary models can densify this supervisory signal, conventional logit-matching is precluded by hidden logits and mismatched tokenizers, whereas raw natural language trajectory imitation transfers superficial stylistic artifacts rather than core reasoning competence. To address the heterogeneous distillation problem and bridge the distribution gap, we propose Multi-Agent Protocol Distillation (MAPD), a joint distillation and RL framework uses a structured, style-normalized protocol as an intermediate representation. An offline multi-agent system (MAS) decomposes each query, retrieves supporting evidence, repairs failed searches, and converts the resulting exploration trace into a JSON protocol containing the task type, reasoning plan, and extractive grounding facts. During training, the protocol is provided only to a privileged branch of the student policy, whose token distributions furnish a dense distillation signal alongside the sparse RL objective. Extensive evaluations across seven QA benchmarks demonstrate that MAPD consistently outperforms competitive distillation and RL, achieving average success rates of 39.4% on Qwen3-1.7B and 44.4% on Qwen3-4B. Crucially, the framework generalizes robustly across diverse proprietary teachers while effectively mitigating the student policy from style drift and verbosity degeneration.
Junlin Liu, Jiangwang Chen, Zixin Song +7
University of Chinese Academy of Sciences · 2Tsinghua University · 3Peking University +3
Memory systems have shown promise for improving agent performance, but their potential remains largely unexplored for small language models, which struggle to generate sufficient successful trajectories on their own. We propose Agent Memory Distillation (AMD), a training-free framework that transfers structured knowledge from a large teacher agent to a small student agent through hierarchical memory. AMD constructs three complementary memory types from successful teacher trajectories: Workflow memory encodes task-level strategies, Subtask memory provides concrete behavioral examples at an intermediate granularity, and Function memory captures per-function calling conventions and common pitfalls. Workflow and Subtask memories are injected proactively at the start of each task, while Function memory is retrieved reactively upon tool-calling errors. We evaluate AMD on three tool-use benchmarks using four student models (4B-8B parameters) with GPT-5-mini as the teacher, achieving average accuracy gains of 27.2%p, 11.2%p, and 3.4%p on AppWorld, BFCL V3, and ToolSandbox, while consistently outperforming existing memory-based baselines. Further analysis shows that Subtask memory contributes the largest gains, teacher effectiveness depends on both teacher capability and student compatibility, and 4B-sized students benefit most from AMD.