SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.20749 · NeurIPS · 2025

Can Agents Fix Agent Issues?

Wijaya Alfin, Rahardja, Junwei Liu, Weitong Chen, Zhenpeng Chen, Yiling Lou

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; 0 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 0 failures of our instrument; 2 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/2505.20749.json · badge: /api/ran/2505.20749.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
alfin06/AgentIssue-Bench canonical (classifier label)
classifier basis not recorded on the link
10 ran · 2 no recorded run
FunctionStatusWhere it lives
construct_query Ran
ran on a synthesized input
alfin06/AgentIssue-Bench/find_issue.py
code served (permissive licence) · get_code("33f7107666e83053")
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
import numpy as np

torch.manual_seed(0)

# Analyzing the function: construct_query takes 4 parameters
# - agent_terms: a list/iterable of strings (terms about agents)
# - issue_terms: a list/iterable of strings (terms about issues)
# - repro_terms: a list/iterable of strings (terms about reproduction)
# - base_qualifiers: a string with optional qualifiers

# The function processes these lists to construct a GitHub search query string
# It checks if terms contain spaces and wraps them in quotes if needed
# It validates keyword operator count doesn't exceed 5

ARGS = {
    'agent_terms': ['bug', 'crash', 'error'],
    'issue_terms': ['memory leak', 'segfault'],
    'repro_terms': ['reproducible'],
    'base_qualifiers': 'is:open label:bug'
}
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 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
count_operators Ran
ran on a synthesized input
alfin06/AgentIssue-Bench/find_issue.py
code served (permissive licence) · get_code("7cf77ecead2642e7")
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)

# The function iterates over term_lists and checks if each term_list is truthy
# It counts operators based on the length of non-empty lists
# term_lists should be a list (or iterable) of lists

# Create some sample term lists
term_list_1 = [1, 2, 3]  # non-empty list with 3 terms
term_list_2 = [4, 5]     # non-empty list with 2 terms
term_list_3 = []         # empty list (falsy)

term_lists = [term_list_1, term_list_2, term_list_3]

ARGS = {
    "term_lists": term_lists
}
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
get_args Ran
ran on a synthesized input
alfin06/AgentIssue-Bench/SWE-agent/run_replay.py
code served (permissive licence) · get_code("c8ced7040ad99966")
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 tempfile
import os

torch.manual_seed(0)

# Create temporary files to satisfy the required arguments
with tempfile.TemporaryDirectory() as tmpdir:
    traj_file = os.path.join(tmpdir, "trajectory.pkl")
    config_file = os.path.join(tmpdir, "config.yaml")
    data_file = os.path.join(tmpdir, "data.pkl")
    
    # Create dummy files so paths exist
    open(traj_file, 'w').close()
    open(config_file, 'w').close()
    open(data_file, 'w').close()
    
    ARGS = {
        'args': [
            '--traj_path', traj_file,
            '--config_file', config_file,
            '--data_path', data_file,
            '--suffix', '_test'
        ]
    }
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_repo_url_and_commit_from_pr Ran
ran on a synthesized input
alfin06/AgentIssue-Bench/reproduce.py
code served (permissive licence) · get_code("a15d6b4d596bc4f8")
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 requests
from unittest.mock import Mock, patch
import json

# Mock the requests.get to avoid actual network calls
def mock_requests_get(url, headers=None, timeout=None):
    mock_response = Mock()
    mock_response.json.return_value = {
        'base': {
            'repo': {
                'clone_url': 'https://github.com/owner/repo.git'
            },
            'sha': 'buggy_commit_hash_abc123'
        },
        'head': {
            'sha': 'fixed_commit_hash_def456'
        },
        'merge_commit_sha': 'merge_commit_hash_ghi789',
        'merged': True
    }
    mock_response.raise_for_status.return_value = None
    return mock_response

# Patch requests.get globally
requests.get = mock_requests_get

