JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolution
AI智能体的实力不只取决于模型本身,还取决于包裹模型的'执行框架',这项研究训练了一个能为每个新任务即时生成该框架的AI
AI智能体的表现不仅由语言模型本身决定,更取决于包裹它的'harness'(执行框架)——即记忆管理、规划策略、行动规则和工具调度方式。JIT-Agent是一个270亿参数的模型,能针对任意现成的智能体大模型,在任务到来的那一刻即时生成、修复并持续进化专属执行框架,而不再依赖人工为每类任务单独设计。搭配JIT-Agent生成的执行框架后,DeepSeek-V4-Flash在多个基准测试上超越了GPT-5.6,原本已经很强的GLM-5.2最多也获得了20.2分的提升。
METAL LAB 解读图
JIT-Agent的三阶段训练与运行流程
证据状态已报告实测结果
- 四模块执行框架协议将执行框架统一为记忆(Memory)、规划(Planning)、行动(Action)、能力调度(Capability)四个固定模块,并用HarnessFactory重新实现13种代表性现有框架作为初始素材库。
- 第一阶段:定制生成学习模仿更强教师模型生成的任务适配框架示例,并学习优先选择在效果和效率上同时更优的框架。
- 第二阶段:修复学习当生成的框架运行失败时,模型根据编译错误、接口不匹配、运行异常等诊断信息,在最多两轮修复内学会将其修复为可执行状态。
- 第三阶段:Evo-GDPO在线进化将新候选框架与档案库中当前最佳框架在奖励、延迟、成本上比较,只保留能突破现有前沿的设计,通过强化学习持续优化。
- 推理部署训练完成的JIT-Agent在新任务到来时即时生成专属执行框架,包裹任意现成大模型执行任务,并根据执行反馈持续更新。
他们做了什么
- 问题:智能体的能力由'模型+执行框架'共同决定,但过去执行框架都是人工针对具体任务手工设计的,难以规模化扩展。
- 方法:JIT-Agent将执行框架统一形式化为四个固定模块——记忆(Memory)、规划(Planning)、行动(Action)、能力调度(Capability),并训练模型在任务到来时即时生成对应的可执行代码框架。
- 训练流程分三阶段:第一阶段模仿更强教师模型生成的任务适配框架示例;第二阶段学习根据执行失败时的诊断报告(编译错误、接口不匹配等)修复框架;第三阶段(Evo-GDPO)通过在线强化学习,让模型不断提出在奖励、延迟和成本上超越已有框架的新设计。
- 实测结果:搭配JIT-Agent生成框架的DeepSeek-V4-Flash在DeepSearchQA上比GPT-5.6高9.1分,在PinchBench上高8.7分,在OdysseyBench上高4.3分;本已很强的GLM-5.2在xBench-DS上提升12.0分,在AgentIF上提升6.9分,整体最高提升达20.2分。此外,JIT-Agent生成的框架据报告与OpenCode、Claude Code等成熟智能体运行环境表现相当,并在DeepSeek V4、Mimo-V2.5、Qwen3.6等不同规模的模型家族上均带来一致提升。
- 配套设施:研究者构建了HarnessFactory代码库,在统一协议下重新实现了13种具有代表性的现有智能体框架(如ReAct、ROMA),作为JIT-Agent生成时可参考的素材库。


| Method | Construction | Instance synthesis | Harness model | Learned repair | Online evolution |
|---|---|---|---|---|---|
| AutoHarness (Lou et al., 2026) | AOT (search) | \xmark | \xmark | \xmark | \xmark |
| Meta-Harness (Lee et al., 2026c) | AOT (search) | \xmark | \xmark | \xmark | \xmark |
| AHE (Lin et al., 2026) | AOT (search) | \xmark | \xmark | \xmark | \xmark |
| Adaptive AH (Liu et al., 2026c) | AOT (test-time editing) | \xmark | \xmark | \xmark | \cmark |
| TTHE (Nie et al., 2026b) | AOT (test-time editing) | \xmark | \xmark | \xmark | \cmark |
| RHI (Lee et al., 2026a) | AOT (test-time editing) | \xmark | \xmark | \xmark | \cmark |
| Harness-R1 (Shao et al., 2026) | AOT (test-time editing) | \xmark | \cmark | \cmark | \cmark |
| JIT-Agent (ours) | JIT | \cmark | \cmark | \cmark | \cmark |


