Co-Harness: Co-Evolving Harnesses and Model Weights for LLM Agents
Zhengyu Chen, Teng Xiao, Huaisheng Zhu, Yige Yuan, Luan Zhang, Jingang Wang
Abstract
Post-training agents for automated AI research requires optimizing not only model parameters, but also the runtime harness that shapes how research trajectories are generated, evaluated, and learned from. Existing pipelines typically train models under a fixed harness, including prompts, tools, skills, middleware, and memory, while leaving the data-generating process outside the optimization objective. This creates a mismatch between model updates and the static scaffolding that determines trajectory quality. We introduce Co-Harness, a framework that jointly optimizes the agent harness and model parameters during post-training. Co-Harness alternates between harness optimization and model optimization. An LLM-based HarnessCritic analyzes failed trajectories, identifies harness-level failure modes, and proposes validated local updates. The model is then fine-tuned on high-quality trajectories generated by the improved harness, distilling effective scaffolding into model parameters. A 200+ hour autonomous case study further shows that Co-Harness can recover from system crashes, improve inference efficiency, and discover ensemble strategies without human intervention. These results suggest that joint harness and model optimization is an effective way to improve agents beyond fixed-harness post-training.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL
Related papers
EgoUseBench: Benchmarking Computer-Use Agents under Evolving First-Person Contexts
Shared title terminologycs.AIYurun Chen, Biao Yi, Qihang Yu et al.
EvoLink-Bench: A Benchmark for Evaluating Self-Evolving Agents in Long-Horizon Interdependent Task Streams
Shared title terminologycs.AIWei Chen, Xiaodong Lu, Weihao Shen et al.
MedSkill-E^{2}: Evaluating and Evolving Skills for Medical Agents
Shared title terminologycs.AIJingjing Hua, Shaocong Wei, Jianghan Shen et al.
FORK: Co-Evolving Safe Disclosure and Decision Skills Against Attackers Who Read Every Refusal
Shared title terminologycs.AIHieu Man, Chao Shang, Rui Dong et al.
UCOB: Learning to Utilize and Evolve Agentic Skills via Credit-Aware On-Policy Bidirectional Self-Distillation
Shared title terminologycs.AISongjun Tu, Chengdong Xu, Qichao Zhang et al.
TopoAgent: A Self-Evolving Topological Agent for Multimodal Scientific Reasoning
Shared title terminologycs.AIMingze Xu, Yinghui Li, Jiayi Kuang et al.