EvoX: Rethinking the Agent Harness as a Runtime Policy

Haoyang Zhang, Qumeng Sun, Xiao Zhang, Xiang Liu, Zhidong Fan, Junjie WangarXiv 2026

TL;DR

EvoX introduces a shift in AI agent design by treating the "harness"—the code that connects an LLM to its tools—as an active Operational Policy rather than a passive loop. By implementing deterministic controls for tool-call recovery and outcome verification, EvoX achieves a 56.2% success rate across diverse benchmarks, significantly outperforming existing harnesses especially when paired with non-proprietary models.

What Problem Does This Paper Address?

We often blame an agent's failure on the "brain" (the Large Language Model), but the "plumbing" (the agent harness) is frequently the real culprit. Even when an LLM makes a correct decision, the agent can fail due to malformed tool calls, getting stuck in infinite error loops, or prematurely claiming victory before a task is actually done.

Current agent systems vary wildly in design—some focus on specialized interfaces for coding, while others provide minimal loops. This lack of standardization makes it hard to know if a performance boost comes from a better model or just a more robust harness. The authors tackle two main questions: How should we design a harness to maximize model reliability? And how can we evaluate these harnesses fairly without suppressing their unique behaviors?

Methods

The authors propose The Second Policy, a design principle that splits agent logic into two parts:

  1. Semantic Policy: The foundation model, which handles reasoning, planning, and interpreting feedback.
  2. Operational Policy: The harness (EvoX), which governs how those plans are executed and recovered.
Figure 1: Architecture and runtime design of EvoX. The system integrates a model-driven Semantic Policy with a harness-level Operational Policy to coordinate decisions and environment interactions. The operational policy comprises three complementary mechanisms: Action Realization mediates executable tool calls, Execution Continuity coordinates recovery and runtime control, and Outcome Grounding aligns reported outcomes with observed execution. The runtime supports diverse tools and optional persistent adaptation through long-term memory and GEP-based experience evolution. The right panel illustrates the conceptual distinction between a minimal execution loop and explicit harness-level operational control.

EvoX, built in Rust for performance and safety, implements this operational policy through three core mechanisms:

  • Action Realization: It detects and repairs malformed tool calls (e.g., fixing JSON syntax or normalizing arguments) before they hit the environment.
  • Execution Continuity: It manages failure recovery using "circuit breakers" to stop unproductive loops and provides specific guidance to the model on how to diagnose errors.
  • Outcome Grounding: It forces the model to reconcile its final report with actual observed tool feedback, preventing "hallucinated success."

To test this, they created Contrast, an evaluation framework that uses a "Fairness Contract." It locks external variables (like network access and model identity) while allowing "native" harness behaviors (like system prompts and internal recovery logic) to function normally, ensuring an apples-to-apples comparison.

Figure 2: Overview of Contrast for controlled and auditable harness evaluation. A fairness contract distinguishes locked, shared, and harness-native conditions, preserving native execution behaviors while controlling external evaluation factors. Versioned tasks undergo qualification and integrity checks before execution through native harnesses in controlled environments. A model bridge mediates model requests, enforces applicable configurations, and audits provider-bound request parameters. Execution traces, model-call records, verifier results, and runtime diagnostics provide evidence for failure attribution, validity decisions, and auditable result selection. Only valid, scored task–model combinations enter paired statistical comparisons, while excluded or quarantined records remain available for audit and disclosure.

Datasets

The study evaluates six harnesses across five diverse benchmarks to ensure generalization:

  • Aider Polyglot: Multilingual programming.
  • GAIA: Web-assisted general reasoning.
  • Harbor Index: Algorithmic problem solving.
  • SWE-Live: Real-world repository-level software repair.
  • Terminal-Bench 2.1: Terminal-based engineering tasks.

Key Insights and Ideas

  • The Harness is a Policy: The most significant "aha moment" is formalizing the harness as a deterministic policy ($H = (\Gamma, \Delta)$). This moves the harness from being a utility script to a core architectural component that actively shapes the agent's trajectory.
  • Model-Harness Affinity: The researchers found that first-party harnesses (like Claude Code) perform best with their own models (Opus 5). However, EvoX showed superior "cross-provider adaptability," significantly boosting the performance of models like GLM-5.3 and Kimi K3 where no specialized harness existed.
  • Reliability over Reasoning: Many failures aren't due to poor reasoning but poor "grounding." EvoX’s success suggests that improving how an agent observes its own actions is a low-hanging fruit for increasing reliability.

Key Results

EvoX achieved the highest overall success rate of 56.2% across 691 common task-model pairs.

  • Outperformance: It exceeded the average of five other major harnesses (including Pi, Claude Code, and Codex) by 3.0 percentage points.
  • Specific Gains: The advantages were most dramatic on "neutral" models: +10.7 points on GLM-5.3 and +7.9 points on Kimi K3.
  • Efficiency: Interestingly, EvoX achieved these results in a "baseline" configuration—without using its optional long-term memory or evolutionary learning features—proving the inherent value of its operational control logic.

Limitations and Future Work

The current study intentionally disabled EvoX's more advanced features, such as the Gene Evolution Protocol (GEP) and long-term memory, to isolate the effect of the runtime policy. While this provided a clean baseline, it means the full potential of an "evolving" harness remains to be quantified in a controlled setting.

Future work points toward collective evolution, where multiple agents share verified execution experiences to refine their operational policies over time. The authors also suggest extending this framework to multi-agent swarms, where the "Second Policy" would coordinate complex interactions between different specialized agents.

Summary updated

Abstract

Large language model (LLM) agents increasingly interact with tools and environments, yet plausible model decisions do not always translate into successful execution due to tool-call mismatches, interrupted workflows, and unsupported completion claims. We present EvoX, a Rust-based, multi-model agent runtime guided by The Second Policy, which views the harness as an Operational Policy complementing the foundation model's Semantic Policy. EvoX combines model-facing guidance with deterministic runtime control through three complementary mechanisms: Action Realization, Execution Continuity, and Outcome Grounding. To evaluate harnesses without suppressing their native behaviors, we introduce Contrast, a controlled and auditable framework integrating explicit fairness constraints, provider-bound request verification, and evidence-based adjudication. Across five benchmarks, six foundation models, and six agent harnesses, EvoX achieves the highest numerical success rate of 56.2% over 691 common task--model pairs, exceeding the average of the other five harnesses by approximately 3.0 percentage points. Its larger advantages on GLM-5.3 (+10.7 points) and Kimi K3 (+7.9 points) highlight the model-dependent effectiveness of harness design and the potential for cross-provider adaptability. Achieved without memory, evolution, or extensions, these results establish EvoX as a competitive multi-model agent runtime and underscore the importance of harness-level operational control in realizing foundation-model capabilities.
BibTeX
@misc{zhang2026evox,
  author = {Haoyang Zhang and Qumeng Sun and Xiao Zhang and Xiang Liu and Zhidong Fan and Junjie Wang},
  title = {{EvoX: Rethinking the Agent Harness as a Runtime Policy}},
  year = {2026},
  eprint = {2611.15006},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.15006},
}
Figure