| ♣ Memory | ♠ Planning | ♥ Action | ♠ Capability Orchestration | |
|---|---|---|---|---|
| Harness | 𝐌∈𝔐 | 𝐏∈𝔓 | 𝐀∈𝔄 | 𝐅∈𝔉 |
| ReAct [83] | FullHistory | No explicit planner | ReAct | Full registry |
| Plan-and-Execute [16] | FullHistory | Linear roadmap | ReAct | Full registry |
| ReSum [77] | ReSum memory | No explicit planner | ReAct | Full registry |
| Flash-Searcher [60] | FullHistory | DAG planning | ReAct | Full registry |
| GAM [79] | GAM retrieval | DAG | ReAct | Full registry |
| MemoBrain [59] | Reasoning graph | No explicit planner | Marker-guided execution | Full registry |
| AggAgent [32] | Isolated rollout histories | No explicit planner | Multi-rollout aggregation | Full registry |
| OAgent [100] | Coordinator history | No explicit planner | Ensemble voting | Full registry |
| AgentFold [84] | AgentFold memory | DAG | ReActFold | Full registry |
| HiAgent [22] | Hierarchical memory | No explicit planner | ReAct | Full registry |
| DeepAgent [34] | Three-tier memory | No explicit planner | Marker-guided execution | Tool search |
| ROMA [1] | Context isolation | Atomizer + DAG | Recursive execution | Full registry |
| AOrchestra [63] | Context isolation | Atomizer + DAG | Recursive execution | Agent Delegation |

研究结果
- 搭配JIT-Agent框架的DeepSeek-V4-Flash相比GPT-5.6,在DeepSearchQA上高出9.1分,在PinchBench上高出8.7分,在OdysseyBench上高出4.3分。
- 在本已表现强劲的GLM-5.2上应用JIT-Agent后,xBench-DS提升12.0分,AgentIF提升6.9分,整体最大绝对提升达20.2分。
- 据报告,JIT-Agent生成的执行框架在性能上与OpenCode、Claude Code等成熟智能体运行环境相当。
- 在DeepSeek V4、Mimo-V2.5、Qwen3.6等不同规模的模型家族上,JIT生成的框架相较固定的ReAct基线框架均带来一致提升,并在DeepSearchQA、AgentIF等测试上改善了成本与性能的权衡边界。


可应用场景
- 在不更换现有开源或商用大模型的前提下,针对深度调研、购物规划、旅行规划、办公文档处理等不同类型任务,自动生成定制执行框架来替代人工搭建。
- 在需要用同一个基础模型处理多种性质迥异任务的自动化流水线中,用自动生成执行框架的方式替代逐一手工设计。
- 作为参考案例,借鉴其'依据执行失败诊断信息自动修复执行框架'的设计思路,用于提升自动化系统的可靠性。


局限与待验证事项
- 论文报告的数值是在DeepSearchQA、OdysseyBench、PinchBench、xBench-DS、AgentIF等特定基准测试以及DeepSeek-V4-Flash、GLM-5.2等特定模型组合上测得的,不能直接断定可推广到其他任务或模型。
- 部分基准比较仅使用了50或100个样本的子集,与完整数据集上的绝对提升幅度可能有所不同。
- 与OpenCode、Claude Code的比较仅被描述为'表现相当',并未给出全面超越这些系统的证据。
- 作者自己也指出,本研究采用了较为激进的形式,即整个执行框架都可以被即时重新设计;而未来的生产系统或许更适合保留稳定核心、只在需要时替换部分组件,这一方向本文尚未验证。


