Paper · Agents and tools · Version v1
NetHack+: A Configurable Environment for Long-Horizon Agent Research
First published: arXiv, . Original
Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.
This page holds the text of the paper, converted to HTML; figures may be left out.
NetHack remains a challenging benchmark for long-horizon decision-making despite extensive research employing reinforcement learning, imitation learning, and language-model agents. A substantial difficulty in NetHack derives from the lack of infrastructure surrounding the game. As a result, we present NetHack+, an upgraded game engine with 17 settings for varying game difficulty, 2.1x the throughput of the NetHack Learning Environment (NLE) at 64 games per thread, and integrations into Gym and Prime Intellect's Verifiers. We accomplish this by refactoring NLE to allow saving and restoring game state, configurable game mechanics, and custom observation and action interfaces embedded in modern LLM harnesses (Prime Agent and Claude Code). We also package a new metric BAL$_{min}$ to reward balanced progression in dungeon depth and experience, motivated by successful human runs and designed to limit rewards for agents that descend without gaining experience. Experimentally, interface improvements and continual harness optimization yield modest gains in BAL$_{min}$, reaching approximately 1.5x baseline performance. To demonstrate the utility of checkpointing, we introduce Prime-Agent-Explore (PAE), an orchestrator-based search algorithm that selects saved checkpoints and guides subsequent exploration. Using 30 attempts with full vision, PAE reaches 11.4% BAL$_{min}$ and 34.7% BAL$_{max}$, improving over the single-life baseline by 8.6x and 3.5x, respectively, and exceeding the best of k independent lives with the same number of attempts by 1.6-2.8x. With fog-of-war, PAE reaches 6.0% BAL$_{min}$ and 30.9% BAL$_{max}$, against 4.0% and 13.2% for the strongest single-life entry on the BALROG leaderboard (GPT-6 Astra). We also evaluate PAE on MiniHack, Crafter, and TextWorld, where it improves over a single attempt on all three and reaches the highest reported score on TextWorld.
Figure 1: Progress in NetHack vs. Cost per Game. Each dot represents the median and the mean cost per game, in BALROG’s harness (hollow) or ours (filled). The lines start from GLM-5.2’s single life in our harness and add , and attempts per seed, with the Prime-Agent-Explore (PAE) algorithm (solid) or best@ (dashed).
Abstract
- NetHack remains a challenging benchmark for long-horizon decision-making despite extensive research employing reinforcement learning, imitation learning, and language-model agents. A substantial difficulty in NetHack derives from the lack of infrastructure surrounding the game. As a result, we present NetHack+, an upgraded game engine with 17 settings for varying game difficulty, the throughput of the NetHack Learning Environment (NLE) at games per thread, and integrations into Gym and Prime Intellect’s Verifiers. We accomplish this by refactoring NLE to allow saving and restoring game state, configurable game mechanics, and custom observation and action interfaces embedded in modern LLM harnesses (Prime Agent and Claude Code). We also package a new metric to reward balanced progression in dungeon depth and experience, motivated by successful human runs and designed to limit rewards for agents that descend without gaining experience. Experimentally, interface improvements and continual harness optimization yield modest gains in , reaching approximately baseline performance. To demonstrate the utility of checkpointing, we introduce Prime-agent-explore, an orchestrator-based search algorithm that selects saved checkpoints and guides subsequent exploration. Using attempts with full vision, Prime-agent-explore reaches % and % , improving over the single-life baseline by and , respectively, and exceeding the best of independent lives with the same number of attempts by –. With fog-of-war, Prime-agent-explore reaches % and % , against % and % for the strongest single-life entry on the BALROG leaderboard (GPT-6 Astra). We also evaluate Prime-agent-explore on MiniHack, Crafter, and TextWorld, where it improves over a single attempt on all three and reaches the highest reported score on TextWorld.
1 Introduction
For decades, games have served as benchmarks for machine learning, driving new architectures and better learning algorithms (Tesauro, 1994; Campbell et al., 2002; Mnih et al., 2013; Silver et al., 2016; Karten et al., 2025; ARC Prize Foundation, 2026). With rich, synthetic environments, games offer the ability to test agents on complex tasks while maintaining full visibility over the environment. Each game requires its own profile of skills, making games strong targets for measuring generalization of diverse abilities, including perception, planning, and control.
Substantial research has focused on applying language models to play games (Hu et al., 2025; Zhang et al., 2026a), with rapid progress being made over the past year. Language models now reach human-level performance on Pokémon battles (Karten et al., 2025; Karten et al., 2026a), Baba Is You (Cloos et al., 2024), and other games in BALROG (Paglieri et al., 2025). However, no benchmark agent comes close to solving NetHack (Küttler et al., 2020) with no human help.1 At the NeurIPS 2021 NetHack Challenge (Hambro et al., 2022a), none of the agents came close to completing the game, and the winning entry was symbolic. LLM-agent methods (Jeurissen et al., 2024; Paglieri et al., 2025) have matched deep-RL models but remain weaker in benchmark play than the neuro-symbolic bot AutoAscend (Sypetkowski and Sypetkowski, 2021).
Immediately, NetHack contains the intersection of many of the hardest classical reinforcement learning (RL) challenges, including limited visibility with overloaded glyphs, stochasticity in both game transitions and level generation, long-horizon navigation across procedurally generated floors, and a high-dimensional action space.
Beyond the game mechanics, poor infrastructure plays a large role in NetHack’s difficulty. NetHack’s user interface requires vi-style movement keys, and toggle-based menus waste token context and hide attributes of the NetHack environment that were never designed to be exposed programmatically (Matthews et al., 2026a). Furthermore, the NetHack Learning Environment (NLE) (Küttler et al., 2020) can only play one game per process since the game state consists of hundreds of global variables scattered across the code base. This prevents NLE from supporting checkpoints and state restoration and checkpoint-based search algorithms that use them.
Finally, evaluating progress is difficult when agents rarely win. The sparse reward has motivated research into intermediate progression metrics, including learned intrinsic rewards and weighted combinations of exploration, health, and other game statistics (Klissarov et al., 2024; Henaff et al., 2026; Matthews et al., 2026b). For language model evaluations, BALROG (Paglieri et al., 2025) is the prevalent progression metric. This metric, which we denote , scores a trace by the higher of two human-derived ascension-probability scores, given a dungeon depth and experience level. However, this maximum allows agents to improve their score by descending without gaining experience. Our evaluations show that agents descend rapidly but die early (Figure 3), motivating a metric that rewards progress in both dimensions.
To modernize the infrastructure, we introduce NetHack+, a more flexible port of the NetHack game engine. Integrated into PufferLib (Suarez, 2024; Sanders, 2026) and Prime Intellect verifiers (Senghaas et al., 2026), NetHack+ provides thousands of games per process ( NLE’s throughput at games per thread and over the checkpoint/restore speed of NLE), live-editing of gameplay constants (e.g., toggling off fog-of-war, adjusting health), and constant-time checkpointing. Within NetHack+, we integrate common LLM harnesses, such as Prime Agent and Claude Code, and use a default set of skills instead of single actions. Together, these refactors let us ablate the effect of perception and control inefficiencies on a model’s planning capability. In one example, we test the hypothesis that locked doors waste agent actions by unlocking standard doors (Section 5.1). We also run baseline Continual Harness experiments, in which an orchestrator edits the agent’s memories and skills between games (Section 5.2) (Karten et al., 2026c).
We propose as the lower of the two human-derived Dlvl and XL scores. This design is motivated by the consistent progression in both depth and experience observed in successful human runs (Figure C.1). Four of the five interventions that increase decrease , illustrating how the choice of metric changes the assessment of agent progress (Table 5).
To demonstrate the utility of checkpointing functions, we introduce Prime-Agent-Explore (PAE), a checkpointed search algorithm for LLM agents in NetHack, significantly improving their performance ( rises from % to %, a % increase). Furthermore, we test generalization to MiniHack, TextWorld, and Crafter, finding similar improvements (Section 5.3). We summarize our contributions below:
- NetHack+: An updated package for evaluating agents in NetHack with modern agent harness integrations that increases by while decreasing costs by and a more customizable game engine than NLE (17 settings) that holds thousands of games per process ( NLE’s throughput at games per thread).
- BAL
{}_{\textbf{min}}: An improved metric that rewards balanced progression in dungeon depth and experience and punishes empirical reward hacking behavior of LLM agents. - Prime-Agent-Explore: A checkpointed exploration algorithm based on Go-Explore that achieves % with full vision and % with fog-of-war, the strongest single-life entry on the BALROG leaderboard (%, GPT-6 Astra) (Paglieri et al., 2025). PAE additionally beats the best of independent games by – at the same number of attempts.
2 Background Work
NetHack.
NetHack, from 1987, is one of the oldest roguelike games. In the terminal game, a player descends to the lowest floor of a procedurally generated dungeon to retrieve the Amulet of Yendor and return to the surface without dying, battling hundreds of monsters and navigating environmental traps along the way. NetHack is challenging for humans and across the k human games from the NetHack Learning Dataset (NLD) (Hambro et al., 2022b), only end in an ascension.
Popularized through the Gym environment NLE (Küttler et al., 2020) and the NeurIPS NetHack Challenge (Hambro et al., 2022a), NetHack has been studied with symbolic agents (Sypetkowski and Sypetkowski, 2021), deep reinforcement learning (Piterbarg et al., 2023; Henaff et al., 2026; Matthews et al., 2026b), imitation learning (Mazoure et al., 2023; Tuyls et al., 2024), and language models (Klissarov et al., 2024; Jeurissen et al., 2024; Paglieri et al., 2025).
NetHack Benchmarks.
Despite minimal progress in NetHack since the NetHack Challenge, the infrastructure for the game has not improved, nor have easier, scaffolding variants been introduced. Only one other benchmark, MiniHack (Samvelyan et al., 2021), is built on NetHack. MiniHack designs custom NetHack dungeon levels with the same actions and observations, but with different objectives. SkillHack (Matthews et al., 2022) extends MiniHack with procedurally generated environments. However, RL models and LLMs have been able to saturate MiniHack, yet neither method transfers to NetHack (Paglieri et al., 2025). MiniHack fixes the data format and varies objectives in an environment. In contrast, in NetHack+, we fix the objective of NetHack, but add 17 game settings that can be adjusted to make the game more approachable.
BALROG’s Limitations.
BALROG is a benchmark that measures LLM performance on a suite of games, including NetHack. It finds that models score under % on NetHack (Paglieri et al., 2025). However, models ranked on this leaderboard are evaluated in a fixed harness that limits their performance due to not being up to standard with modern harnesses. The largest two issues are the fixed history of 16 observations and the lack of agent skills that provide action chunking over NetHack vi commands. Research on popular and modern agent harnesses (Anthropic, 2025; Anysphere, 2025; OpenAI, 2025; DeepSeek-AI, 2026; Zechner and Earendil Works, 2026; Karten et al., 2026b) finds that providing all observations rather than a fixed number better represents the capabilities of frontier models. Furthermore, use of skills has been found to enable cheaper and more performant agents. Recent benchmarks allow models to use specific user-provided harnesses, informing our decision to offer both Prime Agent and Claude Code as configurable harnesses in NetHack+.
Search-based Algorithms.
Game-playing agents frequently use search to identify promising sequences of actions. These methods require the ability to save and restore states, an ability that underpins tree search in board games (Silver et al., 2016; Silver et al., 2018; Schrittwieser et al., 2020), exploration under sparse rewards (Mouret and Clune, 2015; Ecoffet et al., 2021), reverse curricula methods (Florensa et al., 2017; Resnick et al., 2018; Salimans and Chen, 2018), and skill libraries that accumulate reusable behaviors (Wang et al., 2023; Wang et al., 2024; Wang et al., 2025). Following similar work for agents (Dong et al., 2026; Zhang et al., 2026b), we adopt a framework similar to Go-Explore and its successors, returning to checkpoints before exploring onward (Ecoffet et al., 2021; Zhang et al., 2024; Lu et al., 2025).
3 Methods
Formalism.
We model NetHack as a partially observable Markov Decision Process (POMDP) (Sutton and Barto, 1998). A POMDP is defined as a tuple denoting the state space , action space , and observation space . At time with state , an agent receives an observation drawn from the observation function and makes a decision The environment then transitions to The environment also returns a reward . We write for the observation history available at time .
NetHack+ Engine.
To support studies of long-horizon planning, we make three modifications to the game. We make features such as partial observability configurable through game flags, we expose difficulty via environment variables, and we programmatically expose game internals, enabling the development of custom observations and skills (as seen in Section 2).
In our refactor of NetHack’s codebase of over 100,000 lines, we gather the mutable state into a single per-environment struct, with the most commonly modified fields placed on its entries to optimize for cache lines. Example user-set knobs that we include are vision toggles, fog-of-war range, health regeneration speed, and map generation. Table 1 notes a key set of functionalities, and we provide a full list with a detailed comparison to NLE and MiniHack in Appendix A.
| Capability | NLE | MiniHack | NetHack+ |
|---|---|---|---|
| Full NetHack | yes | no (sub-tasks) | yes |
| Environments per process | thousands | ||
| Save, restore, branch game state | no | no | yes, |
| Edit hero stats and depth at run time | no | task setup only | yes |
| Difficulty knobs (generation / character / live) | task-authored | / / | |
| Serialize and transplant a level | no | no | yes |
| Observation formats | |||
| Action surfaces | vi | vi | vi, NetPlay, NetCore, code |
Table 1: Infrastructure Comparison. Capabilities of NLE, MiniHack, and NetHack+ game engines. Table A.1 and Table A.2 give the full comparison and knob list.
Agent Interface.
In NetHack+ (Figure 2), we replace the agent harness in BALROG with the Claude Code (Anthropic, 2025) and Prime Agent (Karten et al., 2026b) command-line interfaces (CLIs), where the game is exposed through the Model Context Protocol (MCP). We define and default to using the NetCore set of skills, which is a reduced set of skills taken from Jeurissen et al. (2024). NetCore retains the expressiveness of the original vi controls while compressing up to actions into a single LLM turn.
| Skill | Arguments | Skill | Arguments |
|---|---|---|---|
np_explore_level | (none) | np_move_to | x, y |
np_melee_attack | x, y | np_kick | x, y |
np_press_key | key | np_apply | item_letter (optional) |
np_rest | count (optional, default 5) | np_pray | (none) |
Table 2: NetCore skill set and arguments for the NetHack agent.
NetCore consists of eight skills, each a small program over raw NetHack keys. np_move_to() navigates to a target tile using A* and emits movement keys in a single call. Other actions not covered by dedicated skills remain accessible by calling np_press_key() with NetHack’s key binds (Table 2).
Our implementation differs from NetPlay (Jeurissen et al., 2024) in that it allows interrupts. In NetPlay, game prompts are dismissed by a skill internally, hiding the message from the agent. This substitutes the deterministic code’s judgment for the model’s, instilling a prior towards action. We instead abort at the first game message, ensuring the agent retains full knowledge and control.
Figure 2: NetHack Agent Benchmark Diagram. Architecture to optimize the Prime Agent NetCore harness on NetHack. NetHack Rollout: An agent interacts with the game engine while writing to and reading from its memory, skills, and sub-agent configurations. Human: Manual edits and ablations used to measure the difficulties caused by various game mechanics. Orchestrator: LLM-based algorithms for optimizing rollouts: Prime-agent-explore and Continual Harness.
Evaluation Metric.
We introduce BALROG-min (), defined as , where and are the maximum dungeon level (Dlvl) and experience level (XL) attained across a rollout. We use the human-derived progression mappings from Paglieri et al. (2025), where and estimate the probability of eventual ascension among human games that reach dungeon level or experience level , respectively. The standard BALROG metric, which we denote , takes the maximum of these two scores instead.
This metric rewards balanced progression in dungeon depth and experience, as motivated by the joint progression observed in successful human runs (Figure C.1). Under , an agent can increase its score by descending while its experience remains low. Under , once the experience-based score is the smaller component, further descent alone will not improve the metric.
Prime-Agent-Explore.
We introduce Prime-Agent-Explore, a checkpointed exploration algorithm inspired by Go-Explore (Ecoffet et al., 2021; Lu et al., 2025). During gameplay, we save checkpoints containing both the game state and the sub-agent’s conversation context. Between rollouts, an orchestrator receives a summary of the previous rollout and a list of all checkpoints, including their dungeon depth, experience level, health, hunger status, and game score. The orchestrator then selects a checkpoint to resume and provides a high-level plan to append to the sub-agent’s context.
After each rollout, subsequent agents do not have access to the prior traces, tile locations, death causes, or item positions from that rollout beyond the context already stored in a selected checkpoint. Each sub-agent resumes with a summary of their checkpoint and the orchestrator’s high-level plan. We restrict information sharing across attempts to the rollout summaries, checkpoint statistics, and high-level guidance available through the orchestrator. We also do not restore the RNG stream, so that an orchestrator cannot accumulate knowledge about their seed.
4 Experimental Setup
Modern Evaluation Setup.
We evaluate GPT-5.6 Sol and GPT-5.6 Luna, Gemini-3.7 Flash, Qwen-3.8 Max, and GLM-5.2 with Prime Agent NetCore, demonstrating improved efficacy over the original BALROG harness. We use GLM-5.2 for further ablation experiments.
Failure Mode Probes.
We probe agents’ planning, control, and perception skills by supplying elements of the agent scaffold that embody each of the capabilities and removing obstacles from the environment (Section 5.1). We emphasize that these results are a small subset of the experiments that are now possible with our new game engine. For direct comparability, each ablation is evaluated on traces, consisting of seeds with repetitions each (Table 5).
Continual Harness Protocol.
Each of the harness components described so far is designed and tested by hand. Next, we ask how the model can optimize its own harness by reflecting on its previous gameplay (Shinn et al., 2023; Zhao et al., 2024). We test three configurations of a GEPA-style (Khattab et al., 2024; Agrawal et al., 2026) train–reflect–evaluate wrapper over the Continual Harness functionality within Prime Agent. The first is a memory-only run, in which only memory entries are persisted between iterations (as opposed to editing NetCore). For the wiki run, the orchestrator edits the same memories, but is additionally given two NetHackWiki strategy pages on the early game. The skills+wiki run is given the wiki and can edit memory entries and NetCore skills. In each iteration, subagents play the game and propose memory edits, which an orchestrator then approves or modifies. Full details for each variation can be found in Appendix F.
Prime-Agent-Explore Evaluation.
For each rollout, we save checkpoints every LLM calls, at each change in Dlvl or XL, and upon ‘save’ skill calls. For our evaluations, we allot rollout attempts, with a scaling study on one of the evaluation seeds using up to rollout attempts. To better understand the algorithm, we ablate Prime-Agent-Explore variants that prevent the orchestrator model from steering agents, selecting checkpoints, or both. These ablations use attempts (Table 7). To test generalization, we apply Prime-agent-explore to Crafter (Hafner, 2022), TextWorld (Côté et al., 2018), and MiniHack (Samvelyan et al., 2021).
5 Results
Overall Performance.
Figure 3: Progress in NetHack. a) against game turns for recent LLMs using the Prime Agent NetCore, compared to human population, human successes, and prior SOTA (Gemini-3 Pro with BALROG harness). Each curve represents the running maximum of the median of living rollouts (i.e., we measure the highest median score that can be attained by the model within some number of in-game turns). b) Boxplots show the distribution of scores for human players, the BALROG SOTA, and our optimized harnesses.
| beats human | ||||||
|---|---|---|---|---|---|---|
| Agent | mean | median | mean/median | pctile | ||
| Single-attempt evaluations | ||||||
| Human | — | % | ||||
| Gemini-3 Pro (BALROG) | no / no | % | ||||
| Prime Agent NetCore (GLM-5.2) | no / no | % | ||||
| GPT-5.6 Sol | no / no | % | ||||
| GPT-5.6 Luna | no / no | % | ||||
| Gemini-3.7 Flash | no / no | % | ||||
| Qwen-3.8 Max | no / no | % | ||||
| Multi-attempt evaluations | ||||||
| Best@ (GLM-5.2, 30 attempts) | no / yes | % | ||||
| explore (GLM-5.2, 30 attempts) | \mathbf{11.38\pm 1.33} | \mathbf{11.70} | yes / yes | % | ||
| explore (GLM-5.2, 100 attempts) | \mathbf{20.43\pm 2.52} | \mathbf{17.91} | yes / yes | % | ||
| explore (fog, GLM-5.2, 30 attempts) | 5 | 5.08 | yes / yes | 85.8% |
Table 3: Main Results. We compare evaluations of the Prime Agent NetCore with prior state-of-the-art evaluation results from BALROG, as well as human gameplay from NetHack Alt.org (NAO, Hambro et al. (2022b)) games. We evaluate GLM-5.2, GPT-5.6 Sol, GPT-5.6 Luna, Gemini-3.7 Flash, and Qwen-3.8 Max with the Prime Agent NetCore. Among the harness interventions of Section 5.1, ‘forced revive’ performs best ( at ), but fundamentally changes the game rather than the harness*†*. Fog denotes evaluation with fog-of-war enabled. The multi-attempt rows use up to attempts per game, whereas human games are single-life.
*†*Forced revive differs from Prime-agent-explore since revived agents’ context will still hold the “future” actions and observations that could follow the restored state, whereas a Prime-agent-explore attempt starts from its checkpoint with only rollout summaries, checkpoint statistics, and the orchestrator’s high-level plan carried over.
We report our main evaluations in Table 3 and Figure 3, with expanded results in Table C.1. The evaluated models reach dungeon levels of up to on average but only experience levels of –. Qwen-3.8 Max achieves the highest baseline median of %, matching the human median. Against the BALROG harness inside NetHack+, ours scores higher for all three models at – lower cost (Table 4). Our traces suggest the agents understand the objective and glyphs of the game, identifying monsters easily. However, this does not prevent them from making catastrophic and irrevocable mistakes (e.g., taking losing fights and descending on low health). Although we default to Prime Agent, we compare to Claude Code in Appendix G.
| Median | Median | Mean cost per game | ||||
|---|---|---|---|---|---|---|
| Model | BALROG | Ours | BALROG | Ours | BALROG | Ours |
| DeepSeek V4.1 Flash | 2.25 | 6.66 | $ | $0.03 | ||
| GLM-5.2 | 1.97 | 5.90 | $ | $0.90 | ||
| Gemini-3.1 Pro | 2.42 | 12.56 | $ | $10.87 |
Table 4: BALROG Harness versus Ours. Single-attempt evaluations inside NetHack+ with full vision. and are reported as percentages. Bolded denotes the better configuration.
5.1 Environment and Interface Ablations
We consider three main capabilities for evaluating behaviors of LLMs. Planning focuses on formulating and pursuing goals beyond the next action, control is the ability to reliably interact with the game, and perception concerns identification of the game state from observations. We test model weaknesses by removing various obstacles representative of each capability.
| Intervention | Dlvl | XL | |||
|---|---|---|---|---|---|
| Prime Agent + NetCore | |||||
| Advisory descent gate | |||||
| Forced revive on death | \boldsymbol{10.3\pm 0.8} | \boldsymbol{4.20} | \boldsymbol{15.48\pm 2.58} | \boldsymbol{2.64\pm 0.20} | |
| Locked doors removed | |||||
| ASCII map every turn | |||||
| JSON map every turn |
Table 5: Harness Interventions. Using Prime Agent NetCore with GLM-5.2 as the control, we show results with modifications to the harness and engine. Each row shows evaluations on a fixed set of seeds repetitions. and are aggregations of the human-derived Dlvl and XL progression scores. Directionally, ablations improve , while four of the five lower .
Decision-making Gates (planning).
We add heuristic-based gates that interrupt tool calls and request confirmation when an agent attempts to descend while underleveled relative to successful human games, or attack an enemy while below one-third of maximum health. After receiving a warning, the agent declines the descent in % of cases, but gains an experience level before retrying in only % of cases. Overall, mean experience level rises from to , leading to increase from % to % (%).
Revival + Rollback (planning).
Instead of making a gate prior to potential mistakes, we test out how a model responds to and recognizes the mistakes after they occur by providing an -step rollback skill using state checkpointing. We also provide automated rollbacks upon death, where a run is now declared ‘finished’ upon the third death of a model in a single dungeon level. This leads to the best results under all metrics at depth and (). Due to the success of these attempts, we extend this strategy in Section 5.3.
Unlocking Doors (control).
To test the marginal benefit of improving control, we initialize all doors as unlocked2. This reduces one source of control friction, and we find that np_kick() calls fall from % to % of all tool calls. Affecting of tool calls corresponds to an improvement to (), suggesting that improving control is a very promising area of NetHack+.
Streamed Observations (perception).
Our harness only refreshes dungeon maps when requested, to reduce redundant tokens3. However, we observed of melee_attack(x,y) tool calls occurring on empty tiles (where a monster used to be). We test out providing the map on every turn. In this case, misfires fall to % when the map is formatted as ASCII and to % when a JSON map is provided. We give examples of map formats in Appendix B. slightly changes by points with JSON and with ASCII. However, the drop in misfires suggests that the observation format still affects the reliability of agents.
5.2 Continual Harness Optimization
| Condition | Dlvl | XL | |||
|---|---|---|---|---|---|
| Prime Agent + NetCore | \mathbf{8.00\pm 0.88} | \mathbf{9.96\pm 2.19} | |||
| Continual, memory-only | |||||
| Continual, wiki | \mathbf{3.13\pm 0.31} | \mathbf{1.96\pm 0.22} | |||
| Continual, skills |
Table 6: Continual Harness Evaluations. Each row denotes a specific setup for running Continual Harness for iterations. Each cell reports the average as well as standard error of the mean. Dlvl and XL represent the maximum dungeon level and experience level attained during the run, and and represent the maximum and minimum BALROG progression metrics.
Table 6reports the held-out evaluations for each configuration. In both reflection-only configurations rises, but skill-editing capability decreases both and .
Continual Harness.
For both Memory-Only and Wiki-Based Reflection variants, the model focuses on correcting factual errors in its traces. The most frequent edits adjust numerical boundaries for guidance (e.g., modifying ‘never descend or more levels without XP gain’ to ‘never descend unless XL increased since last descent’). The model empirically only makes changes addressing one issue at a time to isolate the effect of its changes. Continual harness with memory results in . With wiki access during continual harness, increases to .
When allowed to edit NetCore, the orchestrator creates longer-horizon tools, including a skill intended to descend an entire dungeon level. Rollout agents abandon these skills after failures, limiting the feedback available for subsequent edits (Appendix D). This configuration achieves , compared with for memory and wiki access without skill editing.
5.3 Prime-Agent-Explore
| a) Averaged over Five Seeds | Max Dlvl | Max XL | |||
|---|---|---|---|---|---|
| Best@ | |||||
| Prime-Agent-Explore, attempts | \mathbf{11.38\pm 1.33} | \mathbf{34.66\pm 3.19} | \mathbf{18.4\pm 1.5} | \mathbf{8.6\pm 0.3} | |
| b) Single-Seed Scaling | |||||
| GLM-5.2, single life | |||||
| Prime-Agent-Explore, attempts | |||||
| Prime-Agent-Explore, attempts | \mathbf{20.43\pm 2.52} | \mathbf{44.18\pm 3.38} | \mathbf{23.3\pm 1.5} | \mathbf{10.3\pm 0.3} | |
| c) Prime-Agent-Explore Ablations | |||||
| Best@ | \mathbf{25.86\pm 7.60} | \mathbf{15.0\pm 3.5} | |||
| No Selection + No Guidance | |||||
| No Selection + Guidance | |||||
| Selection + No Guidance | |||||
| Prime-Agent-Explore, attempts | \mathbf{9.53\pm 1.38} | \mathbf{8.4\pm 0.4} |
Table 7: Prime-Agent-Explore Results. a) Averaged Prime-agent-explore results with attempts as compared to Best@, on a fixed set of five evaluation seeds; b) We scale Prime-agent-explore to attempts on one seed, showing the effect of scaling test-time compute. c) Ablations on the evaluation seeds without an orchestrator to provide guidance and select a checkpoint, with attempts. All values are means standard error over runs.
| Best@ | Prime-Agent-Explore | |
|---|---|---|
\mathbf{4.61} | ||
\mathbf{7.45} | ||
\mathbf{11.70} |
Table 8: Best@ versus Prime-Agent-Explore. (%) with GLM-5.2, seeds –.
In Table 7, Prime-agent-explore with GLM-5.2 beats the Prime Agent NetCore (Table 3) by on and on using attempts. It reaches and on average, corresponding to Dlvl with XL . In Figure 3, we find that progress matches human progress through k in-game turns on but still trails human performance as turns increase. The orchestrator observes hunger and health statistics when selecting checkpoints and guiding rollouts. An example can be found in Appendix E. Prime-agent-explore exceeds Best@, the best of independent games, by – (Table 8).
We scale the experiments to rollouts on one of the evaluation seeds in Table 7, finding that performance improves with the larger budget in this single-seed comparison. At attempts, dungeon level increases by and XL by . These levels are consequential in the game, so both metrics increase significantly. The best run by reaches (Dlvl at XL ), while the deepest run reaches Dlvl at XL , for a of .
Section c of Table 7 shows that removing guidance reduces from to , while removing selection and defaulting to resuming the last checkpoint reduces to . Removing both yields . The highest mean performance is attained when both are combined, but the ablation suggests that guidance is most effective when an orchestrator can already select a starting checkpoint.
We verify these results transfer to the fog-of-war version of NetHack, and attain an average of and across five seeds. For comparison, the strongest entry on the BALROG leaderboard, GPT-6 Astra with a single life, reaches % and % (Paglieri et al., 2025), while our runs use up to attempts per seed. We report results on the three additional environments in Table 9 and Figure 4. Compared to a single life, Prime-agent-explore substantially improves scores across all games.
| Suite | Crafter | TextWorld | MiniHack |
|---|---|---|---|
| Base | |||
| PAE | |||
Table 9: Prime-agent-explore Outside NetHack. Evaluations on Crafter, TextWorld, and MiniHack.
Figure 4: Cost Against Performance. Mean progression over MiniHack, TextWorld, and Crafter against total cost summed over the three games. The dashed line is the Pareto frontier.
6 Discussion
Both point-ablations and continual harness results suggest that the behavior of agents can be steered by inserting domain knowledge into the agent’s context. Across harness experiments, we find that behavioral changes allow to increase, yet decrease (Table 5), consistent with the hypothesis that over-indexes on short-term strategies while does not. Figure C.1 also shows that the models we evaluate overprioritize increasing Dlvl and diverge from the IQR of successful human traces early on, unlike Prime-agent-explore traces.
Future work may consider integrating a further optimized set of skills or skill-editing capabilities into the Prime-Agent-Explore algorithm to further improve performance. Another promising direction of work is to use Prime-agent-explore to generate high-quality data for imitation learning. In the past, imitation learning has been limited due to the low quality of AutoAscend data (Tuyls et al., 2024). With Prime-agent-explore, stronger traces could lead to much better models.
7 Conclusion
We introduce NetHack+, a configurable NetHack engine that supports checkpointing, custom observation and action interfaces, and modern agent harnesses. These capabilities enable controlled interventions on the game and checkpointed exploration through Prime-Agent-Explore. We also define , a metric which rewards balanced dungeon depth and experience level. With Prime-Agent-Explore, GLM-5.2 reaches % with full vision and % with fog-of-war, compared with % for the strongest single-life entry on the BALROG leaderboard. We observe a score increase when applying Prime-Agent-Explore to MiniHack, Crafter, and TextWorld, suggesting that checkpointed exploration generalizes across game environments. Together, NetHack+ and Prime-Agent-Explore provide infrastructure and a search method for continuing to study and improve long-horizon agent behavior on NetHack.
Responsible-use statement
We contribute NetHack evaluation infrastructure and Prime-agent-explore, a meta-agent whose orchestrator selects checkpoints and directs sub-agents. Experiments run in a sandboxed engine with no network access or external tools. The authors are not aware of any concerning societal impacts of the proposed work.
References
- Agrawal et al. (2026) L. A. Agrawal, S. Tan, D. Soylu, N. Ziems, R. Khare, K. Opsahl-Ong, A. Singhvi, H. Shandilya, M. J. Ryan, M. Jiang, et al. GEPA: reflective prompt evolution can outperform reinforcement learning. In ICLR,
- Anthropic (2025) Anthropic Claude Code: an agentic command-line coding tool. Note: https://www.anthropic.com/claude-codeAccessed: 2026-09-01 Link
- Anysphere (2025) Anysphere Cursor CLI: cursor’s coding agent in the terminal. Note: https://cursor.com/cliAccessed: 2026-09-01
- ARC Prize Foundation (2026) ARC Prize Foundation ARC-AGI-3: a new challenge for frontier agentic intelligence. arXiv preprint arXiv:2603.24621.
- Campbell et al. (2002) M. Campbell, A. J. Hoane Jr, and F. Hsu Deep Blue. Artificial Intelligence.
- Cloos et al. (2024) N. Cloos, M. Jens, M. Naim, Y. Kuo, I. Cases, A. Barbu, and C. J. Cueva Baba is AI: break the rules to beat the benchmark. arXiv preprint arXiv:2407.13729.
- Côté et al. (2018) M. Côté, Á. Kádár, X. Yuan, B. Kybartas, T. Barnes, E. Fine, J. Moore, M. Hausknecht, L. El Asri, M. Adada, W. Tay, and A. Trischler TextWorld: a learning environment for text-based games. In Computer Games Workshop at IJCAI,
- DeepSeek-AI (2026) DeepSeek-AI DeepSeek Harness: an open-source plugin-based agent runtime. Note: https://github.com/deepseek-ai/deepseek-harnessDeveloper preview v0.1, MIT License. Accessed: 2026-09-01
- Dong et al. (2026) Y. Dong, J. He, S. Liu, Y. Hou, D. Du, Z. Xu, S. Yu, B. Yang, Y. Xia, and H. Chen DeltaBox: scaling stateful AI agents with millisecond-level sandbox checkpoint/rollback. arXiv preprint arXiv:2605.22781.
- Ecoffet et al. (2021) A. Ecoffet, J. Huizinga, J. Lehman, K. O. Stanley, and J. Clune First return, then explore. Nature.
- Florensa et al. (2017) C. Florensa, D. Held, M. Wulfmeier, M. Zhang, and P. Abbeel Reverse curriculum generation for reinforcement learning. In CoRL,
- Hafner (2022) D. Hafner Benchmarking the spectrum of agent capabilities. In ICLR,
- Hambro et al. (2022a) E. Hambro, S. Mohanty, D. Babaev, M. Byeon, D. Chakraborty, E. Grefenstette, M. Jiang, J. Daejin, A. Kanervisto, J. Kim, et al. Insights from the NeurIPS 2021 NetHack challenge. In NeurIPS Competition Track,
- Hambro et al. (2022b) E. Hambro, R. Raileanu, D. Rothermel, V. Mella, T. Rocktäschel, H. Küttler, and N. Murray Dungeons and data: a large-scale NetHack dataset. In NeurIPS,
- Henaff et al. (2026) M. Henaff, S. Fujimoto, M. Matthews, and M. Rabbat Scalable option learning in high-throughput environments. In ICML,
- Hu et al. (2025) L. Hu, M. Huo, Y. Zhang, H. Yu, E. P. Xing, I. Stoica, T. Rosing, H. Jin, and H. Zhang Lmgame-bench: how good are llms at playing games?. Link
- Jeurissen et al. (2024) D. Jeurissen, D. Perez-Liebana, J. Gow, D. Cakmak, and J. Kwan Playing nethack with LLMs: potential and limitations as zero-shot agents. In CoG,
- Karten et al. (2026a) S. Karten, J. Grigsby, T. Upaa Jr, J. Bae, S. Hong, H. Jeong, J. Jung, K. Kerdthaisong, G. Kim, H. Kim, et al. The pokeagent challenge: competitive and long-context learning at scale. arXiv preprint arXiv:2603.15563.
- Karten et al. (2025) S. Karten, A. L. Nguyen, and C. Jin PokéChamp: an expert-level minimax language agent. In ICML,
- Karten et al. (2026b) S. Karten, A. L. Zhang, K. Thomas, S. Müller, E. Bakouch, D. Auras, M. Senghaas, F. Obeid, K. Dunas, J. Hagemann, and S. Jaghouar Prime agent: a self-improving RLM harness. arXiv preprint arXiv:2608.23552.
- Karten et al. (2026c) S. Karten, J. Zhang, T. Upaa Jr, R. Feng, W. Li, C. Shi, C. Jin, and K. Vodrahalli Continual harness: online adaptation for self-improving foundation agents. arXiv preprint arXiv:2605.09998.
- Kenny (2026) Kenny An LLM beat NetHack. Note: https://kenforthewin.github.io/blog/posts/llm-nethack-ascension/Vaguely Aligned blog, September 21, 2026. Accessed: 2026-12-03
- Khattab et al. (2024) O. Khattab, A. Singhvi, P. Maheshwari, Z. Zhang, K. Santhanam, S. Vardhamanan, S. Haq, A. Sharma, T. T. Joshi, H. Moazam, et al. DSPy: compiling declarative language model calls into self-improving pipelines. In ICLR,
- Klissarov et al. (2024) M. Klissarov, P. D’Oro, S. Sodhani, R. Raileanu, P. Bacon, P. Vincent, A. Zhang, and M. Henaff Motif: intrinsic motivation from artificial intelligence feedback. In ICLR,
- Küttler et al. (2020) H. Küttler, N. Nardelli, A. Miller, R. Raileanu, M. Selvatici, E. Grefenstette, and T. Rocktäschel The NetHack learning environment. In NeurIPS,
- Lu et al. (2025) C. Lu, S. Hu, and J. Clune Intelligent Go-Explore: standing on the shoulders of giant foundation models. In ICLR,
- Matthews et al. (2026a) M. Matthews, P. D’Oro, A. Kanervisto, S. Fujimoto, J. Foerster, and M. Henaff Revisiting the nethack learning environment. In ICLR Blog Track, Link
- Matthews et al. (2022) M. Matthews, M. Samvelyan, J. Parker-Holder, E. Grefenstette, and T. Rocktäschel Hierarchical kickstarting for skill transfer in reinforcement learning. In CoLLAs,
- Matthews et al. (2026b) M. T. Matthews, A. Kanervisto, J. Foerster, P. D’Oro, S. Fujimoto, and M. Henaff Hierarchical behaviour spaces. arXiv preprint arXiv:2604.24558.
- Mazoure et al. (2023) B. Mazoure, J. Bruce, D. Precup, R. Fergus, and A. Anand Accelerating exploration and representation learning with offline pre-training. arXiv preprint arXiv:2304.00046.
- Mnih et al. (2013) V. Mnih, K. Kavukcuoglu, D. Silver, A. Graves, I. Antonoglou, D. Wierstra, and M. Riedmiller Playing Atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602.
- Mouret and Clune (2015) J. Mouret and J. Clune Illuminating search spaces by mapping elites. arXiv preprint arXiv:1504.04909.
- OpenAI (2025) OpenAI Codex CLI: a lightweight coding agent for the terminal. Note: https://github.com/openai/codexApache-2.0 License. Accessed: 2026-09-01
- Paglieri et al. (2025) D. Paglieri, B. Cupiał, S. Coward, U. Piterbarg, M. Wołczyk, A. Khan, E. Pignatelli, Ł. Kuciński, L. Pinto, R. Fergus, et al. BALROG: benchmarking agentic LLM and VLM reasoning on games. In ICLR,
- Piterbarg et al. (2023) U. Piterbarg, L. Pinto, and R. Fergus NetHack is hard to hack. In NeurIPS,
- Resnick et al. (2018) C. Resnick, R. Raileanu, S. Kapoor, A. Peysakhovich, K. Cho, and J. Bruna Backplay: “man muss immer umkehren”. arXiv preprint arXiv:1807.06919. Note: AAAI-19 Workshop on Reinforcement Learning in Games
- Salimans and Chen (2018) T. Salimans and R. Chen Learning montezuma’s revenge from a single demonstration. arXiv preprint arXiv:1812.03381.
- Samvelyan et al. (2021) M. Samvelyan, R. Kirk, V. Kurin, J. Parker-Holder, M. Jiang, E. Hambro, F. Petroni, H. Küttler, E. Grefenstette, and T. Rocktäschel MiniHack the planet: a sandbox for open-ended reinforcement learning research. In NeurIPS,
- Sanders (2026) F. Sanders Beating AutoAscend’s NetHack challenge score with RL. Note: Posted September 14, 2026 Link
- Schrittwieser et al. (2020) J. Schrittwieser, I. Antonoglou, T. Hubert, K. Simonyan, L. Sifre, S. Schmitt, A. Guez, E. Lockhart, D. Hassabis, T. Graepel, T. Lillicrap, and D. Silver Mastering Atari, go, chess and shogi by planning with a learned model. Nature.
- Senghaas et al. (2026) M. Senghaas, F. Brand, W. Brown, and P. I. Team Verifiers v1: decomposing tasksets and harnesses for agentic rl & evaluations. Prime Intellect Blog. Note: https://www.primeintellect.ai/blog/verifiers-v1
- Shinn et al. (2023) N. Shinn, F. Cassano, E. Berman, A. Gopinath, K. Narasimhan, and S. Yao Reflexion: language agents with verbal reinforcement learning. In NeurIPS,
- Silver et al. (2016) D. Silver, A. Huang, C. J. Maddison, A. Guez, L. Sifre, G. Van Den Driessche, J. Schrittwieser, I. Antonoglou, V. Panneershelvam, M. Lanctot, et al. Mastering the game of go with deep neural networks and tree search. Nature.
- Silver et al. (2018) D. Silver, T. Hubert, J. Schrittwieser, I. Antonoglou, M. Lai, A. Guez, M. Lanctot, L. Sifre, D. Kumaran, T. Graepel, T. Lillicrap, K. Simonyan, and D. Hassabis A general reinforcement learning algorithm that masters chess, shogi, and go through self-play. Science.
- Suarez (2024) J. Suarez Pufferlib: making reinforcement learning libraries and environments play nice. arXiv preprint arXiv:2406.12905.
- Sutton and Barto (1998) R. S. Sutton and A. G. Barto Reinforcement learning: an introduction. MIT Press.
- Sypetkowski and Sypetkowski (2021) M. Sypetkowski and M. Sypetkowski AutoAscend – 1st place nethack agent for the nethack challenge at neurips 2021. Note: https://github.com/maciej-sypetkowski/autoascendGitHub repository
- Tesauro (1994) G. Tesauro TD-gammon, a self-teaching backgammon program, achieves master-level play. Neural Computation.
- Tuyls et al. (2024) J. Tuyls, D. Madeka, K. Torkkola, D. Foster, K. Narasimhan, and S. Kakade Scaling laws for imitation learning in single-agent games. TMLR.
- Wang et al. (2024) G. Wang, Y. Xie, Y. Jiang, A. Mandlekar, C. Xiao, Y. Zhu, L. Fan, and A. Anandkumar Voyager: an open-ended embodied agent with large language models. TMLR. Link
- Wang et al. (2023) Z. Wang, S. Cai, G. Chen, A. Liu, X. Ma, and Y. Liang Describe, explain, plan and select: interactive planning with large language models enables open-world multi-task agents. In NeurIPS,
- Wang et al. (2025) Z. Wang, S. Cai, A. Liu, Y. Jin, J. Hou, B. Zhang, H. Lin, Z. He, Z. Zheng, Y. Yang, X. Ma, and Y. Liang JARVIS-1: open-world multi-task agents with memory-augmented multimodal language models. IEEE TPAMI.
- Zechner and Earendil Works (2026) M. Zechner and Earendil Works Pi: a minimal, self-extensible terminal coding harness. Note: https://github.com/earendil-works/piMIT License. Accessed: 2026-09-01
- Zhang et al. (2026a) A. L. Zhang, T. L. Griffiths, K. R. Narasimhan, and O. Press VideoGameBench: can vision-language models complete popular video games?. Link
- Zhang et al. (2024) J. Zhang, J. Lehman, K. Stanley, and J. Clune OMNI: open-endedness via models of human notions of interestingness. In ICLR,
- Zhang et al. (2026b) Z. Zhang, T. Fang, K. Ma, W. Yu, H. Zhang, H. Mi, and D. Yu WebRollback: enhancing web agents with explicit rollback mechanisms. In EACL,
- Zhao et al. (2024) A. Zhao, D. Huang, Q. Xu, M. Lin, Y. Liu, and G. Huang ExpeL: LLM agents are experiential learners. In AAAI,
Appendix
Appendix A Environment Comparisons
Table A.1 compares the capabilities of our environment versus NLE. Table A.2 lists all knobs supported by the game engine. Generation knobs are consumed when a floor is built and therefore take effect at reset() time, and live knobs are read each turn and may be changed mid-episode. Unless noted, values are multiplicative scalars in which 1.0 is vanilla behavior, 0.5 halves and 2.0 doubles; absolute-valued knobs are marked. Separately from the knobs, bounds-checked state edits set the hero’s HP, maximum HP, gold, experience level, hunger, attributes, and luck at run time, and the hero can be moved to any dungeon level. Table 2 reports our default skills.
| Capability | NLE | MiniHack | Ours |
|---|---|---|---|
| Full NetHack | yes | no (sub-tasks) | yes |
| Environments per process | 1 | 1 | thousands |
| Save / restore game state | no | no | yes (in (1) turns) |
| Branch a state into futures | no | no | yes |
| Edit hero stats / depth at run time | no | partial (task setup) | yes ( fields + depth) |
| Tune generation parameters | no | task-authored | knobs |
| Tune combat / vision / spawns | no | partial | live knobs |
| Serialize and transplant a level | no | no | yes |
| Observation formats | 1 | 1 | 12 |
| Action surfaces | 1 (keys) | 1 (keys) | 3 (keys / NetPlay / NetCore) |
| Code-mode actions | no | no | yes (sandboxed Python) |
| Introspectable obs & action specs | no | no | yes |
| Seed-paired ablation harness | no | no | yes |
Table A.1: Environment Comparisons. Capability comparison of environment infrastructure (not task difficulty). MiniHack (Samvelyan et al., 2021) composes simplified sub-tasks from NetHack’s level language; every configuration in our environment is the full game with a parameter changed.
| Knob | Class | Default | Effect |
|---|---|---|---|
room_density | generation | 1.0 | Caps the number of rooms per floor at the value |
room_size | generation | 1.0 | Random part of each room’s width and height |
corridor_connectivity | generation | 1.0 | Number of extra corridor joins between rooms |
trap_density | generation | 1.0 | Per-room trap rate |
locked_door | generation | 1.0 | Chance that a closed door is locked (vanilla 1 in 6) |
mob_spawn | generation | 1.0 | Chance of a sleeping monster in each room (vanilla 1 in 3) |
vision_radius | live | 0.0 abs | Hard sight limit in cells; 0 is vanilla |
reveal_map | live | 0.0 | If 1.0, removes fog of war |
dmg_to_player_scale | live | 1.0 | Damage dealt by monsters to the hero |
dmg_by_player_scale | live | 1.0 | Damage dealt by the hero to monsters |
player_hp_scale | live | 1.0 | HP gained per level-up |
hp_regen_scale | live | 1.0 | HP restored per natural regeneration tick |
hunger_rate_scale | live | 1.0 | Nutrition consumed per turn |
xp_gain_scale | live | 1.0 | Experience gained |
ongoing_spawn_scale | live | 1.0 | Rate of random monster spawns during play |
monster_speed_scale | live | 1.0 | Monster movement per turn (pets included) |
monster_difficulty_scale | live | 1.0 | Difficulty used to pick new monsters (also shapes a new floor) |
Table A.2: Difficulty tuning knobs. All knobs in the engine. Generation knobs apply at level creation, and live knobs may be changed at any point during an episode. Values are multiplicative scalars unless marked abs.
Appendix B Observation Formats
Figure B.1: Observation Encodings. (a) The ASCII map from NetHack. (b) JSON entities in the grid. (c) Standard output when the map is not refreshed.
Appendix C Expanded General Results
| Gemini-3 | Prime Agent NetCore | GLM-5.2 with modifications | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Human | Pro | GLM-5.2 | Sol | Luna | Flash | Qwen | harness*∗* | cont./wiki | explore @ | explore @ | |
| Dlvl | |||||||||||
| XL | |||||||||||
| mean | |||||||||||
| median | |||||||||||
| mean | |||||||||||
| median |
Table C.1: **Expanded Main Results. We compare evaluations of the Prime Agent NetCore with prior state-of-the-art evaluation results from BALROG, as well as human gameplay from NetHack Alt.org (NAO, Hambro et al. (2022b)) games that ran to a terminal state. We evaluate GLM-5.2, GPT-5.6 Sol, GPT-5.6 Luna, Gemini-3.7 Flash, and Qwen-3.8 Max with the Prime Agent NetCore. ∗We report the best harness intervention that leaves the game itself unchanged, the ASCII map ablation of Section 5.1. ‘Forced revive’ performs better ( at ), but fundamentally changes the game rather than the harness.
Figure C.1: Leveling vs. Descending Strategy Profile. For each model, we plot the median trajectory’s progress through the trace. Models disproportionately prioritize dungeon level over increasing experience. Prime-agent-explore strays from the human interquartile range (IQR) later.
Appendix D Continual Harness Progression
Figure D.1: Continual Harness Metrics. Max Dlvl, XL, , and for the memory and memory+wiki Continual Harness runs. Held out denotes seeds 0–4 and training denotes seeds 6–10.
Appendix E Prime-Agent-Explore Trace
Figure E.1shows an attempt tree for Prime-agent-explore. Below, we provide one round of the loop including 1) the orchestrator’s analysis and directive, 2) the prompt served to the rollout agent, and 3) the rollout agent’s own reasoning under that directive. Across attempts, the orchestrator reads only rollout summaries and the checkpoint archive (depth, experience level, health, hunger, and the depth at which earlier attempts from a checkpoint died), as in the analysis below. It does not see traces, tile locations, or item positions, and the rollout agent receives only the directive and the context saved with its checkpoint. Instead, in forced revive and rollback, the agent keeps the fine-grained actions and observations that followed the restored state, leading to save-scumming behavior.
Figure E.1: Prime-Agent-Explore Attempt Tree. Each node is one attempt and is marked with (Dlvl, XL) on top and / below. Edges point from resumed checkpoints to their ending state. The golden node marks the node selected in the text examples.
Orchestrator Analysis.
The orchestrator reads attempt 9’s outcome and the archive, rejects the deepest checkpoint, and resumes from an intermediate checkpoint during attempt 9’s rollout.
=== ORCHESTRATOR: round 10 selection ===
**Analysis:** Attempt 9 was hugely productive -- reached dlvl 10, up
from dlvl 7. But the hero is now under-levelled by 2 (XL 7 at dlvl 10,
winners are XL 9). The death spiral on dlvl 10 (c120->c122 !Weak->c123
!Weak 14HP) shows the hero went too deep too fast without enough
experience. The right move is NOT to resume from the deepest point.
c120 is Hungry at 86% HP on a floor that killed the hero. Instead,
I’ll step back to c112 -- dlvl 8, XL 7, 70/70 full HP, Normal food.
This is exactly the "slow is not failing" scenario -- the hero needs
to catch up on experience.
{"checkpoint": "c112",
"directive": "You are under-levelled for your depth -- stay on this
floor and kill monsters one at a time in corridors until you reach
XL 8 or 9 before descending further. [...] Do not go down the
stairs until you have gained at least one experience level.",
"rationale": "the hero rushed to dlvl 10 at XL 7 and died -- farming
XP here to reach XL 8-9 before descending is the correction."}
Prompt for the Rollout Agent.
The rollout agent is provided the directive as well as checkpoint contextualization, in order to help diversify.
=== ROLLOUT AGENT: first observation, attempt 10 ===
[ORCHESTRATOR DIRECTIVE for this attempt: You are under-levelled for
your depth -- stay on this floor and kill monsters one at a time in
corridors until you reach XL 8 or 9 before descending further. [...]]
[RESUMED FROM CHECKPOINT 112 (’auto call_421’) -- you are NOT starting
fresh. Dlvl 8, XL 7, HP 70/70, game turn 9104.
Why it was saved: automatic checkpoint: 20 LM calls elapsed]
CHECKPOINT ARCHIVE: 123 saved state(s) in 120 distinct positions.
id from Dlvl XL dXL HP food turn tried
c1 root 1 1 . 16/16 Normal 1 1: died@D3
c8 c7 1 1 . 13/16 Normal 1143 -
[...]
Rollout Agent Reasoning.
The agent considers how to implement the directive given to it.
=== ROLLOUT AGENT: reasoning, turn 156, Dlvl 8 ===
I found the down stairs! ‘>‘ at (33,17)! But the directive says I
should stay on this floor and gain XP before descending. I’m at XL 7
and need to reach XL 8 or 9.
However, I’ve been spending a LOT of turns on this floor without
gaining any XP. Let me think about my options:
1. Stay and fight monsters for XP - I’ve had trouble catching monsters
2. Descend now - the directive says to gain at least one level
Actually, let me try to fight some monsters. I’ve seen various
monsters appear (housecat, lynx, neanderthal, Mordor orc) but they
keep moving before I can attack them. Let me be more aggressive
about hunting monsters. [...]
Appendix F Continual Harness Procedure
In each iteration , five subagents independently play a game of NetHack, with each rollout having its own seed, work directory, and private copy of the memory store from the conclusion of iteration . Once the runs complete, the orchestrator session, a separate Prime Agent process, reads the finished traces and issues create/update/delete edits against the merged store. The orchestrator is additionally given a seed-matched scoreboard of every previous iteration together with its own past rationales, so it can attribute a change in score to an entry it wrote. The runtime’s prompt renderer caps entries at six per kind (memory, prompt note, skill) to avoid prompt bloat.
In the Wiki variant, we instruct the orchestrator agent to consult two NetHack strategy pages4 prior to making changes. After every iteration, we freeze the store and evaluate it, mounted read-only, on a fixed set of five held-out evaluation seeds, disjoint from the training seeds. For the skills+wiki run, we reuse a single training seed and use one subagent per iteration.
We report evaluations on five held-out seeds after each round of the train–reflect–evaluate loop for ten iterations. Held-out scores at a single iteration are noisy due to large behavioral shifts iteration-to-iteration, so we report evaluations pooled from each optimization run’s last three iterations.
Appendix G Prime Agent versus Claude Code
Table G.1compares Prime Agent with Claude Code (Anthropic, 2025). Results suggest that Claude Code performs better on metrics, but uses the uncached input tokens and nearly the output tokens.
| Metric ( each) | Prime Agent NetCore | Claude Code NetCore |
|---|---|---|
| Max Dlvl | ||
| Max XL | ||
| Game calls per life | ||
| Uncached input tokens | M | M |
| Cached input tokens | M | M |
| Output tokens | M | M |
Table G.1: Harness Comparison. Each cell reports mean standard error over rollouts ( seeds repetitions).
Although GPT-6 Astra ascended one supervised game in September 2026 with an agent-built harness (Kenny, 2026). ↩
Standard doors are all marked as unlocked, but secret doors and doors on special floors remain randomized. ↩
The number of ASCII glyphs that change on any given turn is typically small (). ↩
https://nethackwiki.com/wiki/Standard_strategy, https://nethackwiki.com/wiki/Why_do_I_keep_dying ↩