System Optimizations for Cost-Efficient Agent Harnesses
Jongseok Park, Jiaxiang Yu, Eric Zhou, Tony Hong, Sunga Kim, Yusuf Afifi, Ian Wong, Ion Stoica,
Key points
From the paper's conclusion- Based on this analysis, we design Agency, a harness interposition platform that provides a unified abstraction and allows easy and portable implementation of harness-side system optimizations on existing off-the-shelf harnesses such as Claude Code or OpenAI Codex.
Abstract
AI agent harnesses play the critical role of providing LLMs with an interface to a computing environment. Recent studies show that AI agents' task-execution accuracy depends mostly on the LLM used, while harness-side variances such as system prompts or tools have minimal impact. Rather, such harness-side variances show a larger impact on the cost of agent executions, achieving cost reductions up to 2.6 times on the same model and task. To further explore these harness-side cost optimization opportunities, we analyze the cost accumulation patterns across various agent traces and identify system opportunities to reduce token use and LLM calls without modifying the model or affecting task accuracy. Based on this analysis, we design Agency, a harness interposition platform that provides a unified abstraction and allows easy and portable implementation of harness-side system optimizations on existing off-the-shelf harnesses such as Claude Code or OpenAI Codex. Using Agency, we implement proof-of-concept optimization techniques based on our analysis and achieve cost reductions up to 35% across various real-world benchmarks on existing harnesses without compromising accuracy.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- EnvOpt: Automated Optimization for Agent EnvironmentsarXiv · 2026
- HarnessPro: Recursive Harness Self-Improvement with Pareto Optimization for Performance-Cost Trade-offsarXiv · 2026
- Beyond Prompts: Measuring and Optimizing LLM Tool-Agent HarnessesarXiv · 2026
- AgentPRO: Coordinating Compiler Optimizations for LLM Agent WorkflowsarXiv · 2026
- When Agents Fail: Model or Harness--Who's to Blame?arXiv · 2026
- HarnessFlow: MCTS-Guided Harness Optimization for LLM AgentsarXiv · 2026