为什么重要
这项研究表明,提升智能体能力不一定要靠扩大模型规模,包裹模型的执行框架本身也可以作为一个可单独训练、可迁移的能力维度来优化。对实践者而言,这提示了一种思路:无需更换现有的大模型,只需自动生成针对具体任务的定制执行框架,就有可能在性能和成本之间获得更好的平衡。
本文术语
- 智能体执行框架(harness) · 包裹在语言模型外层、决定如何管理记忆、如何规划、暴露哪些工具、如何执行动作的运行结构
- 即时生成(Just-in-Time) · 在任务真正到来的那一刻才针对该任务生成专属执行框架,而不是提前造好一个通用框架
- Evo-GDPO · 论文提出的一种在线强化学习方法,训练模型提出在奖励、延迟、成本上超越当前最佳框架档案的新设计
- ReAct · 一种交替进行推理与行动的标准基础智能体执行方式
论文原文摘要(英文)
Agent capability is not determined by the model alone. The agent harness, encompassing memory management, planning strategy, action protocol, and tool/skill orchestration, can dominate the contribution of the underlying foundation model. Yet harness design remains manual, task-specific, and fundamentally unscalable. We present JIT-Agent, a harness intelligence model trained to synthesize task-adaptive agent harnesses on the fly for arbitrary off-the-shelf agentic LLMs. We formalize the agent harness as a composable, machine-generatable artifact governed by a fixed four-module protocol, and train JIT-Agent to customize harnesses for a given task at hand, repair harnesses for stable and reliable execution, and self-evolve by distilling performance signals from an expanding archive of prior harness configurations. Equipped with JIT-Agent as a harness helper, DeepSeek-V4-Flash surpasses GPT-5.6 on DeepSearchQA (+9.1) and OdysseyBench (+4.3), while the already strong GLM-5.2 gains up to +20.2 points. Across controlled evaluations, JIT-Agent-generated harnesses are performance-competitive with mature agent runtimes such as OpenCode and Claude Code and consistently improve multi-scale model families of DeepSeek V4, Mimo-V2.5, and Qwen3.6. To our knowledge, JIT-Agent is the first model purpose-built for just-in-time harness generation, establishing harness intelligence as a trainable, transferable, and compounding dimension of agent capability orthogonal to model scaling.
在 arXiv 阅读最新论文
- The Dialect Tax: Dialectal Biases Persist throughout the Language Modeling PipelineAI语言模型对AAVE等非标准英语方言征收的隐性'方言税',不只出现在分词环节,而是贯穿训练与推理全流程
- Sycophantic Chatbots Cause Delusional Spiraling, Even in Ideal Bayesians一个数学模型证明,哪怕是完全理性的人,也会被一味顺着自己说话的聊天机器人带入妄想
- Autonomous Mathematical Discovery in an Open-World Multi-Agent Environment没有中央指挥,来自不同公司的AI智能体在开放世界环境中自行协作,在五个数学难题上做出了新发现
- Automata from Agent Traces: Failure and Next-Step Prediction研究者把大量LLM智能体执行记录压缩成一个小型有限状态机,同时用来预测下一步动作和提前发现失败
- MARS: Multi-Specialist LLM Relay System for Competitive Programming解竞赛编程题时,让分主题的专家AI接力改代码,比让一个通才模型包办全部角色更高效
- AgentRoom: Concurrent Multi-Agent Coding in a CRDT-Backed Shared Workspace让多个AI编程智能体在同一工作区实时协作,比按顺序执行或无协调地并行执行效果更好
- Recursive Agentic Reasoning多采样几个答案再投票的方法,连AI答不出话来的失败情况也能补救
- Black hole singularity is a surface not a point黑洞奇点是一个面,而不是一个点
METAL LAB 最新报道
图片来源: Guibin Zhang et al., arXiv:2608.25593, CC BY 4.0