SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.12037 · 2024

MineDreamer: Learning to Follow Instructions via Chain-of-Imagination for Simulated-World Control

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2403.12037.json · badge: /api/ran/2403.12037.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
Zhoues/MineDreamer canonical (classifier label)
classifier basis: census
10 ran · 2 no recorded run
FunctionStatusWhere it lives
batch_recursive_objects Ran
ran; our contract draft was wrong, not the code
Zhoues/MineDreamer/minedreamer/helpers.py
code served (permissive licence) · get_code("95636daa8c9cdedc")
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 dict. 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
import torch as th

th.manual_seed(0)

# Simple example: list of dicts with numpy arrays
a = np.random.rand(1, 1, 4)
b = np.random.rand(2, 2, 4)
c = [{'a': a, 'b': b}, {'a': a, 'b': b}]

ARGS = {
    'ls': c,
    'check_shape': False,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
get_band_diagonal_mask Ran
ran, violated the contract we drafted
Zhoues/MineDreamer/minedreamer/VPT/lib/masked_attention.py
code served (permissive licence) · get_code("2bcf842598e9b062")
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 3, dtype family float, shape (2, 3, 6) 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 as th

th.manual_seed(0)

ARGS = {
    "t": 3,
    "T": 6,
    "maxlen": 3,
    "batchsize": 2,
    "device": th.device("cpu"),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 3, 6) — shape (2, 3, 6) 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_ith_slice_of_object Ran
ran; our contract draft was wrong, not the code
Zhoues/MineDreamer/minedreamer/helpers.py
code served (permissive licence) · get_code("5a483048c1438391")
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 dict. 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
import torch as th

th.manual_seed(0)

# Construct a batched object following the example in the docstring
a = np.random.rand(1, 1, 4)
b = np.random.rand(2, 2, 4)
c = {'a': a, 'b': b, 't': (a, b), 'n': None}
d = {'a': a, 'b': b, 't': (a, b), 'n': None}
e = [c, d]

# Simulate batch_recursive_objects by stacking along batch dimension
batched = {
    'a': np.concatenate([a, a], axis=0),  # (2, 1, 4)
    'b': np.concatenate([b, b], axis=0),  # (4, 2, 4)
    't': (
        np.concatenate([a, a], axis=0),   # (2, 1, 4)
        np.concatenate([b, b], axis=0)    # (4, 2, 4)
    ),
    'n': None
}

# Also test with torch tensors
batched_torch = {
    'a': th.cat([th.from_numpy(a).float(), th.from_numpy(a).float()], dim=0),
    'b': th.cat([th.from_numpy(b).float(), th.from_numpy(b).float()], dim=0),
    't': (
        th.cat([th.from_numpy(a).float(), th.from_numpy(a).float()], dim=0),
        th.cat([th.from_numpy(b).float(), th.from_numpy(b).float()], dim=0)
    ),
    'n': None
}

ARGS = {
    'obj': batched,
    'i': 0
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
intprod Ran
ran, violated the contract we drafted
Zhoues/MineDreamer/minedreamer/VPT/lib/misc.py
code served (permissive licence) · get_code("5234c0dfb707f813")
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 torch

torch.manual_seed(0)

# intprod takes a sequence of integers and returns their product
# xs: a sequence (list, tuple, etc.) of integers

ARGS = {
    "xs": [2, 3, 4, 5]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
json_action_to_env_action Ran
ran; our contract draft was wrong, not the code
Zhoues/MineDreamer/minedreamer/VPT/run_inverse_dynamics_model.py
code served (permissive licence) · get_code("b2300f16257d73e9")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 a valid json_action matching the expected structure
json_action = {
    'keyboard': {
        'keys': ['key.keyboard.w', 'key.keyboard.space', 'key.keyboard.invalid.key']
    },
    'mouse': {
        'dx': 100,
        'dy': -50,
        'buttons': [0, 1]
    }
}

ARGS = {
    'json_action': json_action
}
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, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
object_to_numpy Ran
ran, honoured the contract we drafted
Zhoues/MineDreamer/minedreamer/helpers.py
code served (permissive licence) · get_code("c4a3560ab2dcdd89")
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 float, shape (2, 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 torch as th

th.manual_seed(0)

# Create a small tensor to test
tensor_input = th.randn(2, 4)

# Create a non-tensor input to test the fallback case
non_tensor_input = [1, 2, 3, 4]

ARGS = {
    "x": tensor_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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 float, shape (2, 4) — shape (2, 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
resize_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Zhoues/MineDreamer/minedreamer/VPT/agent.py
code served (permissive licence) · get_code("7191618c00cc9152")
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 3, dtype family int, shape (240, 320, 3) 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 cv2
import numpy as np

# Create a sample image (height=480, width=640, channels=3)
img = np.random.randint(0, 256, (480, 640, 3), dtype=np.uint8)

# Define target resolution as (width, height)
target_resolution = (320, 240)

ARGS = {
    "img": img,
    "target_resolution": target_resolution,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (240, 320, 3) — shape (240, 320, 3) 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
store_args Ran
ran; our contract draft was wrong, not the code
Zhoues/MineDreamer/minedreamer/VPT/lib/minecraft_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from craftjarvis/mc-planner, is pointer only (licence: NONE) · get_code("e9f218ee05e29fad")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from craftjarvis/mc-planner, and GitHub detected no licence in that repository when it was checked. 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.

transpose Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Zhoues/MineDreamer/minedreamer/VPT/lib/misc.py
code served (permissive licence) · get_code("6e2674f0120e0c29")
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 3, dtype family float, shape (3, 4, 2) 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

torch.manual_seed(0)

# The function transposes a tensor by permuting dimensions according to string specifications
# x: a tensor with ndim dimensions
# before: string specifying current dimension order
# after: string specifying desired dimension order

# Create a small tensor with distinct dimension sizes for probing
# Using shape (2, 3, 4) for dimensions a, b, c respectively
x = torch.randn(2, 3, 4)

# Define the dimension ordering strings
before = 'abc'
after = 'bca'

ARGS = {
    'x': x,
    'before': before,
    'after': after
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (3, 4, 2) — shape (3, 4, 2) 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
transpose_undo Ran
ran; our contract draft was wrong, not the code
Zhoues/MineDreamer/minedreamer/VPT/lib/misc.py
code served (permissive licence) · get_code("5760c363cbb2cc44")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create a small tensor with distinct dimension sizes for probing
# Shape: (2, 3, 4) for dimensions a, b, c
x = torch.randn(2, 3, 4)

# Parameters for transpose_undo
before = 'abc'
after = 'bca'
undo = None  # Can be None as shown in the docstring example

ARGS = {
    'x': x,
    'before': before,
    'after': after,
    'undo': undo
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
get_mask Not yet run
unverified (harvested, no recorded run)
Zhoues/MineDreamer/minedreamer/VPT/lib/masked_attention.py
code served (permissive licence) · get_code("c85876e5bf29dc07")
How it ran

no invocation recorded.

get_norm_entropy_from_cat_head Not yet run
unverified (harvested, no recorded run)
Zhoues/MineDreamer/minedreamer/VPT/lib/minecraft_util.py
code served (permissive licence) · get_code("46d393af0ba227d6")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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
store_args 4 other papers
4 dated earlier
2005.03420 (2020-05)
Curious Hierarchical Actor-Critic Reinforcement Learning
2301.10034 (2023-01)
Open-World Multi-Task Control Through Goal-Aware Representation Learning and Adaptive Horizon Prediction
2302.05103 (2023-02)
Controllability-Aware Unsupervised Skill Discovery
and 1 more not named here
intprod 2 other papers
2 dated earlier
2308.00398 (2023-08)
DriveAdapter: Breaking the Coupling Barrier of Perception and Planning in End-to-End Autonomous Driving
2312.02405 (2023-12)
BEDD: The MineRL BASALT Evaluation and Demonstrations Dataset for Training and Benchmarking Agents that Solve Fuzzy Tasks
json_action_to_env_action 2 other papers
2 dated earlier
2206.11795 (2022-06)
Video PreTraining (VPT): Learning to Act by Watching Unlabeled Online Videos
2303.13512 (2023-03)
Towards Solving Fuzzy Tasks with Human Feedback: A Retrospective of the MineRL BASALT 2022 Competition
get_band_diagonal_mask 1 other paper
1 dated earlier
2312.02405 (2023-12)
BEDD: The MineRL BASALT Evaluation and Demonstrations Dataset for Training and Benchmarking Agents that Solve Fuzzy Tasks
get_norm_entropy_from_cat_head 1 other paper
1 dated earlier
2312.02405 (2023-12)
BEDD: The MineRL BASALT Evaluation and Demonstrations Dataset for Training and Benchmarking Agents that Solve Fuzzy Tasks
transpose 1 other paper
1 dated earlier
2312.02405 (2023-12)
BEDD: The MineRL BASALT Evaluation and Demonstrations Dataset for Training and Benchmarking Agents that Solve Fuzzy Tasks
transpose_undo 1 other paper
1 dated earlier
2312.02405 (2023-12)
BEDD: The MineRL BASALT Evaluation and Demonstrations Dataset for Training and Benchmarking Agents that Solve Fuzzy Tasks

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-23.

Repositories linked to this paper

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

Abstract

It is a long-lasting goal to design a generalist-embodied agent that can follow diverse instructions in human-like ways. However, existing approaches often fail to steadily follow instructions due to difficulties in understanding abstract and sequential natural language instructions. To this end, we introduce MineDreamer, an open-ended embodied agent built upon the challenging Minecraft simulator with an innovative paradigm that enhances instruction-following ability in low-level control signal generation. Specifically, MineDreamer is developed on top of recent advances in Multimodal Large Language Models (MLLMs) and diffusion models, and we employ a Chain-of-Imagination (CoI) mechanism to envision the step-by-step process of executing instructions and translating imaginations into more precise visual prompts tailored to the current state; subsequently, the agent generates keyboard-and-mouse actions to efficiently achieve these imaginations, steadily following the instructions at each step. Extensive experiments demonstrate that MineDreamer follows single and multi-step instructions steadily, significantly outperforming the best generalist agent baseline and nearly doubling its performance. Moreover, qualitative analysis of the agent's imaginative ability reveals its generalization and comprehension of the open world.

For agents

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

get_harvested_code_for_paper("2403.12037")
get_code_for_paper("2403.12037")
have("2403.12037")

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

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

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

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

Connect an agent — have() is free.