SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.20285 · 2024

SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinement

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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 0 have no contract verdict; 5 failures of our instrument; 1 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/2410.20285.json · badge: /api/ran/2410.20285.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
aorwall/moatless-tools canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
aorwall/moatless-tree-search canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
FunctionStatusWhere it lives
color_red Ran
ran; our contract draft was wrong, not the code
aorwall/moatless-tools/moatless/node.py
code served (permissive licence) · get_code("6a9d360099bf8dea")
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 = {
    "text": "Hello, World!"
}
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
decide_badge Ran
ran; our contract draft was wrong, not the code
aorwall/moatless-tree-search/moatless/streamlit/tree_visualization.py
code served (permissive licence) · get_code("a5b46a4816502ca0")
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 torch
import numpy as np

# Test case 1: resolved=True
node_info_1 = {
    'resolved': True,
    'error': False,
    'warning': False,
    'context_status': None,
    'patch_status': None
}

# Test case 2: resolved=False
node_info_2 = {
    'resolved': False,
    'error': False,
    'warning': False,
    'context_status': None,
    'patch_status': None
}

# Test case 3: error present
node_info_3 = {
    'resolved': None,
    'error': True,
    'warning': False,
    'context_status': None,
    'patch_status': None
}

# Test case 4: warning present
node_info_4 = {
    'resolved': None,
    'error': False,
    'warning': True,
    'context_status': None,
    'patch_status': None
}

# Test case 5: context_status found_spans with wrong_files
node_info_5 = {
    'resolved': None,
    'error': False,
    'warning': False,
    'context_status': 'found_spans',
    'patch_status': 'wrong_files'
}

# Test case 6: context_status found_spans without wrong_files
node_info_6 = {
    'resolved': None,
    'error': False,
    'warning': False,
    'context_status': 'found_spans',
    'patch_status': 'other'
}

# Test case 7: context_status found_files
node_info_7 = {
    'resolved': None,
    'error': False,
    'warning': False,
    'context_status': 'found_files',
    'patch_status': None
}

# Test case 8: patch_status right_files
node_info_8 = {
    'resolved': None,
    'error': False,
    'warning': False,
    'context_status': None,
    'patch_status': 'right_files'
}

# Test case 9: no badge
node_info_9 = {
    'resolved': None,
    'error': False,
    'warning': False,
    'context_status': None,
    'patch_status': None
}

ARGS = {
    'node_info': node_info_1
}
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 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
extract_json_from_message Ran
ran; our contract draft was wrong, not the code
aorwall/moatless-tree-search/moatless/completion/model.py
code served (permissive licence) · get_code("3b0e1be56c9cfff6")
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 json
import logging

logger = logging.getLogger(__name__)

# Setup arguments for extract_json_from_message
ARGS = {
    "message": """Here is some output with JSON:
json
{"name": "Alice", "age": 30, "city": "New York"}


And here is another one with raw JSON:
{"status": "success", "count": 42}

Some other text here."""
}
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 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_project_dir Ran
ran; our contract draft was wrong, not the code
aorwall/moatless-tools/moatless/context_data.py
code served (permissive licence) · get_code("0ce0a682fc9c3658")
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 PosixPath. 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 os
import contextvars
from pathlib import Path
import tempfile

# Set up environment variable
temp_dir = tempfile.mkdtemp()
os.environ['MOATLESS_DIR'] = temp_dir

# Define ARGS with all parameters for get_project_dir
ARGS = {
    'project_id': None
}
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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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_trajectory_dir Ran
ran; our contract draft was wrong, not the code
aorwall/moatless-tools/moatless/context_data.py
code served (permissive licence) · get_code("26fccfdd400b982e")
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 PosixPath. 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 contextvars
import os
from pathlib import Path
import tempfile

# Set up a temporary MOATLESS_DIR environment variable for testing
temp_dir = tempfile.mkdtemp()
os.environ['MOATLESS_DIR'] = temp_dir

# Define arguments for get_trajectory_dir function
ARGS = {
    'project_id': 'test_project',
    'trajectory_id': 'test_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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
color_green Not yet run
unverified (harvested, no recorded run)
aorwall/moatless-tools/moatless/node.py
code served (permissive licence) · get_code("f365893876a34ed1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 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 6 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-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

Software engineers operating in complex and dynamic environments must continuously adapt to evolving requirements, learn iteratively from experience, and reconsider their approaches based on new insights. However, current large language model (LLM)-based software agents often follow linear, sequential processes that prevent backtracking and exploration of alternative solutions, limiting their ability to rethink their strategies when initial approaches prove ineffective. To address these challenges, we propose SWE-Search, a multi-agent framework that integrates Monte Carlo Tree Search (MCTS) with a self-improvement mechanism to enhance software agents' performance on repository-level software tasks. SWE-Search extends traditional MCTS by incorporating a hybrid value function that leverages LLMs for both numerical value estimation and qualitative evaluation. This enables self-feedback loops where agents iteratively refine their strategies based on both quantitative numerical evaluations and qualitative natural language assessments of pursued trajectories. The framework includes a SWE-Agent for adaptive exploration, a Value Agent for iterative feedback, and a Discriminator Agent that facilitates multi-agent debate for collaborative decision-making. Applied to the SWE-bench benchmark, our approach demonstrates a 23% relative improvement in performance across five models compared to standard open-source agents without MCTS. Our analysis reveals how performance scales with increased inference-time compute through deeper search, providing a pathway to improve software agents without requiring larger models or additional training data. This highlights the potential of self-evaluation driven search techniques in complex software engineering environments.

For agents

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

get_harvested_code_for_paper("2410.20285")
get_code_for_paper("2410.20285")
have("2410.20285")

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

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

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

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

Connect an agent — have() is free.