# HarnessPro: Recursive Harness Self-Improvement with Pareto Optimization for Performance-Cost Trade-offs

DevFeed: [HarnessPro: Recursive Harness Self-Improvement with Pareto Optimization for Performance-Cost Trade-offs](<https://devfeed.tech/articles/harnesspro-recursive-harness-self-improvement-with-pareto-optimization-for-performance-cost-trade-offs-93670.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.26770>)

Author: Zhuoshi Pan, ZhiYuan Feng, Yukuo Cen, Honglin Lin, Junru Lu, Zhongxia Chen, Shuo Yang, H. Vicky Zhao, Jie Tang

Published: 2026-10-21T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>), [LLM observability](<https://devfeed.tech/topics/llm-observability.md>), [iteration](<https://devfeed.tech/topics/iteration.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [codex](<https://devfeed.tech/tags/codex.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [execution](<https://devfeed.tech/tags/execution.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [glm](<https://devfeed.tech/tags/glm.md>), [glm-5-2](<https://devfeed.tech/tags/glm-5-2.md>), [harness](<https://devfeed.tech/tags/harness.md>), [improvement](<https://devfeed.tech/tags/improvement.md>), [llm](<https://devfeed.tech/tags/llm.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [pass](<https://devfeed.tech/tags/pass.md>), [performance](<https://devfeed.tech/tags/performance.md>), [self-improvement](<https://devfeed.tech/tags/self-improvement.md>), [trade](<https://devfeed.tech/tags/trade.md>)

## AI overview

HarnessPro evolves AI-agent harnesses using LLM-generated tests, without ground-truth solutions or official tests. Specialized agents analyze execution trajectories, plan updates with different performance-cost priorities, and implement candidate harnesses; execution feedback guides later iterations. A normalized weighted squared-distance selection offers lite, medium, and heavy variants for different deployment budgets. On Terminal-Bench 2, SWE-Bench Pro, and ProgramBench with GPT-5.5 and Codex, heavy mode averaged a 2.0 percentage-point pass-rate gain and 26.1% lower per-task cost than RHO; the abstract says this advantage also holds with GLM-5.2 and Claude Code.

## Source excerpt

arXiv:2610.26770v2 Announce Type: new Abstract: Harness development plays a crucial role in building capable AI agents. Recent approaches improve harnesses through recursive self-improvement (RSI), but their performance gains often come with higher execution costs. We introduce HarnessPro, a label-free method for evolving harnesses to improve task performance while reducing execution cost. In this setting, candidate harnesses are evaluated using LLM-generated tests without access to ground-truth solutions or official tests. Specialized agents diagnose execution trajectories, plan updates with different performance-cost priorities, and implement them as candidate harnesses. Rather than returning a single harness, HarnessPro uses normalized weighted squared-distance selection to provide cost-focused (lite), balanced (medium), and performance-focused (heavy) harnesses for different deployment budgets. Selected harnesses enter the next iteration, where execution feedback guides further updates. Our experiments cover Terminal-Bench 2, SWE-Bench Pro, and ProgramBench, using GPT-5.5 with Codex and GLM-5.2 with Claude Code. Across these benchmarks using GPT-5.5 with Codex, the heavy mode of HarnessPro achieves an average pass-rate gain of 2.0 percentage points and an average per-task cost reduction of 26.1% relative to RHO. This advantage also holds when using GLM-5.2 with Claude Code. Code is available at https://github.com/pzs19/HarnessPro