NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CodeR: Issue Resolving with Multi-Agent and Task Graphs

Dong Chen, Shaoxin Lin, Muhan Zeng, Daoguang Zan, Jian-Gang Wang, Anton Cheshkov, Jun Sun, Hao Yu, Guoliang Dong, Artem Aliev, Jie Wang, Xiao Cheng, Guangtai Liang, Yuchi Ma, Pan Bian, Tao Xie, Qianxiang WangarXiv 2024 · DOI

Abstract

Resolving real-world software bugs remains a significant challenge for artificial intelligence, requiring complex navigation of codebases and precise patch generation. This paper introduces CodeR (Code Orchestration with Defined Execution and Resolving), a multi-agent framework that organizes Large Language Models (LLMs) into specialized roles guided by structured task graphs. By replacing traditional "on-the-go" planning with pre-defined execution paths and a hybrid fault localization strategy, CodeR achieves a state-of-the-art resolution rate of 28.33% on the SWE-bench lite benchmark, outperforming existing commercial and open-source agents.

Introduction

Automated software engineering requires an agent to understand ambiguous natural language descriptions, reproduce failures, and modify massive codebases. Current LLM-based approaches often suffer from "single-agent fatigue," where a model loses track of long-term plans, or "multi-agent chaos," characterized by non-progressing loops and information loss during handoffs. CodeR addresses these issues by formalizing the debugging process into a structured workflow managed by a team of specialized agents.

Methodology

Specialized Agent Roles

CodeR decomposes the complex task of issue resolution into five distinct roles, each with a constrained action space to reduce decision-making complexity:

  • Manager: Orchestrates the high-level plan selection.
  • Reproducer: Generates scripts to trigger the reported bug.
  • Fault Localizer: Identifies specific lines of code responsible for the failure.
  • Editor: Implements the actual code modifications.
  • Verifier: Executes tests to validate the fix and prevent regressions.
Overview of the CodeR architecture and multi-agent collaboration flow.

Task Graphs and Execution

The core innovation of CodeR is the use of Task Graphs. Instead of allowing agents to determine their next steps dynamically, the system follows JSON-formatted graphs that define strict, logical workflows. For instance, if the Reproducer successfully creates a test, the graph directs the flow to the Fault Localizer; if it fails, the system may pivot directly to the Editor. This structure ensures a consistent, human-like debugging process and prevents agents from entering unproductive loops.

Hybrid Fault Localization

CodeR employs a dual-strategy for finding bugs. It combines Spectrum-Based Fault Localization (SBFL), which utilizes code coverage data from reproduction scripts, with BM25, a text-retrieval algorithm. This hybrid approach allows the system to leverage both runtime behavior and semantic similarity to the issue description, improving localization precision by over 10% compared to single-method approaches.

Evaluation and Results

Experimental Setup

The framework was evaluated on SWE-bench (2,294 real-world GitHub issues) and SWE-bench lite (300 curated issues). The primary metric was the resolution rate—the percentage of issues successfully fixed with a single submission attempt.

Performance

CodeR established a new state-of-the-art performance on SWE-bench lite, resolving 28.33% of issues. This significantly exceeds the performance of high-profile commercial tools such as Devin (13.86%) and the Amazon Q Developer Agent (20.33%).

Mapping of specific actions to agent roles, illustrating action space reduction.

Ablation Studies

Ablation tests confirmed that the organizational framework is critical to success. Removing the multi-agent structure and task graphs caused the resolution rate to drop from 22% to 10%, even when using the same underlying model (GPT-4o). This demonstrates that the bottleneck in automated software engineering is often the organizational framework rather than raw model intelligence.

Discussion and Conclusion

CodeR highlights the importance of "looking before you leap" in AI-driven software engineering. By constraining the action space of individual agents and providing a rigid but logical task graph, the system bypasses the instruction-following weaknesses of current LLMs.

While highly effective, the system's reliance on a successful reproduction script remains a potential bottleneck; if the Reproducer fails, the system loses the precision of SBFL. Future work will explore the potential for agents to dynamically evolve or learn new task graph structures for unfamiliar software environments. In conclusion, CodeR demonstrates that structured, multi-agent orchestration is a powerful paradigm for solving complex, real-world engineering tasks.

Summary updated

BibTeX
@misc{chen2024coder,
  author = {Dong Chen and Shaoxin Lin and Muhan Zeng and Daoguang Zan and Jian-Gang Wang and Anton Cheshkov and Jun Sun and Hao Yu and Guoliang Dong and Artem Aliev and Jie Wang and Xiao Cheng and Guangtai Liang and Yuchi Ma and Pan Bian and Tao Xie and Qianxiang Wang},
  title = {{CodeR: Issue Resolving with Multi-Agent and Task Graphs}},
  year = {2024},
  eprint = {2406.01304},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.01304},
}
Figure