Finding the Right Fit: Model-Harness Interactions across Agent Tasks

Yixuan Li, Yiyun Zhou, Yao Long Teng, Fuchao Yang, Yanchen Deng +4 more
10/1/2026
4 citations
cs.AIcs.SE

Official code: liyix/finding-the-right-fit (19 stars, Python, Apache-2.0, last commit 2026-10-02).

Abstract

Choosing an agent system means choosing both a language model and the harness through which it acts. We ask whether a strong model, harness, or pairing stays strong when the setting changes.

Show full abstract

We evaluate 66 configurations: four configurable harnesses (OpenHands, DeepSeek Harness, PI, and openJiuwen) paired with five models on TUA-Bench, ALE-CLI, and Terminal-Bench 4, plus the native Codex-GPT and Claude Code-Claude pairings. Model rankings reverse across harnesses. On Terminal-Bench 4, Claude leads GPT by 7.94 points in OpenHands but trails it by 30.16 points in PI. For four of the five models, the best harness changes from one benchmark to another, yet some pairings hold: openJiuwen gives Kimi its highest score on all three benchmarks, by 5.61 to 11.11 points. A model's own vendor harness is not reliably its best, and higher cost does not reliably buy a higher score. On Terminal-Bench 4, GPT scores higher under PI than under DSH at less than a quarter of the cost per task. Matched trajectories suggest why fit varies. Models start almost all repairs themselves, so much depends on whether the harness hands failures back in a form the model can use. GPT does best with PI's lean scaffold, while Kimi, which often issues malformed tool calls, does best in openJiuwen. We argue that the model, the harness, and the task should be evaluated together, and we release the harness adapters, evaluation code, and all 6,204 scored trajectories at https://github.com/liyix/finding-the-right-fit and https://huggingface.co/datasets/yixuanli97/finding-the-right-fit.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A Harness x Model evaluation suite for command-line agents (code for Finding the Right Fit)

190Python, JavaScriptSep 30, 20262 months agoApache-2.0

Similar Papers

Cite this paper

@article{li2026finding,
  title  = {Finding the Right Fit: Model-Harness Interactions across Agent Tasks},
  author = {Yixuan Li and Yiyun Zhou and Yao Long Teng and Fuchao Yang and Yanchen Deng and Zhiyi Lyu and Xuyu Dong and Feng Chen and Bo An},
  year   = {2026},
  eprint = {2610.00917},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.00917v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.00917.svg)](https://codeofpaper.com/paper/2610.00917)

Discussion