mlsanityData to 14 Oct 2026

HARBOR: Automated Harness Optimization

arXiv 2604.20938 ↗First posted 22 Apr 2026cs.LG cs.AIcited by 11

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

  1. 2026Dive into Claude Code: The Design Space of Today's and Future AI Agent Systems14 Apr
  2. 2026From Translation to Superset: Benchmark-Driven Evolution of a Production AI Agent from Rust to Python13 Apr
  3. 2026Parallelizing Tool Execution and LLM Generation for Low-Latency Agent Serving19 Mar
  4. 2025Difficulty-Aware Agentic Orchestration for Query-Specific Multi-Agent Workflows14 Sep

Other references · 19

  1. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  3. 2016Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimizationcited by 699
  4. 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 558
  5. 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 532
  6. 2018BOHB: Robust and Efficient Hyperparameter Optimization at Scalecited by 470
  7. 2019Scalable Global Optimization via Local Bayesian Optimizationcited by 374
  8. 2024Hybrid LLM: Cost-Efficient and Quality-Aware Query Routingcited by 372
  9. 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 309
  10. 2022Matryoshka Representation Learningcited by 282
  11. 2021High-Dimensional Bayesian Optimization with Sparse Axis-Aligned Subspacescited by 141
  12. 2019Practical Multi-fidelity Bayesian Optimization for Hyperparameter Tuningcited by 93
7 more
  1. 2014Freeze-Thaw Bayesian Optimizationcited by 90
  2. 2017Dealing with Integer-valued Variables in Bayesian Optimization with Gaussian Processescited by 66
  3. 2022Bayesian Optimization over Discrete and Mixed Spaces via Probabilistic Reparameterizationcited by 37
  4. 2025Semantic Caching for Low-Cost LLM Serving: From Offline Learning to Online Adaptationcited by 13
  5. 2026Pancake: Hierarchical Memory System for Multi-Agent LLM Servingcited by 5
  6. 2023Safe Risk-averse Bayesian Optimization for Controller Tuningcited by 3
  7. 2026Agentic Code Optimization via Compiler-LLM Cooperationcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 11.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026HarnessOpt-Bench: Evaluating LLMs at Harness Optimization
  2. 2026Harnesses for Inference-Time Alignment over Execution Trajectories
  3. 2026MESH-Harness: Self-Improving Agent Harnesses via Bandit-Guided Compositional Evolution
  4. 2026Where Does Harness-Optimization Value Live? Localized Gains and the Budget-Splitting Trap in Self-Evolving LLM Agents
  5. 2026Dynamic Harness Search: Building Multi-Agent Systems Per-Query via Prediction
  6. 2026Doc2Harness: Benchmarking LLMs on Long-Horizon Harness Engineering of Coding Agents
  7. 2026HarnessCompass: Guiding Automatic Harness Evolution toward Generalizable and Effective Agent Harnesses
  8. 2026Stop Comparing LLM Agents Without Disclosing the Harness