Skip to main content
QUICK REVIEW

[Paper Review] CodeR: Issue Resolving with Multi-Agent and Task Graphs

Dong Chen, Shaoxin Lin|arXiv (Cornell University)|Jun 3, 2024
Advanced Graph Neural NetworksComputer Science5 citations
TL;DR

CodeR introduces a multi-agent framework with task-graph planning to automatically resolve GitHub issues, achieving a new best on SWE-bench lite with 28.33% success on one submission.

ABSTRACT

GitHub issue resolving recently has attracted significant attention from academia and industry. SWE-bench is proposed to measure the performance in resolving issues. In this paper, we propose CodeR, which adopts a multi-agent framework and pre-defined task graphs to Repair & Resolve reported bugs and add new features within code Repository. On SWE-bench lite, CodeR is able to solve 28.33% of issues, when submitting only once for each issue. We examine the performance impact of each design of CodeR and offer insights to advance this research direction.

Motivation & Objective

  • Motivate and address the challenge of automated GitHub issue resolving at repository scale.
  • Propose a decoupled, multi-agent system guided by pre-defined task graphs to execute issue-resolution plans.
  • Leverage fault localization, code reproduction, and repository editing to improve patch quality and success rates.
  • Demonstrate that pre-planning with task graphs improves performance over on-the-fly decision-making.

Proposed method

  • Define five agent roles (Manager, Reproducer, Fault Localizer, Editor, Verifier) with specialized actions.
  • Introduce a JSON-formatted task-graph planning framework to predefine and strictly execute issue-resolving plans.
  • Use SBFL and BM25-based retrieval to perform multi-source fault localization and guide localization decisions.
  • Reuse and extend actions from SWE-agent and AutoCodeRover, adding new actions and role-specific permissions to enhance planning and execution.
  • Incorporate LLM-generated code reproduction for tests and code edits, and evaluate via SWE-bench lite benchmarks with one submission per issue.
Figure 1: Multi-Agent framework of CodeR with task graphs.
Figure 1: Multi-Agent framework of CodeR with task graphs.

Experimental results

Research questions

  • RQ1Can a multi-agent framework with pre-defined task graphs improve reliability and performance in automated GitHub issue resolving?
  • RQ2Does integrating fault localization with plan-driven execution outperform reactive, single-agent approaches?
  • RQ3What is the impact of plan pre-design on patch correctness, cost, and success rate in SWE-bench lite?
  • RQ4How do different agent roles contribute to resolution effectiveness and resource usage?

Key findings

  • CodeR achieves 28.33% of issues resolved on SWE-bench lite with one submission per issue (85/300).
  • Ablation shows removing multi-agent and task graph reduces resolution from 22% to 10%.
  • Combining BM25 with SBFL significantly improves fault localization precision over SBFL alone.
  • Plan-based, pre-defined task graphs yield better performance than on-the-fly planning across comparisons with SWE-agent, AutoCodeRover, and Aider.
  • Explicit patch generation underperforms compared with implicit patch generation via code repository edits.
  • CodeR’s ablation without fault localization reduces performance and increases cost, underscoring the value of integrated fault localization.
Figure 2: Task graphs in JSON format.
Figure 2: Task graphs in JSON format.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.