How good is your harness? Statistical evaluation of coding harnesses

Jiwoo Han, Yuekai SunCTB @ ICML 2026

TL;DR

When an AI agent aces a coding benchmark, is it because the underlying model is brilliant, or because the "harness"—the prompts and tools surrounding it—is doing the heavy lifting? This paper introduces a statistical method to disentangle these two factors, revealing that the choice of harness is just as critical to performance as the choice of LLM.

What Problem Does This Paper Address?

In the world of AI agents, we often conflate the "brain" (the Large Language Model) with the "body" (the harness). A harness includes the system prompts, the specific tools available (like a terminal or file editor), and the control logic that manages the agent's loop.

Currently, leaderboards like Terminal-Bench or SWE-bench rank "agents," which are specific pairings of an LLM and a harness. This creates a massive blind spot: if Agent A beats Agent B, we don't know if it’s because Model A is smarter or because Harness A is better engineered. This paper aims to solve this "attribution problem" by statistically separating the contributions of the model and the harness.

Methods

The authors treat the leaderboard as a sparse matrix where rows are harnesses and columns are LLMs. To separate the effects, they use two statistical approaches:

  1. Additive Model: They fit a Generalized Linear Model (GLM) using a logit link function. This models the "pass rate" of an agent as the sum of a baseline score, a harness-specific effect, and an LLM-specific effect. This allows them to say, "On average, switching to this harness improves your log-odds of success by X, regardless of the model."
  2. Interaction Model: To see if certain models have "synergy" with specific harnesses, they added an interaction term. This tests whether a harness performs better (or worse) than expected when paired with a specific LLM—for example, if a harness designed around OpenAI’s API conventions performs poorly when forced to use an Anthropic model.

Datasets

The study focuses on Terminal-Bench 2.0, a benchmark consisting of 89 realistic terminal-based coding tasks.

  • The authors analyzed a cleaned dataset of 118 leaderboard entries.
  • After filtering, they focused on 105 harness-LLM pairs involving 28 different harnesses and 26 LLMs.
  • For the interaction analysis, they used a "fully crossed" submatrix of 3 harnesses (Mini-SWE-Agent, OpenHands, and Terminus 2) and 9 LLMs.

Key Insights and Ideas

  • The Harness is a First-Class Citizen: The most striking insight is that the "harness effect" is roughly the same magnitude as the "LLM effect." In practical terms, engineering a better harness can give you a performance boost equivalent to jumping from a mid-tier model to a state-of-the-art one.
  • Harness Heterogeneity: Harnesses aren't "one size fits all." The authors found that OpenHands has a strong positive interaction with OpenAI models but a negative one with Anthropic and Google models.
  • The "JSON vs. XML" Hypothesis: They speculate that these interactions happen because of subtle design choices. OpenHands was built on the OpenAI SDK and uses JSON structured outputs; OpenAI models are known to prefer JSON, while Anthropic models often perform better with XML.
  • Specialization Matters: By breaking results down by category (e.g., Security, Data Science), they found that some harnesses are specialists. For instance, SageAgent dominated the security category, likely due to its inclusion of security-specific toolkits.

Key Results

  • Comparable Gains: Changing from a baseline harness to the best-performing one (like ForgeCode) increased the log-odds of success by 0.89, while switching from a baseline LLM to the top-tier model (GPT-5.3-Codex) increased it by 1.07.
  • Significant Interactions: In the interaction model, the synergy (or lack thereof) between OpenHands and specific models was statistically significant, with interaction coefficients as high as 0.42 (positive) and -0.95 (negative).
  • Rank Shifting: The paper shows that if you evaluate LLMs using only a basic, "neutral" harness (like Terminus 2), the rankings change. This suggests that some high-performing models on the leaderboard are actually being "carried" by highly optimized harnesses.

Limitations and Future Work

  • Sparse Data: The main limitation is the "unbalanced" nature of current leaderboards. Not every harness has been tested with every model, which makes the statistical estimates for rarer pairings less certain.
  • The "Why" remains suggestive: While the statistics prove that interactions exist, the explanations (like the JSON vs. XML preference) remain speculative.
  • Future Directions: The authors suggest that future model releases should be evaluated across multiple standard harnesses to provide a "harness-agnostic" view of the model's true capabilities. They also point toward "meta-harnessing"—using these statistical insights to automatically tailor a harness to the specific strengths of an LLM.

Summary updated

BibTeX
@inproceedings{han2026how,
  author = {Jiwoo Han and Yuekai Sun},
  title = {{How good is your harness? Statistical evaluation of coding harnesses}},
  booktitle = {CTB @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=QI8z3skBwt},
}
Figure