arXiv:2610.30042cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.30042

HGM-Dual: Lineage-Aware Guided Agent Harness Optimization for Long-Horizon Planning

Sudipta Paul, Pengrui Quan, Aounon Kumar, Nicholas Tzou, Vivek Kulkarni, Srinivas Chappidi

ABSTRACT

Harness optimization, which improves an agent's prompts, tools, and workflows, is an increasingly effective way to enhance agents built on frozen or closed-source LLMs. Leading approaches such as the Darwin–Gödel Machine and the Huxley–Gödel Machine (HGM) rely on recursive self-improvement and were developed mainly for coding, where the competence needed to improve the agent coincides with the competence being improved. Planning tasks, in which an agent must produce a sequence of tool calls that jointly satisfies interacting constraints, break this alignment. There, open-ended self-modification repeatedly explores ineffective changes and consumes substantial evaluation budgets. We introduce HGM-Dual, a diagnostic-guided framework for budget-efficient harness evolution for planning agents. First, HGM-Dual represents agent evolution as lineage-aware context. This context records what each ancestor changed, which behaviors improved or regressed, and which modifications were ineffective, giving the editor explicit edit–outcome attribution instead of an unstructured archive of past agents. Second, HGM-Dual introduces error-conditioned dual-path child generation. For each selected parent, it generates a general child that preserves open-ended exploration and specialized children that target the harness components most likely responsible for the parent's highest-ranked constraint violations. HGM-Dual outperforms the strongest baseline by up to 14.45% relative improvement in case accuracy while matching HGM variants' final performance with 2×−4×2 \times -4 \times fewer evaluation budget.

1 INTRODUCTION

Agent harness optimization Khattab et al. (2024); Yuksekgonul et al. (2024) improves large language model (LLM) agents without updating model parameters by optimizing the prompts, tools, and workflows that govern agent behavior. Recent self-improving systems Novikov et al. (2025) automate this process through evolutionary search. The Darwin–Gödel Machine (DGM) Zhang et al. (2026b) maintains an archive of agents and generates new candidates by modifying selected parents, while the Huxley–Gödel Machine (HGM) Wang et al. (2026) selects candidates based on clade-metaproductivity, their potential to produce strong descendants.

This paradigm is well suited to coding agents because the ability being improved, understanding and modifying code, also enables self-modification. Planning tasks, however, require sequences of actions that satisfy interacting constraints Zhang et al. (2026d); Xie et al. (2024), creating a mismatch that poses two challenges for existing recursive self-improvement methods.

First, effective improvement requires a structured context of the search history. Planning benchmarks expose a relatively small and recurring set of constraint failures, so different agents in the search tree often encounter similar problems. If an editor observes only its current parent's evaluation logs, it

∗^{*}Equal contribution.

cannot determine whether a similar fix has already been attempted elsewhere, whether it improved or degraded performance, or which previous modifications led to the current behavior. As a result, different branches may repeatedly rediscover the same ineffective changes. In HGM's shopping search, 41.8% of edits repeat an edit pattern already present in the tree (Figure 1, left), with each repeated attempt consuming another full planning evaluation. What is needed is not simply access to more previous agents, but explicit edit–outcome context: a concise record of what was changed, what behavior changed as a result, and which changes succeeded, regressed, or proved ineffective. Second, improvement must be targeted at the specific constraints the agent violates. Planning success depends on the correctness of many interdependent decisions: a single infeasible transfer, invalid coupon, or unmet product requirement can invalidate an otherwise valid itinerary or cart. Consequently, a broad modification that improves behavior in general may still leave the failing case unresolved unless it corrects the particular constraint violation responsible for failure. Without explicit guidance, open-ended editing may instead modify an unrelated harness component or make a diffuse change that does not address the observed error. In HGM's shopping search, 19.4% of edits target a constraint category that the parent never failed (Figure 1, middle), and in 64.2% of edits the child retains

Figure

Figure 1: Edit behavior in HGM. Among child nodes, 41.8% repeat previous edits, 19.4% target an error category absent from the parent's observed failures, and 64.2% retain the parent's dominant error category. See Appendix A.1 for details.

its parent’s dominant failure category (Figure 1, right). These results suggest that efficient self-improvement for planning requires both learning from prior edit outcomes and directing new edits toward the specific constraint failures observed in the current agent.

We introduce the Huxley–Gödel Machine Dual (HGM-Dual), a diagnostic-guided framework for budget-efficient agent harness evolution. First, it represents agentic evolution as structured contextual information. This agent-evolution context records what was changed, which behaviors improved or regressed, and which attempted modifications were ineffective. The editor therefore receives explicit edit–outcome attribution instead of treating previous agent snapshots as an unstructured archive. This context discourages repeated failures and allows subsequent edits to build systematically on evidence collected throughout the search.

Second, HGM-Dual introduces error-conditioned dual-path child generation. For each selected parent, the framework generates complementary children: a general child, which preserves the broad and open-ended exploration of existing evolutionary methods, and specialized children, which target the harness component most likely responsible for the parent's observed errors. The general path retains the ability to discover unexpected improvements, while the specialized path provides diagnostic-guided local refinement. Together, the dual paths balance exploration with targeted exploitation and direct the evaluation budget toward more informative regions of the harness search space.

Experiments on travel and shopping planning tasks show that HGM-Dual outperforms the strongest baseline by up to 14.45% relative improvement in case accuracy while matching HGM variants' final performance with 2×−4×2 \times -4 \times fewer evaluation budget. These results demonstrate that structured evolutionary context and diagnostic guidance can make harness self-improvement both more effective and substantially more resource-efficient.