HARBOR: Automated Harness Optimization
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Long-horizon language-model agents are dominated, in lines of code and in operational complexity, not by their underlying model but by the harness that wraps it: context compaction, tool caching, semantic memory, trajectory reuse, speculative tool prediction, and the glue that binds the model to a sandboxed execution environment. We argue that harness design is a first-class machine-learning problem and that automated configuration search dominates manual stacking once the flag space exceeds a handful of bits. We defend this claim in two steps. First, we formalize automated harness optimization as constrained noisy Bayesian optimization over a mixed-variable, cost-heterogeneous configuration space with cold-start-corrected rewards and a posterior chance-constrained safety check, and give a reference solver, HARBOR (Harness Axis-aligned Regularized Bayesian Optimization Routine), built from a block-additive SAAS surrogate, multi-fidelity cost-aware acquisition, and TuRBO trust regions. Second, we instantiate the problem in a flag-gated harness over a production coding agent and report a controlled four-round manual-tuning case study against a fixed task suite and an end-to-end HARBOR run. The formulation itself is task-class agnostic: the configuration space, reward correction, acquisition, and safety check apply to any agent harness with a bounded flag space and a reproducible task suite.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 23 of its 42 references that are in the map. First posted on arXiv 22 Apr 2026.
Builds on
23 of 42 references.
Closest ancestors · 4
Same direction, newest first
- 2026Dive into Claude Code: The Design Space of Today's and Future AI Agent Systems14 Apr
- 2026From Translation to Superset: Benchmark-Driven Evolution of a Production AI Agent from Rust to Python13 Apr
- 2026Parallelizing Tool Execution and LLM Generation for Low-Latency Agent Serving19 Mar
- 2025Difficulty-Aware Agentic Orchestration for Query-Specific Multi-Agent Workflows14 Sep
Other references · 19
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2016Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimizationcited by 699
- 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 558
- 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 532
- 2018BOHB: Robust and Efficient Hyperparameter Optimization at Scalecited by 470
- 2019Scalable Global Optimization via Local Bayesian Optimizationcited by 374
- 2024Hybrid LLM: Cost-Efficient and Quality-Aware Query Routingcited by 372
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 309
- 2022Matryoshka Representation Learningcited by 282
- 2021High-Dimensional Bayesian Optimization with Sparse Axis-Aligned Subspacescited by 141
- 2019Practical Multi-fidelity Bayesian Optimization for Hyperparameter Tuningcited by 93
7 more
- 2014Freeze-Thaw Bayesian Optimizationcited by 90
- 2017Dealing with Integer-valued Variables in Bayesian Optimization with Gaussian Processescited by 66
- 2022Bayesian Optimization over Discrete and Mixed Spaces via Probabilistic Reparameterizationcited by 37
- 2025Semantic Caching for Low-Cost LLM Serving: From Offline Learning to Online Adaptationcited by 13
- 2026Pancake: Hierarchical Memory System for Multi-Agent LLM Servingcited by 5
- 2023Safe Risk-averse Bayesian Optimization for Controller Tuningcited by 3
- 2026Agentic Code Optimization via Compiler-LLM Cooperationcited by 3
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026AutoSaddler: Automatic Harness Optimization with Durable Updates from Agent Execution Tracescited by 15
- 2026Harness-1: Reinforcement Learning for Search Agents with State-Externalizing Harnessescited by 10
- 2026Automated Discovery Has No Universally Superior Harnesscited by 6
- 2026Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systemscited by 6
- 2026Graph Engineering in the Era of LLM Agents: From Individual Intelligence to System Intelligencecited by 3
- 2026Agentic-imodels: Evolving agentic interpretability tools via autoresearchcited by 1
- 2026Competing at Every Price Point with Agentic Evolution over a Menu of LLMscited by 0
- 2026Mixture of Self-Improving Branches For Agent Harness Optimizationcited by 0
- 2026Turbo Harness: Instance-Adaptive Harness Optimizationcited by 0
- 2026ActiveSaddler: Automated Curriculum Learning for Agent Harness Optimizationcited by 0
- 2026SHarP: Saliency-based Pruning of Agent Harnessescited by 0
- 2026SHarP: Saliency-based Pruning of Agent Harnesses3 Oct 2026
- 2026ActiveSaddler: Automated Curriculum Learning for Agent Harness Optimization1 Oct 2026
- 2026Turbo Harness: Instance-Adaptive Harness Optimization30 Sep 2026
- 2026Mixture of Self-Improving Branches For Agent Harness Optimization29 Sep 2026
- 2026AutoSaddler: Automatic Harness Optimization with Durable Updates from Agent Execution Traces24 Aug 2026
- 2026Graph Engineering in the Era of LLM Agents: From Individual Intelligence to System Intelligence21 Aug 2026
- 2026Competing at Every Price Point with Agentic Evolution over a Menu of LLMs17 Aug 2026
- 2026Automated Discovery Has No Universally Superior Harness20 Jul 2026
- 2026Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systems15 Jul 2026
- 2026Harness-1: Reinforcement Learning for Search Agents with State-Externalizing Harnesses1 Jun 2026
- 2026Agentic-imodels: Evolving agentic interpretability tools via autoresearch5 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026HarnessOpt-Bench: Evaluating LLMs at Harness Optimization
- 2026Harnesses for Inference-Time Alignment over Execution Trajectories
- 2026MESH-Harness: Self-Improving Agent Harnesses via Bandit-Guided Compositional Evolution
- 2026Where Does Harness-Optimization Value Live? Localized Gains and the Budget-Splitting Trap in Self-Evolving LLM Agents
- 2026Dynamic Harness Search: Building Multi-Agent Systems Per-Query via Prediction
- 2026Doc2Harness: Benchmarking LLMs on Long-Horizon Harness Engineering of Coding Agents
- 2026HarnessCompass: Guiding Automatic Harness Evolution toward Generalizable and Effective Agent Harnesses
- 2026Stop Comparing LLM Agents Without Disclosing the Harness