AnchorOpt: Structured Runtime Optimization OF LLM Agent Harness
Abstract
Agent harnesses govern consequential runtime decisions around language models, including tool invocation, persistent-state modification, and error recovery. Optimizing these decisions jointly is challenging: intervention placement determines what can be observed and executed, signals and policies must be designed together, and local modifications interact through downstream trajectories. We introduce \anchoropt, a structured runtime optimization framework that decomposes this coupled harness-design problem into tractable local decision problems. First, backward localization identifies consequential decisions from residual failures, while runtime boundaries constrain observable signals and feasible interventions. Second, the optimizer searches for local policies under available signals and expands the signal representation when search stalls. Third, accepted controllers are installed sequentially, with residuals re-mined and candidates evaluated against the evolving incumbent by their downstream task value. The resulting controllers have explicit runtime activation and execution semantics. Experiments on BFCL Agent Memory and AppWorld demonstrate improved task performance and complementarity with global prompt optimization. Additional studies examine repeated-execution reliability and the trade-off between constraint mitigation and intervention cost.
Then back it, or bet against it.
Related papers
Open the market on this paper to see 7 more related papers.