Harness Hub
All papers

Habitats: A Framework for Open-Ended Evolution of Agent Objectives

Nicolas Bolouri, Gaya Mehenni, Daniel Toyama

Verdict: Incremental

The Planner/Mutator decomposition for LLM-driven reward evolution is reasonable, and the code and prompts are released. The headline diversity gains, however, rest on four weak supports: - a metric the Planner is prompted to optimize, computed in method-specific coordinates; - unmatched total compute and offspring counts; - internal ablations only; - three seeds. Relevance to agent-harness builders is limited to the architectural pattern.

  • Novelty

    3 out of 5
  • Rigor

    2 out of 5
  • Reproducibility

    3 out of 5
  • Relevance to harnesses

    2 out of 5

TL;DR

An LLM evolutionary loop over executable RL reward functions. A Planner LLM reads a cross-fitness matrix and diversity metrics and issues mutation directives, and a separate Mutator LLM writes the reward code. It reports higher final behavioral diversity than two internal ablations. Total compute is not matched, and the Planner is prompted with the same diversity metric it is scored on.

Adversarial review by Harness Hub · Nov 26, 2026 · read full text (truncated) · Suggest a correction

Original abstract (authors’ text, select to expand)

Designing what an agent should optimize can be as difficult as optimizing the agent itself. Existing language-model-based reward-generation methods typically refine objectives for predefined tasks and couple the decision of what to explore with the synthesis of how to implement it, potentially narrowing the resulting behavioral repertoire. We introduce Habitats, a framework for open-ended evolution of executable agent objectives. Habitats maintains a population of reward-policy pairs and evaluates every policy under every population reward, producing a cross-fitness matrix that exposes self-mastery, transfer, and functional diversity. A population-level Planner uses this information to select parent rewards and issue targeted mutation directives, while a separate Mutator translates those directives into validated reward programs. We evaluate Habitats in a discrete Card Sandbox and three continuous-control environments (Cart-Pole, Hopper, and Cheetah) against Independent Generation and Direct Mutation baselines. Across four environments and three random seeds, Habitats achieves the highest macro-averaged final Specialist Quality and Behavioral Diversity, with final diversity reaching 1.8x that of Direct Mutation and 2.5x that of Independent Generation. Finally, across ten downstream objectives unseen during evolution, frozen Habitats policy libraries achieve higher paired win rates than size-matched Direct Mutation and Independent Generation libraries at 10,000 adaptation episodes, while also surpassing task-specific policies trained from scratch for 20,000 episodes. These results suggest that separating population-level planning from reward synthesis enables the discovery of diverse, learnable, and reusable behaviors.

Authors’ note

To be published in the Managing Agents that Manage Agents Workshop on Responsible Use of Meta-Agents at the Fortieth Annual Conference on Neural Information Processing Systems (2026)

Filed undersandboxagents

Summary

Habitats keeps a population of (reward program, policy) pairs. - **Cross-fitness and survival.** Every policy is evaluated under every reward, and each column of the resulting cross-fitness matrix is min-max normalized. An individual survives only if its policy is best on its own reward and beats a random policy. - **Planner.** It sees the normalized matrix plus Specialist Quality (SQ) and Behavioral Diversity (BD). It decides how many offspring to create, picks 0-3 parents per slot, and writes a natural-language directive. - **Mutator.** It turns each directive into Python reward code. The code goes through a syntax check and a sandboxed test, with up to three replacement attempts. Appendix D says the Mutator is also conditioned on a rolling window of previously generated rewards. Experiments use three seeds per environment: - a custom discrete Card Sandbox (tabular Q-learning, 15 generations, initial population 3); - DMC Cart-Pole, Hopper and Cheetah (PPO, with Brax for parallel training; 6 generations, initial population 4). The two baselines are ablations: - **Independent Generation:** no parent conditioning, no Planner. - **Direct Mutation:** no Planner, one offspring per survivor. Results: - Habitats leads on final macro-averaged BD and final macro-averaged SQ. - Direct Mutation leads on mean SQ across generations. - A downstream test routes among 15 frozen Card Sandbox policies on ten tasks fixed before evolution. It reports paired win rate against a scratch policy trained for 20,000 episodes. The authors acknowledge two limits. Total compute varies with each method's endogenous population size. BD and GC are computed in each method's own, generation-varying reward space.

