Latest / Daily Paper Cast / JIT-Agent: Scaling Harness Intelligence via Just-in-Time Harness Evolution
Transcript
- 0:00Evan: Welcome to Daily Paper Cast.
- 0:02Ashley: Today, we are discussing a paper from the Hugging Face daily paper list of August 27, 2026, which has received 45 upvotes.
- 0:12Evan: The paper is titled 'Scaling Harness Intelligence via Just-in-Time Harness Evolution.'
- 0:18Ashley: This work is authored by researchers from the Learning and Vision Laboratory at LV-NUS, including the first authors Guibin Zhang and Leo Lu, and the corresponding author Shuicheng Yan.
- 0:30Evan: The introduction section emphasizes that an agent's capability isn't determined solely by the model itself.
- 0:37Instead, it includes what the authors call the 'agent harness,' which encompasses memory management, planning strategy, action protocols, and the orchestration of tools or skills.
- 0:48Ashley: Exactly, Evan.
- 0:50The agent harness plays a crucial role in situating the model inside a closed-loop execution environment.
- 0:56It dictates how history is retained, how local intent is formed, what tools or skills are exposed, as well as how actions are executed and verified.
- 1:05This harness can significantly impact the agent's performance.
- 1:09Evan: However, designing and optimizing these harnesses has traditionally been a manual, task-specific process, which is inherently unscalable and limits the agent's potential.
- 1:20Ashley: That's where the innovation of the paper comes in.
- 1:23The authors introduce something called JIT-Agent, a model specialized in just-in-time synthesis of task-specific agent harnesses.
- 1:31The idea is to automatically generate, repair, and evolve these harnesses to match the specific needs of a given task, continually improving the agent's performance in a scalable manner.
- 1:41Evan: JIT-Agent stands for 'Just-in-Time Agent,' emphasizing its ability to generate harnesses on the fly instead of relying on pre-compiled, one-size-fits-all solutions.
- 1:51The paper formalizes the agent harness as a composable, machine-generatable artifact composed of four modules: memory, planning, action, and capability orchestration.
- 2:02Ashley: Precisely.
- 2:03And by training JIT-Agent to customize these modules based on task requirements, repair them for stable execution, and evolve based on performance signals from previous configurations, they hope to create a more adaptive and reliable system.
- 2:18Evan: Some compelling results are already reported in the paper.
- 2:22For instance, DeepSeek-V4-Flash, when equipped with JIT-Agent, surpasses GPT-5.6 on standard benchmarks like DeepSearchQA and OdysseyBench, showing significant performance improvements.
- 2:35Ashley: Yes, and even strong models like GLM-5.2 showed substantial gains of up to 20.2 points when harnessed by JIT-Agent.
- 2:44This suggests that harness optimization can independently enhance agent performance beyond just scaling the underlying model.
- 2:51Evan: Another key advantage of JIT-Agent's approach is its ability to generate harnesses that are competitive with established agent runtimes such as OpenCode and Claude Code.
- 3:02These JIT-generated harnesses consistently improve performance across various tasks and model architectures.
- 3:09Ashley: Indeed, harness intelligence is established here as a trainable, transferable, and compounding dimension of agent capability.
- 3:16This deviates from the traditional model-centric view and highlights the importance of the harness-model pair in determining agent performance.
- 3:25Evan: So, to summarize the Introduction section, this paper targets the significant but often overlooked role of the agent harness.
- 3:33JIT-Agent is introduced as a novel solution to automate and optimize this harness in real-time, delivering promising improvements in agent capabilities across various benchmarks and models.
- 3:44Ashley: And that brings us to the end of the Introduction section.
- 3:48Evan: Alright, Ashley, let's dive into the methods discussed in the paper.
- 3:52It seems like the authors have outlined a comprehensive approach for JIT-Agent's operation and training.
- 3:57Ashley: That's right, Evan.
- 3:59The core of JIT-Agent revolves around a three-stage training pipeline designed to impart harness intelligence.
- 4:05These stages are customizing harnesses, repairing unstable harnesses, and harness evolution.
- 4:10Evan: Let's start with the first stage: Customizing Harnesses.
- 4:14Here, JIT-Agent learns to customize task-specific harnesses from a set of teacher-generated examples.
- 4:20This process involves factorizing an agent harness into four modules—memory, planning, action, and capability orchestration—and building a unified codebase, called HarnessFactory, which provides representative scaffolds under a common interface.
- 4:35Ashley: Yes.
- 4:36Essentially, JIT-Agent generates structured, executable modules.
- 4:40In the data preparation for this stage, a stronger, teacher model synthesizes task-adapted harnesses under a protocol.
- 4:48For each task, a small set of reference scaffolds from the seed bank is used.
- 4:53Evan: And the output of this stage is validated for protocol compliance and execution checks, right?
- 4:59Ashley: Exactly.
- 5:00Only successfully validated harnesses contribute to training JIT-Agent.
- 5:04This stage aims to ensure that JIT-Agent can map a task and its context to a protocol-compliant harness, establishing structural and functional correctness.
- 5:14Evan: It's interesting how this system accounts for various metrics like task reward, latency, and monetary cost to prioritize harness efficiency and effectiveness.
- 5:24Ashley: Indeed.
- 5:25Moving on to Stage II: Repairing Harnesses.
- 5:28In this stage, JIT-Agent is trained to repair failed harnesses.
- 5:33Failures could be due to compiler errors, interface mismatches, tool-call failures, or runtime exceptions identified during the protocol validation.
- 5:42Evan: Failures are converted into bounded repair trajectories, which then guide JIT-Agent to learn from these mistakes.
- 5:48The goal here is to enable JIT-Agent to recover nearly correct but initially unstable harnesses.
- 5:55Ashley: Exactly.
- 5:56For each failure, a teacher proposes structured revisions, which are applied to the harness in a step-wise manner.
- 6:02Stage II focuses on short-horizon repair, meaning the system learns to produce high-leverage revisions that restore valid execution within just a few attempts.
- 6:12Evan: The third stage is particularly fascinating: Learning to Evolve Harnesses.
- 6:16This phase treats test-time harness evolution as a trainable capability.
- 6:21JIT-Agent is optimized to propose harnesses that surpass prior designs by leveraging execution feedback.
- 6:27Ashley: In this stage, JIT-Agent uses a method called Evolutionary Group-Decoupled Policy Optimization, or Evo-GDPO.
- 6:36It involves comparing new candidate harnesses with existing ones, aiming to improve task reward, latency, and cost.
- 6:43Evan: During data preparation for this stage, examples are drawn from a task instance, prior high-quality harness designs, and fresh execution feedback.
- 6:52Evo-GDPO then samples groups of candidate harnesses from the current policy and evaluates them against prior designs under the same conditions.
- 7:01Ashley: Candidates are validated before execution, and if a candidate remains invalid after bounded repair, it receives the minimum task reward.
- 7:09But for executable candidates, reward, mean latency, and cost are calculated.
- 7:14A harness is retained only if it matches or exceeds the current reward frontier and improves at least one of the efficiency metrics.
- 7:22Evan: Evo-GDPO normalizes these performance signals before merging them, ensuring they don't overwhelm each other numerically.
- 7:29The final policy update uses a PPO-style clipped objective to reward improvements over prior harness designs.
- 7:37Ashley: In practice, the system continues to update the harness archive conservatively during training, only retaining those harnesses that offer measurable improvements.
- 7:46This ensures that JIT-Agent's harness proposals are continually evolving and optimizing.
- 7:51Evan: Additionally, JIT-Agent operates in two inference modes: static and streaming.
- 7:57In static mode, JIT-Agent generates multiple harnesses in parallel and selects one to execute, increasing diversity without additional rollouts.
- 8:06Ashley: On the other hand, streaming inference mode allows JIT-Agent to carry useful experiences forward across a sequence of tasks.
- 8:14This means the model doesn't discard experience after each task but uses it to inform future harness generations, updating the harness bank accordingly.
- 8:23Evan: This dual-mode operation enables the system to adapt swiftly to new tasks while leveraging accumulated knowledge, making it both flexible and efficient.
- 8:33Ashley: The comprehensive design of JIT-Agent ensures that it not only improves the initial harness but also continuously evolves it through feedback loops, making it a robust solution for optimizing agent performance.
- 8:46Evan: So, to sum up the Method section, JIT-Agent utilizes a three-stage training pipeline incorporating customization, repair, and evolution to generate task-specific harnesses, leading to substantial improvements in agent capabilities.
- 9:01Ashley: And that brings us to the end of the Method section.
- 9:05Evan: Let's dive into the experiments and results that validate JIT-Agent.
- 9:09Ashley, can you walk us through the evaluation benchmarks and setups?
- 9:13Ashley: Evan.
- 9:14The authors evaluated JIT-Agent on nine benchmarks grouped into four task types, covering deep research, daily work, planning, and workspace tasks.
- 9:23For deep research, they used BrowseComp-Plus, DeepSearchQA, and xBench-DeepSearch.
- 9:29For daily work, they chose AgentIF-Oneday and PinchBench.
- 9:33Planning tasks included DeepPlanning-Shopping and DeepPlanning-Travel, and for workspace tasks, they used OfficeBench and OdysseyBench.
- 9:41Evan: And they used two primary backbone models for JIT-Agent, right?
- 9:46Ashley: Correct.
- 9:46The primary backbones were GLM-5.2 and DeepSeek-V4-Flash, chosen for their complementary operating points—GLM-5.2 for its long-horizon task capabilities and DeepSeek-V4-Flash for inference efficiency.
- 10:02They also tested additional models from the Qwen3.6 and Mimo-V2.5 families.
- 10:08Evan: For the benchmarks and baselines, which models did they compare JIT-Agent against?
- 10:13Ashley: The authors used complementary baseline groups.
- 10:16The first group included vanilla models like Qwen3.7-Plus, GPT-5.6, and Gemini 3.1 Pro to measure end-to-end competitiveness.
- 10:26The second group kept the model fixed and compared JIT-Agent with five reusable agent harnesses like Claude Code, Codex, and OpenCode to isolate the contribution of harness design from model weights.
- 10:38Evan: It sounds like a thorough evaluation setup.
- 10:41What were the main results they reported?
- 10:44Ashley: Across all benchmarks, JIT-Agent-generated harnesses showed consistent performance gains over the same underlying backbones.
- 10:51For instance, on GLM-5.2, the benchmark average increased from 74.1 to 81.8 points.
- 10:59Meanwhile, DeepSeek-V4-Flash saw an average improvement from 66.7 to 75.5 points.
- 11:07Evan: That's impressive.
- 11:09Did they observe significant gains in specific types of tasks?
- 11:13Ashley: Yes, significant improvements were particularly notable in tasks requiring sustained state management and constraint tracking.
- 11:21For example, DeepSeek-V4-Flash improved by 24.8 points on DeepPlanning-Shopping, while GLM-5.2 saw a 20.2-point gain on DeepPlanning-Travel.
- 11:32Evan: And how did JIT-Agent perform compared to state-of-the-art models?
- 11:36Ashley: JIT-equipped systems often achieved the best results.
- 11:40JIT-Agent + GLM-5.2 led on seven out of nine benchmarks, while JIT-Agent + DeepSeek-V4-Flash outperformed stronger baselines on most benchmarks by an average of 8.7 points.
- 11:54Evan: They also conducted comparisons with advanced agent harnesses while keeping the backbone fixed, didn't they?
- 12:00Ashley: Yes, they did.
- 12:02JIT-Agent achieved the highest performance in four out of six settings when tested on DeepSearchQA, xBench-DS, and AgentIF.
- 12:10It was not only about performance; JIT-Agent also used fewer tokens and had lower API costs in all settings compared to fixed harnesses.
- 12:19Evan: It's impressive that JIT-Agent reduced per-case cost by an average of 36%.
- 12:25The results are quite compelling in terms of both efficiency and effectiveness.
- 12:29Ashley: The authors visualized these cost-performance trade-offs and confirmed that JIT-generated harnesses form a task-dependent Pareto frontier.
- 12:38They provide strong performance while maintaining or even reducing cost compared to other harnesses.
- 12:44Evan: What about the generalization across different model pairs?
- 12:47Was JIT-Agent equally effective?
- 12:50Ashley: Yes, they evaluated six backbones across three model pairs: DeepSeek-V4, Qwen3.6, and Mimo-V2.5.
- 12:59In all 24 comparisons, the JIT-generated harness outperformed the baseline ReAct harness, with an average gain of 7.6 points.
- 13:08The consistent gains across models and tasks show that harness intelligence effectively transfers.
- 13:14Evan: Finally, they also evaluated test-time harness evolution, right?
- 13:19Ashley: Correct.
- 13:20They compared static JIT, where harness generations are independent, to streaming JIT, which retains useful experiences.
- 13:28Streaming JIT finished above static JIT in cumulative accuracy on tasks like DeepPlanning-Shopping, DeepPlanning-Travel, and OfficeBench.
- 13:36Evan: Interesting.
- 13:38The cost and tool-call traces also suggest that these improvements didn’t come at the expense of increased interaction complexity or cost, right?
- 13:46Ashley: That's right.
- 13:47The gains were achieved without uniformly coupling larger interaction budgets, which aligns with the Evo-GDPO objective of retaining only frontier-improving harnesses.
- 13:58Evan: So, to wrap up the Experiment section, JIT-Agent not only improved the overall performance on various benchmarks but did so efficiently, proving its value in harness generation and optimization.
- 14:10Ashley: And with that, we conclude our discussion on the Experiment section of the paper.
- 14:15Evan: Let's shift our focus now to the Related Work section of the paper.
- 14:19This part situates JIT-Agent in the context of existing research and methodologies in harness engineering and optimization.
- 14:27Ashley: Evan.
- 14:28The authors begin by framing the significance of harness engineering within AI research, highlighting the diverse landscape that includes coding runtimes, embodied systems, search agents, and memory-centric harnesses.
- 14:41Evan: They refer to a variety of systems like Claude Code, Codex, Hermes, OpenClaw, and more.
- 14:48Broadly, each of these systems underscores that the operational layer deciding what an agent observes, remembers, plans, and executes is fundamental to its performance.
- 14:59Ashley: Yes, the harness is so much more than an implementation detail; it's critical to an agent's ability to perform.
- 15:06Recurring design choices in harnesses span memory management, planning, control loops, tool allocation, and skill orchestration.
- 15:14Evan: And with modularization becoming a common design language, various harness components are independently substitutable and optimizable.
- 15:23For example, the paper mentions HarnessX and Code-as-Agent-Harness, which employ clear interfaces to enable modular design.
- 15:31Ashley: To simplify the harness design space, the authors adopt a compact factorization described as h equals M, P, A, F, where M is memory, P is planning, A is action, and F is capability orchestration.
- 15:45This structure supports flexible yet powerful harness configurations.
- 15:50Evan: Now, let's talk about harness optimization, which is a key focus of the paper.
- 15:55The optimization has moved beyond simple prompts and pipelines to include complex elements like workflow graphs, role assignments, and full harness code.
- 16:04Ashley: Recent methods typically use a diagnose–propose–validate loop for harness improvement.
- 16:10Execution traces reveal weak points, candidate edits are proposed, and validation determines which changes to retain.
- 16:17This loop can be seen in methods like Recursive Harness Self-Improvement, Reflexion, and EvolveNet.
- 16:23Evan: However, a key distinction in the paper is the comparison between Ahead-of-Time (AOT) and Just-in-Time (JIT) harness construction.
- 16:32Traditional methods generally fall into the AOT category, optimizing a harness based on accumulated experiences before a task is encountered.
- 16:41Ashley: That's correct, Evan.
- 16:43AOT methods work well when the deployment environment is stable and predictable.
- 16:47However, they require a broad optimization over many potential tasks, which can be cumbersome and sometimes mismatched for specific instances.
- 16:56Evan: JIT harness construction, as proposed in JIT-Agent, takes a different approach.
- 17:01Rather than pre-compiling a one-size-fits-all harness, it generates a harness tailored to the specific task at inference time.
- 17:08This model-as-a-harness philosophy is seen as more adaptable to varied and unforeseen task structures.
- 17:15Ashley: Furthermore, the authors elaborate on how JIT-Agent builds on previous endeavors in modular design, such as memory evolution in MemEvolve and planning in TodoEvolve.
- 17:25These component-level self-design principles are extended to the entire operational harness in JIT-Agent.
- 17:31Evan: By combining customization learning, feedback-driven repair, and evolutionary optimization, JIT-Agent moves harness engineering from an ahead-of-time artifact to a task-conditioned synthesis.
- 17:43The idea is to turn the harness into an autonomously improving, intelligent layer.
- 17:48Ashley: In summary, JIT-Agent capitalizes on a rich history of research in agent harness construction and optimization, interweaving lessons from diverse approaches to offer a scalable, adaptive solution.
- 18:00Whether memory management, planning, or action orchestration, the flexibility and intelligence of JIT-Agent's harness design stand out as significant advancements.
- 18:10Evan: And that concludes our discussion on the Related Work section.
- 18:14Evan: Ashley, we've covered a lot of ground today discussing JIT-Agent and its innovative approach to harness intelligence.
- 18:21Let's wrap up by summarizing the key contributions and takeaways from this paper.
- 18:26Ashley: Evan.
- 18:27The paper makes several significant contributions.
- 18:30Firstly, it introduces the concept of JIT-Agent, which is designed to generate, repair, and evolve agent harnesses on-the-fly based on the specific demands of each task.
- 18:40Evan: Right.
- 18:41JIT-Agent formalizes the agent harness as a composable artifact comprised of four key modules: memory, planning, action, and capability orchestration.
- 18:52This modular approach allows for flexible, task-specific harness configurations.
- 18:57Ashley: Another major contribution is the three-stage training pipeline.
- 19:01This pipeline enables JIT-Agent to customize task-adapted harnesses, repair unstable configurations, and evolve harness quality based on execution feedback.
- 19:12Evan: And the experimental results are impressive.
- 19:15JIT-Agent consistently improves performance across diverse benchmarks and backbone models, often outperforming state-of-the-art fixed harnesses in both effectiveness and cost-efficiency.
- 19:27Ashley: Indeed.
- 19:28By shifting from ahead-of-time to just-in-time harness construction, JIT-Agent offers a more adaptive and scalable solution for harness intelligence.
- 19:36This opens new avenues for improving agent capabilities beyond what model scaling alone can achieve.
- 19:43Evan: So, in summary, JIT-Agent represents a significant step forward in the field of AI agent optimization—offering a novel, more dynamic approach to harness design and execution.
- 19:55Ashley: Thanks for joining us on today's episode of Daily Paper Cast.
- 19:59We hope you found this discussion on JIT-Agent insightful.
- 20:03Evan: Be sure to tune in for future episodes where we continue to explore cutting-edge research in AI and machine learning.
- 20:11Ashley: Until next time, stay curious and keep exploring.