Object-Oriented Harness: Evolving Agent Harnesses through Object-Oriented Design
Gaotang Li, Bhavana Dalvi Mishra, Yifei Ming, Yanfei Chen, Zhongying CuiZhu, Lesly Miculicich, Long T. Le, Rui Meng,
Key points
From the paper's conclusion- During training, an evolution agent uses execution records to create a family of specialized harnesses, each implemented as a subclass of the base or an existing specialized harness via inheritance.
Abstract
Agent harnesses are executable code that specifies the prompts, tools, and control flow around a language model. A single global harness can struggle with heterogeneous tasks that require different execution strategies. In this work, we introduce Object-Oriented Harness (OO-Harness), a harness optimization framework that evolves a hierarchy of executable harness classes using object-oriented design. During training, an evolution agent uses execution records to create a family of specialized harnesses, each implemented as a subclass of the base or an existing specialized harness via inheritance. At test time, a harness router uses routing lessons accumulated during training to select a specific harness for each task. Across three long-horizon benchmarks spanning business workflows, workspace tasks, and tool use, OO-Harness achieves the best performance among the compared methods, with an absolute improvement of up to 15% over the base. Extensive ablation studies examine the contributions of its core components.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- HarnessFlow: MCTS-Guided Harness Optimization for LLM AgentsarXiv · 2026
- Harness-S: Learning from Sibling Harnesses for Generalizable Agent TrainingarXiv · 2026
- Agentic Harness Engineering Beta: Requirement-Centered Evolution of Agent HarnessesarXiv · 2026
- JoMoHa: Joint Model--Harness Optimization with Reinforcement LearningarXiv · 2026
- Doc2Harness: Benchmarking LLMs on Long-Horizon Harness Engineering of Coding AgentsarXiv · 2026
- Design and Cross-Domain Evaluation of an Agent Execution HarnessarXiv · 2026