ARGS = {
    'pr_url': 'https://github.com/owner/repo/pull/42',
    'headers': {'Authorization': 'token ghp_example_token_string'}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests — 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
run_flake8_check Ran
ran on a synthesized input
alfin06/AgentIssue-Bench/Agentless/evaluate_patches.py
code served (permissive licence) · get_code("279a8b96670e1f2a")
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 bool, ndim 0, dtype family float, 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 subprocess
import tempfile
import os

# Create a temporary directory to serve as the project path
temp_dir = tempfile.mkdtemp()

# Create a simple Python file with a style issue that flake8 can detect
# (unused variable)
test_file_path = os.path.join(temp_dir, 'test_file.py')
with open(test_file_path, 'w') as f:
    f.write('x = 1\ny = 2\n')  # y is unused, flake8 will flag this

ARGS = {
    'project_path': 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 bool, ndim 0, dtype family float, 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
run_import_check Ran
ran on a synthesized input
alfin06/AgentIssue-Bench/Agentless/evaluate_patches.py
code served (permissive licence) · get_code("a25590a6367280a3")
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 bool, ndim 0, dtype family float, 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 os
import tempfile
from pathlib import Path

# Create a temporary directory with a valid Python file
temp_dir = tempfile.mkdtemp()

# Create a simple valid Python file
test_file_path = os.path.join(temp_dir, "test_module.py")
with open(test_file_path, "w") as f:
    f.write("def hello():\n    return 'world'\n")

# Create another valid Python file
another_file_path = os.path.join(temp_dir, "another_module.py")
with open(another_file_path, "w") as f:
    f.write("x = 42\n")

# Define arguments for the function
ARGS = {
    "project_path": temp_dir,
    "edited_files": ["test_module.py", "another_module.py"]
}
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 bool, ndim 0, dtype family float, 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
run_reproduce_script Ran
ran on a synthesized input
alfin06/AgentIssue-Bench/auto-code-rover/evaluate_patches.py
code served (permissive licence) · get_code("4d2e689b4a2777c6")
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 bool, ndim 0, dtype family float, 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 tempfile
from pathlib import Path

# Create a temporary directory to serve as the repo_path
temp_dir = tempfile.mkdtemp()
repo_path = Path(temp_dir)

# Create a minimal reproduce.py script that succeeds
reproduce_script = repo_path / 'reproduce.py'
reproduce_script.write_text('print("Reproduce script executed successfully")\n')

ARGS = {
    'repo_path': repo_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 bool, ndim 0, dtype family float, 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
run_static_check Ran
ran on a synthesized input
alfin06/AgentIssue-Bench/Agentless/evaluate_patches.py
code served (permissive licence) · get_code("43162bab71a2c080")
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 bool, ndim 0, dtype family float, 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 tempfile
from pathlib import Path

# Create a temporary directory with valid Python files
temp_dir = tempfile.mkdtemp()
project_path = temp_dir

# Create some valid Python files
valid_file_1 = Path(project_path) / "module1.py"
valid_file_1.write_text("def hello():\n    return 'world'\n")

valid_file_2 = Path(project_path) / "module2.py"
valid_file_2.write_text("class MyClass:\n    def __init__(self):\n        self.value = 42\n")

# Create a subdirectory with another valid Python file
subdir = Path(project_path) / "subpackage"
subdir.mkdir(exist_ok=True)
valid_file_3 = subdir / "module3.py"
valid_file_3.write_text("import sys\nx = [1, 2, 3]\n")

ARGS = {
    "project_path": project_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 bool, ndim 0, dtype family float, 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
save_repo_state Ran
ran on a synthesized input
alfin06/AgentIssue-Bench/auto-code-rover/evaluate_patches.py
code served (permissive licence) · get_code("22478d4ac43df6b0")
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 tempfile
from pathlib import Path
import shutil
import os

# Create a temporary directory to act as the repo
temp_dir = tempfile.mkdtemp()
repo_path = Path(temp_dir) / "test_repo"
repo_path.mkdir(parents=True, exist_ok=True)

# Create some dummy files and subdirectories to make it a realistic repo
(repo_path / "file1.py").write_text("# test file")
(repo_path / "subdir").mkdir(exist_ok=True)
(repo_path / "subdir" / "file2.py").write_text("# another test file")

ARGS = {
    "repo_path": repo_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 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
scrape_pr_urls_from_issue_page Ran
ran on a synthesized input
alfin06/AgentIssue-Bench/find_issue.py
code served (permissive licence) · get_code("a59d0d41024846fd")
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 requests
import re
from unittest.mock import Mock, patch

PR_URL_REGEX = re.compile('(https://github\\.com/[\\w.-]+/[\\w.-]+/pull/\\d+)')

def scrape_pr_urls_from_issue_page(issue_html_url, request_headers):
    print(f'      Scraping for PR URLs on: {issue_html_url}')
    pr_urls_found = []
    try:
        response = requests.get(issue_html_url, headers=request_headers, timeout=20)
        response.raise_for_status()
        html_content = response.text
        pr_urls_found = list(set(PR_URL_REGEX.findall(html_content)))
        if pr_urls_found:
            print(f'        Found {len(pr_urls_found)} potential PR URL(s) via scraping: {pr_urls_found}')
        else:
            print(f'        No PR URLs found in HTML content via regex.')
    except requests.exceptions.RequestException as e:
        print(f'      Error scraping issue page {issue_html_url}: {e}')
    except Exception as e:
        print(f'      Unexpected error during scraping of {issue_html_url}: {e}')
    return pr_urls_found

# Mock the requests.get to avoid actual network calls
mock_response = Mock()
mock_response.text = '''
<html>
<body>
This issue references https://github.com/owner/repo/pull/123
and also https://github.com/another-owner/another-repo/pull/456
</body>
</html>
'''
mock_response.raise_for_status = Mock()

ARGS = {
    'issue_html_url': 'https://github.com/owner/repo/issues/789',
    'request_headers': {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)',
        'Accept': 'application/vnd.github.v3+json'
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests — 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
apply_patch_and_check Not yet run
unverified (harvested, no recorded run)
alfin06/AgentIssue-Bench/auto-code-rover/evaluate_patches.py
code served (permissive licence) · get_code("b79d0cde035fc0b6")
How it ran

no invocation recorded.

setup_workspace Not yet run
unverified (harvested, no recorded run)
alfin06/AgentIssue-Bench/reproduce.py
code served (permissive licence) · get_code("1860f525c15bb57e")
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, 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 12 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

LLM-based agent systems are emerging as a new software paradigm and have been widely adopted across diverse domains such as medicine, robotics, and programming. However, maintaining these systems requires substantial effort, as they are inevitably prone to bugs and continually evolve to meet changing external requirements. Therefore, automatically resolving agent issues (i.e., bug reports or feature requests) is a crucial and challenging task. While recent software engineering (SE) agents (e.g., SWE-agent) have shown promise in addressing issues in traditional software systems, it remains unclear how effectively they can resolve real-world issues in agent systems, which differ significantly from traditional software. To fill this gap, we first manually analyze 201 real-world agent issues and identify common categories of agent issues. We then spend 500 person-hours constructing AGENTISSUE-BENCH, a reproducible benchmark comprising 50 agent issue resolution tasks (each with an executable environment and failure-triggering tests). We further evaluate state-of-the-art SE agents on AGENTISSUE-BENCH and reveal their limited effectiveness (i.e., with only 0.67% -4.67% resolution rates). These results underscore the unique challenges of maintaining agent systems compared to traditional software, highlighting the need for further research to develop advanced SE agents for resolving agent issues. Data and code are available at https://github.com/alfin06/AgentIssue-Bench.

For agents

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

get_harvested_code_for_paper("2505.20749")
get_code_for_paper("2505.20749")
have("2505.20749")

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

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

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

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

Connect an agent — have() is free.