SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2006.13760 · NeurIPS · 2020

The NetHack Learning Environment

Heinrich Küttler, Tim Rocktäschel, Nantas Nardelli, = Alexander, H Miller, Roberta Raileanu, Marco Selvatici, # Grefenstette

arXiv · PDF · Open in the Atlas

Code that ran

6 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 1 failure of our instrument; 5 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2006.13760.json · badge: /api/ran/2006.13760.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
facebookresearch/nle canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
Pieter-Cawood/Reinforcement-Learning community (classifier label)
classifier basis not recorded on the link
5 ran · 3 no recorded run
FunctionStatusWhere it lives
crop_glyphs Ran
ran on a synthesized input
Pieter-Cawood/Reinforcement-Learning/NLE_A2C/MyAgent2.py
code served (permissive licence) · get_code("5685e488bd317dd0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family int, shape (225,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function takes a 2D array/tensor of glyphs and crops around position (x, y)
# It expects glyphs to support 2D indexing and have a flatten() method
# So we need a 2D tensor with shape (y_max+1, x_max+1) = (22, 80)

glyphs = torch.randint(0, 256, (22, 80), dtype=torch.uint8)

# x and y are positions within the glyph grid
# Valid ranges are x in [0, 79] and y in [0, 21]
x = 40
y = 10

# size is the crop radius parameter
size = 7

ARGS = {
    "glyphs": glyphs,
    "x": x,
    "y": y,
    "size": size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family int, shape (225,) — shape (225,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
crop_state Ran
ran on a synthesized input
Pieter-Cawood/Reinforcement-Learning/NLE_A2C/MyAgent2.py
code served (permissive licence) · get_code("6b6543f92a642e1f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (229,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a valid observation dict with required keys
observation = {
    'blstats': np.array([
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  # indices 0-9
        15,  # health_points (index 10)
        20,  # health_points_max (index 11)
        0, 0, 0, 0, 0, 0,  # indices 12-17
        1,   # hunger_level (index 18)
    ], dtype=np.int32),
    'glyphs': np.random.randint(0, 256, size=(22, 80), dtype=np.uint8),
}

ARGS = {
    'observation': observation,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (229,) — shape (229,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_views Ran
ran on a synthesized input
Pieter-Cawood/Reinforcement-Learning/NLE_MBS/Model_Train_File_Policies.py
code served (permissive licence) · get_code("8f61913dfe74ccf7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family int, shape (4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct the observation dict with required keys
observation = {
    'blstats': np.array([5, 3]),  # x=5, y=3 coordinates
    'glyphs': np.random.randint(0, 100, size=(10, 12))  # height=10, width=12
}

# look parameter defines the size of the view window
look = 5

ARGS = {
    'look': look,
    'observation': observation
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (4, 4) — shape (4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
nested_map Ran
ran; our contract draft was wrong, not the code
facebookresearch/nle/nle/agent/agent.py
pointer only (licence: NOASSERTION) · get_code("2fa2a5c4cf69b215")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/nle (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

random_walk Ran
ran on a synthesized input
Pieter-Cawood/Reinforcement-Learning/NLE_MBS/Model_Train_File_Policies.py
code served (permissive licence) · get_code("b9fc7ecce3b69c96")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

def random_walk(action, action_opposite):
    while True:
        if action < 4:
            next_action = np.random.choice(4)
            if next_action != action_opposite[action]:
                break
        else:
            next_action = np.random.choice(4)
            break
    return next_action

np.random.seed(0)

action = 2
action_opposite = np.array([1, 0, 3, 2])

ARGS = {
    "action": action,
    "action_opposite": action_opposite
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
transform_observation Ran
ran on a synthesized input
Pieter-Cawood/Reinforcement-Learning/NLE_DQN/Agent.py
code served (permissive licence) · get_code("2cb4d2b63925bbc6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    'observation': {
        'chars': np.array([
            [45, 124, 35, 43, 36, 0, 0, 0],
            [45, 45, 124, 35, 0, 0, 0, 0],
            [36, 0, 0, 0, 0, 0, 0, 0],
            [0, 0, 0, 0, 0, 0, 0, 0],
        ], dtype=np.int32),
        'blstats': np.array([
            5,      # x_coordinate (index 0)
            3,      # y_coordinate (index 1)
            0, 0, 0, 0, 0, 0, 0,
            100,    # score (index 9)
            75,     # health_points (index 10)
            100,    # health_points_max (index 11)
            0, 0, 0, 0, 0, 0, 0,
            50,     # hunger_level (index 18)
        ], dtype=np.int32),
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_baseline_loss Not yet run
unverified (harvested, no recorded run)
facebookresearch/nle/nle/agent/agent.py
pointer only (licence: NOASSERTION) · get_code("e624e7bc82f85ecd")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/nle (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

compute_entropy_loss Not yet run
unverified (harvested, no recorded run)
facebookresearch/nle/nle/agent/agent.py
pointer only (licence: NOASSERTION) · get_code("3fba94f2f8bc0565")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, facebookresearch/nle (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

crop_state Not yet run
unverified (harvested, no recorded run)
Pieter-Cawood/Reinforcement-Learning/NLE_A2C/a2c_mod.py
code served (permissive licence) · get_code("c89816ac8ce23ea2")
How it ran

no invocation recorded.

make_env Not yet run
unverified (harvested, no recorded run)
Pieter-Cawood/Reinforcement-Learning/NLE_DQN/Agent.py
code served (permissive licence) · get_code("2f6ab6f543c54d76")
How it ran

no invocation recorded.

run_episode Not yet run
unverified (harvested, no recorded run)
Pieter-Cawood/Reinforcement-Learning/NLE_Method_Comparison/A2C_1/evaluation.py
code served (permissive licence) · get_code("38d19bc77768e47c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 3 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
compute_baseline_loss 6 other papers
3 dated earlier, 3 later
1708.04782 (2017-08)
StarCraft II: A New Challenge for Reinforcement Learning
1809.04474 (2018-09)
Multi-task Deep Reinforcement Learning with PopArt
1910.03552 (2019-10)
TorchBeast: A PyTorch Platform for Distributed RL
and 3 more not named here
compute_entropy_loss 5 other papers
2 dated earlier, 3 later
1809.04474 (2018-09)
Multi-task Deep Reinforcement Learning with PopArt
1910.03552 (2019-10)
TorchBeast: A PyTorch Platform for Distributed RL
2201.03544 (2022-01)
The Effects of Reward Misspecification: Mapping and Mitigating Misaligned Models
and 2 more not named here
nested_map 1 other paper
1 later
2211.00539 (2022-11)
Dungeons and Data: A Large-Scale NetHack Dataset

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Progress in Reinforcement Learning (RL) algorithms goes hand-in-hand with the development of challenging environments that test the limits of current methods. While existing RL environments are either sufficiently complex or based on fast simulation, they are rarely both. Here, we present the NetHack Learning Environment (NLE), a scalable, procedurally generated, stochastic, rich, and challenging environment for RL research based on the popular single-player terminalbased roguelike game, NetHack. We argue that NetHack is sufficiently complex to drive long-term research on problems such as exploration, planning, skill acquisition, and language-conditioned RL, while dramatically reducing the computational resources required to gather a large amount of experience. We compare NLE and its task suite to existing alternatives, and discuss why it is an ideal medium for testing the robustness and systematic generalization of RL agents. We demonstrate empirical success for early stages of the game using a distributed Deep RL baseline and Random Network Distillation exploration, alongside qualitative analysis of various agents trained in the environment. NLE is open source and available at https://github.com/facebookresearch/nle.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2006.13760")
get_code_for_paper("2006.13760")
have("2006.13760")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2006.13760.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2006.13760.svg)](https://syntology.ai/paper/2006.13760)

Connect an agent — have() is free.