SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.14443 · ICLR · 2025

EnvBench: A Benchmark for Automated Environment Setup

Aleksandra Eliseeva, Alexander Kovrigin, Ilia Kholkin, Egor Bogomolov, Yaroslav Zharov

arXiv · PDF · Open in the Atlas

Code that ran

18 of 18 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 18 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2503.14443.json · badge: /api/ran/2503.14443.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
JetBrains-Research/EnvBench canonical (classifier label)
classifier basis not recorded on the link
18 ran · 0 no recorded run
FunctionStatusWhere it lives
analyze_success_rates Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/analysis/analyze_results.py
code served (permissive licence) · get_code("90f98e5104608c72")
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 pandas as pd

# Create a sample DataFrame with the required columns
df = pd.DataFrame({
    'exit_code': [0, 0, 1, 0, 1, 0, 0, 1, 0, 0],
    'issues_count': [0, 0, 5, 2, 3, 0, 1, 4, 0, 0]
})

ARGS = {
    'df': df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
calculate_message_cost Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/analysis/analysis_utils.py
code served (permissive licence) · get_code("c7a5ebd2f75634f3")
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 torch
import torch.nn as nn
from typing import Any, Dict, List, Optional, Set, Tuple, Union

# Construct a valid message dict that satisfies the function's requirements
message = {
    'node': 'agent',
    'messages': [
        {
            'message_content': {
                'usage_metadata': {
                    'input_tokens': 1000,
                    'output_tokens': 500
                }
            },
            'response_metadata': {
                'model_name': 'gpt-4o'
            }
        }
    ]
}

ARGS = {
    'message': message
}
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 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
calculate_message_cost Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/analysis/traj_viewer.py
code served (permissive licence) · get_code("f6ca7e7dbd9fd6f2")
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 torch
import numpy as np

# Construct a valid message dictionary with all required nested structure
message = {
    'node': 'agent',
    'messages': [
        {
            'message_content': {
                'usage_metadata': {
                    'input_tokens': 1000,
                    'output_tokens': 500
                }
            },
            'response_metadata': {
                'model_name': 'gpt-4o'
            }
        }
    ]
}

ARGS = {
    'message': message
}
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
content_type_to_color Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/traj2html.py
code served (permissive licence) · get_code("c968c8df850d3a2f")
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 str. 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

ARGS = {
    'content_type': 'ACTION'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
create_artifact_table Ran
ran on a synthesized input
JetBrains-Research/EnvBench/envbench.py
code served (permissive licence) · get_code("ad248fa46a3fc7e7")
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 Table. 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.

from rich.box import DOUBLE, ROUNDED
from rich.table import Table

# Setup code for create_artifact_table function

ARGS = {
    'title': 'HuggingFace Model Artifacts',
    'repo_id': 'username/model-repo',
    'artifacts': [
        ('Model Weights', 'pytorch_model.bin'),
        ('Config File', 'config.json'),
        ('Tokenizer', 'tokenizer.json'),
    ],
    'style': 'blue'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
rich — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Table — a Table output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Table 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
create_fancy_header Ran
ran on a synthesized input
JetBrains-Research/EnvBench/envbench.py
code served (permissive licence) · get_code("d71e80dc57538301")
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 Panel. 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.

from rich.align import Align
from rich.box import DOUBLE, ROUNDED
from rich.panel import Panel

ARGS = {
    'text': 'Welcome to Setup',
    'style': 'magenta'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
rich — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Panel — a Panel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Panel 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
create_step_header Ran
ran on a synthesized input
JetBrains-Research/EnvBench/envbench.py
code served (permissive licence) · get_code("31a35fa5c094ae39")
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 Panel. 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
from rich.box import DOUBLE, ROUNDED
from rich.panel import Panel

STEP_EMOJIS = {'inference': '🤖', 'processing': '🔄', 'evaluation': '📊'}

def create_step_header(step: str, number: int, style: str) -> Panel:
    """Create a fancy step header with emoji and rounded box"""
    emoji = STEP_EMOJIS.get(step.lower(), '🔧')
    return Panel(f'{emoji} Step {number}: {step}', style=style, box=ROUNDED, padding=(1, 2), title='⚡️', title_align='right')

ARGS = {
    'step': 'inference',
    'number': 1,
    'style': 'bold blue'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
rich, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Panel — a Panel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Panel 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
extract_metrics Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/analysis/analyze_results.py
code served (permissive licence) · get_code("1b334e6d73872069")
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 pandas as pd

ARGS = {
    'results': [
        {
            'repo_name': 'test_repo_1',
            'commit_sha': 'abc123def456',
            'execution_time': 2.5,
            'exit_code': 0,
            'issues_count': 3,
            'container_logs': 'Container started successfully',
            'pyright': {
                'summary': {
                    'filesAnalyzed': 42,
                    'errorCount': 2,
                    'warningCount': 5,
                    'informationCount': 1,
                    'timeInSec': 1.2
                },
                'generalDiagnostics': [
                    {'rule': 'no-untyped-def', 'message': 'Function is untyped'},
                    {'rule': 'unused-variable', 'message': 'Variable x is unused'}
                ]
            }
        },
        {
            'repo_name': 'test_repo_2',
            'commit_sha': 'xyz789uvw012',
            'execution_time': 3.1,
            'exit_code': 0,
            'issues_count': 1,
            'container_logs': 'All tests passed',
            'pyright': {
                'summary': {
                    'filesAnalyzed': 18,
                    'errorCount': 0,
                    'warningCount': 2,
                    'informationCount': 0,
                    'timeInSec': 0.8
                },
                'generalDiagnostics': [
                    {'rule': 'comparison-always-true', 'message': 'Comparison is always true'}
                ]
            }
        },
        {
            'repo_name': 'test_repo_3',
            'commit_sha': 'qrs345tuv678',
            'execution_time': 1.9,
            'exit_code': 1,
            'issues_count': 0
        }
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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_github_repo_url Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/analysis/traj_viewer.py
code served (permissive licence) · get_code("8b9cd1339f9864fb")
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 str. 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

torch.manual_seed(0)

ARGS = {
    "repo_name": "torvalds/linux",
    "commit_sha": "abc123def456"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
load_files Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/log_analyzer.py
code served (permissive licence) · get_code("28a57f6a85891ffa")
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 list, 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 tempfile
import os

# Create temporary files with content
temp_dir = tempfile.mkdtemp()
file_paths = []

# Create a few test files
for i in range(3):
    file_path = os.path.join(temp_dir, f"test_file_{i}.txt")
    with open(file_path, 'w') as f:
        f.write(f"This is the content of file {i}.\n")
    file_paths.append(file_path)

ARGS = {
    'file_paths': file_paths
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
load_jsonl Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/analysis/analysis_utils.py
code served (permissive licence) · get_code("7035f0d171657373")
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 list, 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 json
import tempfile
import os

# Create a temporary JSONL file for testing
temp_dir = tempfile.mkdtemp()
jsonl_file = os.path.join(temp_dir, "test.jsonl")

# Write some test data to the JSONL file
test_data = [
    {"id": 1, "name": "Alice", "score": 95.5},
    {"id": 2, "name": "Bob", "score": 87.3},
    {"id": 3, "name": "Charlie", "score": 92.1},
]

with open(jsonl_file, 'w') as f:
    for item in test_data:
        f.write(json.dumps(item) + "\n")

# Also add a line with invalid JSON to test error handling
with open(jsonl_file, 'a') as f:
    f.write("{ invalid json }\n")
    f.write(json.dumps({"id": 4, "name": "Diana", "score": 88.9}) + "\n")

ARGS = {
    "file_path": jsonl_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
load_jsonl Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/analysis/analyze_results.py
code served (permissive licence) · get_code("97ada5f0eb559039")
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 list, 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 json
import tempfile
import os

# Create a temporary JSONL file with valid JSON lines
temp_dir = tempfile.gettempdir()
test_jsonl_path = os.path.join(temp_dir, "test_data.jsonl")

# Write test data to the JSONL file
with open(test_jsonl_path, 'w') as f:
    f.write(json.dumps({"id": 1, "text": "hello"}) + "\n")
    f.write(json.dumps({"id": 2, "text": "world"}) + "\n")
    f.write(json.dumps({"id": 3, "values": [1, 2, 3]}) + "\n")

ARGS = {
    "file_path": test_jsonl_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
load_jsonl Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/analysis/scripts_viewer.py
code served (permissive licence) · get_code("db2166cef66a916e")
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 list, 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 json
import tempfile
import os

# Create a temporary JSONL file for testing
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.jsonl")

# Write valid JSONL data
with open(temp_file, 'w') as f:
    f.write('{"name": "Alice", "age": 30}\n')
    f.write('{"name": "Bob", "age": 25}\n')
    f.write('{"name": "Charlie", "age": 35}\n')

ARGS = {
    "file_path": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
load_trajectories Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/analysis/analysis_utils.py
code served (permissive licence) · get_code("fb8ef64f77241e01")
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 json
import tempfile
from pathlib import Path
import os

# Create temporary directory with test JSONL files
temp_dir = tempfile.mkdtemp()

# Create a sample trajectory file matching the pattern "name@identifier.jsonl"
trajectory_file_1 = os.path.join(temp_dir, "trajectory@exp1.jsonl")
with open(trajectory_file_1, 'w') as f:
    f.write(json.dumps({"step": 0, "action": "move"}) + "\n")
    f.write(json.dumps({"step": 1, "action": "jump"}) + "\n")

# Create another trajectory file
trajectory_file_2 = os.path.join(temp_dir, "trajectory@exp2.jsonl")
with open(trajectory_file_2, 'w') as f:
    f.write(json.dumps({"step": 0, "action": "run"}) + "\n")
    f.write(json.dumps({"step": 1, "action": "stop"}) + "\n")

# Create a file that doesn't match the pattern (should be skipped)
non_matching_file = os.path.join(temp_dir, "invalid.jsonl")
with open(non_matching_file, 'w') as f:
    f.write(json.dumps({"data": "ignored"}) + "\n")

ARGS = {
    "directory": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
load_trajectories Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/analysis/traj_viewer.py
code served (permissive licence) · get_code("6d632320966d776a")
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 json
import tempfile
from pathlib import Path

# Create a temporary directory with test trajectory files
temp_dir = tempfile.mkdtemp()

# Create sample trajectory files following the expected naming pattern: name@revision.jsonl
trajectory_data_1 = [
    {"step": 0, "action": "start", "state": "initial"},
    {"step": 1, "action": "move", "state": "moved"},
    {"step": 2, "action": "end", "state": "final"}
]

trajectory_data_2 = [
    {"step": 0, "observation": "observation1"},
    {"step": 1, "observation": "observation2"}
]

# Write first trajectory file
file1_path = Path(temp_dir) / "repo1@main.jsonl"
with open(file1_path, 'w') as f:
    for item in trajectory_data_1:
        f.write(json.dumps(item) + '\n')

# Write second trajectory file
file2_path = Path(temp_dir) / "repo2@develop.jsonl"
with open(file2_path, 'w') as f:
    for item in trajectory_data_2:
        f.write(json.dumps(item) + '\n')

# Write a file with invalid JSON to test error handling
file3_path = Path(temp_dir) / "repo3@feature.jsonl"
with open(file3_path, 'w') as f:
    f.write('{"valid": true}\n')
    f.write('not valid json\n')
    f.write('{"also_valid": true}\n')

# Write a file that doesn't match the expected naming pattern (should be ignored)
file4_path = Path(temp_dir) / "invalid_name.jsonl"
with open(file4_path, 'w') as f:
    f.write('{"ignored": true}\n')

ARGS = {
    "directory": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
message_direction_to_bg Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/traj2html.py
code served (permissive licence) · get_code("412459bdbc952338")
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 str. 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

ARGS = {
    'message_type': 'e2s'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
parse_installamatic_trajectory Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/process_trajectories_to_scripts.py
code served (permissive licence) · get_code("da216d455ac1343e")
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 str. 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 logging
from typing import Any, Dict, List

# Construct a valid trajectory list with shell script entries
trajectory = [
    {
        'node': 'some_other_node',
        'shell_script': '#!/bin/bash\necho "first script"'
    },
    {
        'node': 'generate_shell_script',
        'shell_script': '#!/bin/bash\necho "generated script"'
    },
    {
        'node': 'final_node',
        'shell_script': '#!/bin/bash\necho "last script"'
    }
]

ARGS = {
    'trajectory': trajectory
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
parse_script_from_trajectory Ran
ran on a synthesized input
JetBrains-Research/EnvBench/env_setup_utils/process_trajectories_to_scripts.py
code served (permissive licence) · get_code("bf0c6cbd816933b7")
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 str. 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 json
import logging
from typing import Any, Dict, List

# Set up logging
logging.basicConfig(level=logging.WARNING)

# Create a valid trajectory with a commands_history node
trajectory = [
    {
        "timestamp": "2025-01-02T16:25:48.936260",
        "node": "some_intermediate_node",
        "data": "some data"
    },
    {
        "timestamp": "2025-01-02T16:25:49.936260",
        "node": "commands_history",
        "commands": [
            {"command": "ls -R", "exit_code": 0},
            {"command": "cat file.txt", "exit_code": 0},
            {"command": "failed_command", "exit_code": 1},
            {"command": "./gradlew build", "exit_code": 0},
            {"command": "echo hello", "exit_code": 0},
            {"command": "mvn clean", "exit_code": 0}
        ]
    }
]

ARGS = {
    "trajectory": trajectory
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 16 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.

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

Recent advances in Large Language Models (LLMs) have enabled researchers to focus on practical repository-level tasks in software engineering domain. In this work, we consider a cornerstone task for automating work with software repositories-environment setup, i.e., a task of configuring a repository-specific development environment on a system. Existing studies on environment setup introduce innovative agentic strategies, but their evaluation is often based on small datasets that may not capture the full range of configuration challenges encountered in practice. To address this gap, we introduce a comprehensive environment setup benchmark ENVBENCH. It encompasses 329 Python and 665 JVM-based (Java, Kotlin) repositories, with a focus on repositories that present genuine configuration challenges, excluding projects that can be fully configured by simple deterministic scripts. To enable further benchmark extension and usage for model tuning, we implement two automatic metrics: a static analysis check for missing imports in Python and a compilation check for JVM languages. We demonstrate the applicability of our benchmark by evaluating three environment setup approaches, including a simple zero-shot baseline and two agentic workflows, that we test with two powerful LLM backbones, GPT-4o and GPT-4o-mini. The best approach manages to successfully configure 6.69% repositories for Python and 29.47% repositories for JVM, suggesting that ENVBENCH remains challenging for current approaches. Our benchmark suite is publicly available at https: //github.com/JetBrains-Research/EnvBench. The dataset and experiment trajectories are available at https://jb.gg/envbench.

For agents

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

get_harvested_code_for_paper("2503.14443")
get_code_for_paper("2503.14443")
have("2503.14443")

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

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

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

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

Connect an agent — have() is free.