FrontierHarness Eval v1.1: Optimizing Agent Performance and Cost
Takeaway
When switching between AI models, developers should re-evaluate their agent harness to maximize performance and cost-efficiency. Experiments across 27,280 agent runs demonstrate that the "best" harness is highly model-dependent, and there is no universal configuration that minimizes cost while maximizing pass rates.
The Impact of Model-Harness Pairing
Research from the FrontierHarness Eval v1.1 project indicates that the interaction between a model and its harness is a primary driver of both cost and success. While the choice of model accounts for 92.8% of the variance in cost per task, the specific model-harness pair accounts for nearly 5% of the variance—a significant margin when optimizing for production scale. The study found that the median harness moved 11 of 22 places in cost rankings when switching between models, proving that a cost-effective harness for one model may be inefficient for another.
Cost Drivers and Inefficiency
Analysis of 27,280 runs across 62 terminal tasks revealed that 64.5% of total inference expenditure is consumed by trials that fail to pass. Of these failures, 52.7% were standard failures and 11.8% were timeouts.
Key findings regarding cost include:
- Steps vs. Tokens: The number of steps in an agent's trajectory is a stronger predictor of cost than prompt size, tool count, or cache hit rate. Because each step re-sends context, minimizing the number of steps is the most effective way to reduce cost.
- Cache Utilization: While caching significantly reduces the cost of repeated input, it does not compensate for inefficient agent loops.
- Confidence in Failure: Approximately 75% of failed trials ended with the agent providing a confident final answer rather than hitting a time limit, suggesting that current agents often lack the self-awareness to recognize when a task is unsolvable within their current context.
Design Patterns of High-Performing Harnesses
Observations of the top-performing harnesses suggest three common design choices that contribute to success:
- Tool Specialization: High-performing harnesses typically rely on a single shell tool for the majority of operations, reducing the overhead of complex tool selection.
- Context Stability: Successful harnesses maintain a stable context window, allowing providers to leverage cache hits for the majority of the input tokens across steps.
- Minimal Sub-agent Usage: There is currently insufficient evidence that complex sub-agent architectures improve performance, as the most effective harnesses in this study relied on direct, iterative loops.
Community Perspectives and Limitations
Discussion among practitioners highlights that these benchmarks measure specific, isolated tasks, which may not translate directly to real-world software engineering workflows.
"For a given model, the best harness depends on the problem. As models become increasingly capable, the harness appears to matter more than the model... I give whatever model de jour the specific tools it needs to solve the problem. This bespoke, specialized harness absolutely smokes any other mainstream harness for these tasks." — Hacker News User
Critics also point out that the "fail" rate is a reflection of the difficulty of the benchmark tasks rather than a systemic failure of the agents themselves. Furthermore, developers note that as models continue to improve, they may eventually "learn" to adapt to various harness structures, potentially reducing the need for manual, bespoke harness engineering in the future.
Future Directions
This study was limited to open-weight models served by a single provider. Future iterations of the FrontierHarness Eval aim to include closed-source frontier models and evaluate long-horizon tasks where agents must continuously improve their performance over extended periods. For developers, the recommendation remains to test candidate harnesses against a private dataset of representative tasks to determine the optimal configuration for their specific use case.
Sources
Related
- Dispatch
- Dispatch
- Dispatch
- Dispatch
- Dispatch