TL;DR
Imagine hiring a world-class race car driver, putting them in a standard rental sedan with the turn signals on the opposite side of the wheel, and watching them crash before leaving the parking lot. That is what happens to modern AI desktop agents when you change their "harness"—the software layer that translates screenshots and tool calls between the model and the computer. This paper uncovers a massive Harness Tax, showing that swapping a single interface setting can drop an agent's score by over 50 percentage points and completely flip leaderboard rankings.
What Problem Does This Paper Address?
Graphical User Interface (GUI) agents let AI models operate desktop and web apps just like humans do—by looking at screenshots and clicking, typing, or scrolling. Between the raw AI model and the operating system sits an agent harness: the scaffolding that formats visual history, defines available actions (e.g., raw pixel clicks vs. Python scripts), and parses the model's text outputs into executable commands.
Historically, GUI benchmarks test models by making the tasks harder while keeping the harness fixed. Developers often evaluate their models inside bespoke harnesses tailored to how those specific models were trained. But in the real world, engineers want to plug different models into existing software systems with predetermined APIs and context budgets. The authors ask a deceptively simple question: If we keep the model and the tasks identical, how much does changing the harness break the agent?
Methods
To isolate the effect of the harness from the intelligence of the model, the authors built $Harness^2$, a modular evaluation framework that mixes and matches five core harness components across two categories:
- Interaction Format: Combines 3 action interfaces (
unified-schema APIusing a[0, 999]coordinate grid,code-as-actionusing PyAutoGUI scripts, andprimitive APIusing separate pixel-coordinate functions) with 3 output protocols (native API tool calls, Python code blocks, or JSON blocks). - Observation–History Representation: Varies text history (full turns, recent-$K$ turns + summaries, or short "operation briefs" alone), image budgets (retaining 1, 5, or 10 recent screenshots), and input resolution ($1920\times1080$ vs. $1280\times720$).
Valid combinations of these choices yield 126 distinct harnesses, all sharing an identical execution loop and a 50-decision budget.
Because a model's average score hides wild instability, the authors also introduce a new metric called the Harness Index (HI). Calculated as 100 minus the root-mean-square deficit from a perfect score across all 126 configurations, HI penalizes high variance: if two models have the same average score, the one that performs consistently across harnesses gets a higher HI.
Finally, the authors test two mitigation strategies: validation feedback (appending syntax/schema error messages to retry prompts up to 3 times) and supervised fine-tuning (SFT) across multiple harnesses.
Datasets
- Evaluation: Rather than inventing new tasks, $Harness^2$ repurposes a fixed subset of 55 desktop tasks from OSWorld, spanning 10 everyday applications including Chrome, GIMP, LibreOffice, Thunderbird, VLC, and VS Code. Whereas OSWorld varies tasks under a static setup, $Harness^2$ locks the 55 tasks and varies the 126 harnesses.
- Training (for SFT): To test post-training mitigation on Qwen3.8 27B, the authors use roughly 300K step-level samples, where about 10% of the data spans multiple harness formats.
Key Insights and Ideas
- Benchmarks evaluate model–harness pairs, not models: Switching from a unified-schema API to a primitive API caused Qwen3.8 Flash Next to plummet from 81.64% to 28.90%, while the exact same switch boosted Kimi K3 from 32.72% to 87.66%. Leaderboards built on a single harness can invert reality.
- Agents often die at the starting line: Many failures have nothing to do with visual grounding or planning. For instance, when required to pass integer pixel coordinates (
x=780), a model accustomed to another harness might stubbornly pass single-element arrays (x=[780]), exhausting its retry limit before taking a single action. - Compressing text history hurts everyone: Trying to save context tokens by replacing full interaction turns with short "operation briefs" universally degraded performance across all eight tested models.
- Older screenshots beat recent ones: When capped at a 5-screenshot budget, keeping a mix of recent and older screenshots (e.g., positions
{1, 2, 3, 9, 10}) outperformed simply keeping the 5 most recent frames, giving the agent a better sense of longer-horizon state changes.
Key Results
Evaluating eight open-weight and closed-source models across all 126 harnesses revealed stark differences between peak capability and actual robustness:
- Overall Robustness: Closed-source GPT 6 Astra led the pack with an 88.31 mean score, a 73.62 HI, and a remarkably tight 10th-to-90th percentile spread (84.27–94.18). Claude Fable 5 placed second (75.58 mean, 57.28 HI).
- Peak vs. Stability: Open-weight Kimi K3 achieved the highest single-harness score in the entire study (95.87—even beating GPT 6 Astra's peak of 94.37), yet its overall HI was just 38.17 because its 10th-percentile configurations crashed to 33.02 (with 34.38% of its episodes terminating purely from invalid formatting).
- Validation Feedback Works—Mostly: Giving Qwen3.8 Flash Next error messages on invalid tool calls allowed it to fix 98.70% of initial formatting mistakes within three tries. However, syntax recovery doesn't guarantee task success: 37.93% of those recovered episodes still ended with a score of zero.
- Multi-Harness SFT: Fine-tuning Qwen3.8 27B with ~10% multi-harness data lifted its mean score from 63.19 to 68.30 and its HI from 42.78 to 46.86, improving every single component setting.
Limitations and Future Work
- Descriptive Scope: Most of the main evaluation runs each model–task–harness triplet once on a 55-task subset, and the visual-budget ablations were run in separate groups rather than randomized order, so the authors frame their comparisons as descriptive rather than strict statistical hypothesis tests.
- Opaque Execution Failures: When an agent outputs valid actions but hits the 50-step decision cap, the current framework cannot automatically disentangle whether the model failed due to poor visual perception, bad planning, or lost state tracking.
- Future Directions: The authors highlight two clear frontiers: training models that generalize to completely unseen harnesses out-of-the-box, and building test-time adaptation loops so agents can read API docs and self-correct via environment feedback on the fly.
Summary updated