Key findings

  • Macro-averaged final BD (Sec 5.1): Habitats 0.3825 vs Direct Mutation 0.2180 and Independent Generation 0.1552, stated as approximately 1.8x and 2.5x. Mean BD across generations: 0.3355 vs 0.2146 vs 0.1899.
  • Specialist Quality is mixed (Sec 5.1). - Mean SQ across generations favors Direct Mutation: 0.8409 vs Habitats 0.7787 vs Independent Generation 0.7400. - Final SQ favors Habitats: 0.8533 vs 0.8222 vs 0.7471. - Direct Mutation leads mean SQ in Card Sandbox, Cart-Pole and Hopper. - Best per-environment final SQ is split across all three methods.
  • Downstream Card Sandbox paired win rate vs a 20,000-episode scratch policy (Sec 5.2). - Habitats library: 0.467 ± 0.029 at 5,000 episodes and 0.617 ± 0.058 at 10,000 episodes. - At 10,000 episodes, Direct Mutation reaches 0.533 ± 0.029 and Independent Generation 0.467 ± 0.058.
  • Hopper shows the largest gap (Sec 5.1): Habitats has 7.6x the mean BD and 4.8x the final BD of Direct Mutation. In Cart-Pole, Direct Mutation leads mean BD (0.3163 vs 0.2987).
  • LLM backbone ablation, Card Sandbox only (Sec 5.4): gemini-4-argon reaches final BD 0.7959 ± 0.0577, reported as 62% above gemini-3.5-flash and 110% above gemini-3.8-flash.

The paper at a glance

01Train new policiesfrom scratch onsynthesizedrewards; survivorpolicies stay…02Evaluate everypolicy under everyreward to build thecross-fitnessmatrix; min-max…03Compute SQ, BD andgrounded coverage04Keep individualswhose policydominates its ownreward and beats arandom policy05Planner LLM picksoffspring count,parents anddirectives usingthe matrix, SQ and…06Mutator LLM writesreward code; syntaxcheck and sandboxedtest, up to 3replacement…
  1. Train new policies from scratch on synthesized rewards; survivor policies stay frozen
  2. Evaluate every policy under every reward to build the cross-fitness matrix; min-max normalize each column
  3. Compute SQ, BD and grounded coverage
  4. Keep individuals whose policy dominates its own reward and beats a random policy
  5. Planner LLM picks offspring count, parents and directives using the matrix, SQ and BD
  6. Mutator LLM writes reward code; syntax check and sandboxed test, up to 3 replacement attempts
Fig. 1 — How the paper works, step by step (arXiv:2611.31160).

Why it matters

This is an RL reward-discovery paper, not a harness paper. Builders of coding agents, tool loops, memory or eval harnesses will find little they can use directly. The transferable idea is architectural. One LLM role decides what to explore from population-level statistics, a second LLM role writes the code, and validation with bounded retries gates each candidate. People building evolutionary code-search loops in the AlphaEvolve or OpenEvolve style, or self-improving agent pipelines, could reuse that split. They could also reuse the cross-evaluation matrix, which judges novelty by behavior rather than by code differences. The evidence that the split helps rests on several weak points: unmatched total compute, a diversity metric the Planner is explicitly told to steer, internal ablations only, and three seeds. Treat it as a design pattern to try, not a validated result.

Issues (7)

  • High severity

    Total compute is not matched, and the coverage metrics depend on population size. - The Planner chooses the offspring count, while both baselines get one offspring per survivor. - The paper concedes that total policy-training interactions and cross-fitness evaluations differ across methods. - The main text reports neither total environment steps, total policies trained, nor LLM calls per method. - GC counts distinct grounded profiles and GC_AUC sums them over generations, so a method that grows a larger population can score higher on coverage simply by having more individuals. The phrase 'matched per-policy training and evaluation budgets' hides this. Without offspring-count-matched baselines, the diversity and coverage gains cannot be attributed to planning quality rather than to more search.

  • High severity

    BD is both the headline outcome and an explicit Planner input. - The Planner prompt shows the current SQ and BD, labels BD below 0.3 as 'homogenizing', and instructs it to 'prioritize EXPLORATION' when BD is low (Appendix D.1.1). - The baselines have no Planner, so nothing in their loop steers on BD. - Each method's BD is computed in its own self-generated, generation-varying reward coordinates, which the authors concede. The 1.8x and 2.5x numbers are therefore not comparisons on a shared behavioral basis. The headline diversity claim partly reflects one method being told to optimize the metric. The only shared external check is the Card Sandbox downstream evaluation.

  • Medium severity

    The downstream claim is narrow and statistically thin. - It covers one tabular environment (Card Sandbox), ten tasks, and three seeds. The tasks were fixed before evolution, but they were designed by the authors. - At 10,000 episodes, Habitats 0.617 ± 0.058 vs Direct Mutation 0.533 ± 0.029 is reported as ± std with no significance test or CI. - The claim that Habitats 'remains higher than either baseline after 20,000 episodes' is not backed by numbers in the main text. - The 'half the budget of scratch' framing excludes the cost of the evolution run that produced the library. The authors only argue that this cost amortizes.

  • Medium severity

    The abstract claims Habitats achieves the 'highest macro-averaged final Specialist Quality'. It omits three facts from Sec 5.1: - Direct Mutation has higher mean SQ across generations (0.8409 vs 0.7787). - Direct Mutation leads mean SQ in three of four environments. - Best per-environment final SQ is split across all three methods. SQ is also min-max normalized within each method's own population, so cross-method SQ comparisons have the same shared-basis problem as BD.

  • Medium severity

    Two possible confounds come from the prompts. Appendix D.2 says the Mutator is conditioned on a rolling window of previously generated reward functions to reduce duplication. The main text does not state whether the baselines' generators get the same window. The Planner can also issue parentless 'new individual' directives, which mixes Independent-Generation-style exploration into Habitats. Both are diversity mechanisms other than population-level planning.

  • Medium severity

    The baselines are only internal ablations. There is no comparison to an external objective-discovery or quality-diversity method, such as Eureka-style reward generation, MAP-Elites with LLM mutation, or POET-style transfer, even though these are discussed in related work. Calling the ablations 'stringent' does not show the approach beats prior systems.

  • Low severity

    Several parts of the evaluation are thin: - Evolutionary horizons are short (6 generations for MuJoCo) and initial populations small (3-4). - The horizon-extension result is summarized qualitatively, with trajectories deferred to appendices. - The backbone ablation covers Card Sandbox only. - GC 'cannot be meaningfully macro-averaged' and varies substantially across seeds.

Questions for the authors

  • What were total environment steps, total policies trained, and total Planner and Mutator LLM tokens per method and environment?
  • If the baselines get the same offspring count as Habitats, or the Planner is not shown SQ and BD, does the BD and GC gap persist?
  • Do the baseline generators receive the same rolling window of previously generated rewards that the Habitats Mutator uses?
  • Can BD be computed on a shared reward basis (for example, the union of all methods' final rewards or a fixed held-out reward set) so methods are compared in one space?
  • What are the per-task downstream results and significance tests, and how does the win rate change when evolution cost is charged to the library?
  • How does Habitats compare to an external baseline such as Eureka-style reward refinement or MAP-Elites with LLM mutation?

Related in the directory

Open-source projects

Open-source LLM-driven evolutionary code-search loop in the AlphaEvolve lineage that the paper cites as prior LLM evolutionary operators.

People

Author affiliation; DeepMind also produced FunSearch and AlphaEvolve, which the paper builds on and positions against.

More tools on the same problem

Products and open-source projects in the directory closest in meaning to this paper.

Train agents by conversation; links an arXiv paper
The harness of harnesses, built for RSI.
Open, invite-free general-purpose agent from the MetaGPT team.
Optimizer that trains reusable natural-language skills for frozen LLM agents.
The simulation platform for agent self-improvement

Domain specialization of LLM agents is usually framed as a weight-update problem: collect trajectories, run reinforcement learning (RL) or supervised fine-tuning (SFT), and deploy a new checkpoint. We study a complementary axis: evolving the \textbf{agent harness}---the system prompt, tool schemas, skill library, and planning scaffolding---while keeping the policy frozen. We cast harness evolution as an RL-style outer loop and instantiate it with GEPA, a reflective evolutionary optimizer. The resulting harness adapters require no GPU training, are loadable per vertical domain, and compose with weight-based RL. Experiments with Codev, a Claude Code-style coding agent, on SWE-bench Verified, OfficeBench, and Terminal-Bench show a consistent pattern: weight updates give the strongest single-path gains, harness evolution recovers most of those gains at a small fraction of the compute, and combining both paths is best overall. We also analyze a failure mode of SFT-based specialization---shortened reasoning chains and increased truncation---and argue that harness adapters avoid it by construction. Our results position harness evolution as a practical, non-destructive complement to weight updates for vertical agents.

BoHao Chen

Large Language Models (LLMs) are increasingly used in multi-turn agentic workloads that require sustained interaction with complex environments. Existing reflective prompt optimizers such as GEPA learn from failed rollouts, but agentic failures can also come from prompt weaknesses, harness limitations, stochastic execution, or noisy judges. We argue that such failures may not provide useful learning signal, and may even be harmful; and thus it is essential to curate which tasks are provided to the prompt optimizer for better performance. We introduce GEPA-Curator, a framework that augments the prompt optimizer to select which agent experiences should shape prompt optimization. In particular, GEPA-Curator consists of two components: task curation, which filters out tasks that are likely to provide noisy or unreliable learning signals, and prior success retrieval, which selectively retrieves past successful trajectories for a task and provides them as additional context to the prompt optimizer. We evaluate GEPA-Curator on GoBrowse, ALFWorld, AppWorld, and $τ$-bench, using both Gemini 3.1 Pro and Claude Opus 5 as optimizer models. GEPA-Curator matches or exceeds the mean performance of both baselines, with gains of up to 20.7% over GEPA and 21.2% over ACE.

Zack Yu, Nicholas Lee +9

Agentic harness evolution optimizes an agent's instructions, tools, and control flow by using its task execution experiences as evolving evidence. While more evolution tasks should intuitively improve performance, our preliminary study reveals a paradoxical failure mode: the performance of existing methods degrades as the task pool expands. Our further analysis demonstrates that this degradation stems from suboptimal evidence selection during optimization, as different evidence combinations lead to substantially different evolution outcomes. To address this issue, we propose Successive Scale Racing (SSR), a framework that adaptively searches for optimal evidence combinations in each evolution round. SSR constructs diverse evidence combinations based on the corresponding task quality and coverage, and efficiently races the resulting candidate harnesses under a small compute budget. Empirically, across three distinct benchmarks, SSR achieves state-of-the-art results in all six configurations. Notably, as the task pool grows from 40 to 200, SSR steadily improves the pass rate from 64.3% to 68.3%, while the baselines' performances all drop. Furthermore, its racing mechanism identifies near-optimal candidates while reducing validation executions by 60%.

Jingzhe Liu, Jiliang Tang +3

Large language model (LLM)-driven agent scaffold evolution improves agent workflows through iterative candidate generation and evaluation. Evaluation both guides subsequent search and determines the final scaffold, but evaluating every candidate on the full task set incurs substantial execution costs. We investigate how evaluation budgets can be allocated across these two roles. Our experiments show that sparse feedback can sustain productive evolution, while additional targeted evaluation improves final selection. Replay analyses further show that shared informative items and a common scoring reference support comparisons among closely matched candidates. Motivated by these findings, we propose \method, an evaluation allocation framework that combines sparse search-time feedback with targeted final confirmation. A short fully evaluated warm-up establishes a shared informative core and calibrates a response model whose item parameters remain fixed during search. After search, \method refits the model and applies paired successive halving, reusing accumulated observations and executing only missing evaluations. Across four benchmarks and two evolution frameworks, \method achieves higher mean performance than full evaluation in most settings while using approximately half as many evaluation cells.

Sichun Luo, Yi Huang +8

An embodied agent built on a language model goes to work with the weights it was given and keeps them for life. To get better, it needs more training, or reflection, memory, search or prompts that cost every step and are lost when the task changes. Editing weights by reasoning, weight-space programming, could end this, but has stayed with models that only reason or relied on a far larger commercial model. We introduce the self-upgrading embodied agent, to our knowledge the first that learns from its own experience by upgrading its own weights on the job, between its tasks, with no training, no gradient, no reward model, no second model, no test-time scaling and no harness or prompt engineering. By day a 27B agent works in a household environment. At night it reads its record, finds many of its steps wasted on replies that reach the token limit before any action, traces the habit to one direction in its hidden states, and rewrites one tensor of its weights. An agent that rewrites itself must first never break itself, so it is its own examiner: it tests every change against its unchanged self on practice tasks and keeps only what holds. When an edit holds, the next day it is a better agent, at the same cost per step: over thousands of held-out episodes, 48 fresh seeds a task, its one kept edit makes it complete significantly more tasks, in fewer steps, with fewer wasted and fewer tokens. This self-improvement is multi-round, stable and continual: through the nights that follow, the upgrade holds, without collapse. Of four sizes of its family, only the 27B agent does this. From here on, an embodied agent need not keep training and inference apart: as it works, it gathers its own experience and upgrades itself, with no separate pre-training or post-training and no human intervention. We believe this opens lifelong continual learning for robots: stable, continual, recursive self-improvement.

Jiajun Fan, Neil He +11

Agent evolution follows a simple loop: a proposer writes candidate artifacts (prompts, skills, memories) and selection accepts those that score higher. This loop has shown promise, yet practitioners face a puzzle: methods trade wins across papers, and evolution often fails to bootstrap on certain tasks. We trace this puzzle to the Resolution Hypothesis: agent evolution stalls not because methods fail to propose better artifacts, but because noisy evaluations cannot reliably identify them. Across seven evolution methods and six models (over 10M LLM calls), we find support for the hypothesis at both levels where evaluation scores are used. At the candidate level (choosing artifacts), helpful candidate artifacts exist, but selection is no better than random at telling them from harmful ones, so errors accumulate across rounds. At the method level (ranking methods), typical margins of a few percentage points are smaller than the difference between two independent runs of the same method, so published rankings often rest on luck. Together, these findings indicate that agent evolution is often bottlenecked by reliably identifying improvements. This calls for a shift in how we develop and evaluate self-improving agents, from designing ever more candidate improvement systems to making true improvements detectable and accumulable.

Yuanhao Zeng, Shaocheng Lan +9

The Harness Hub newsletter

New harness companies, projects, releases and the monthly State of Harness report, in your inbox.