atlas

Research map / Multi-agent systems and games / LLM agents

MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution

NeurIPS 2024 · Multi-agent systems and games › LLM agents · approach: LLM multi-agent collaboration and safety · 9 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Empirically analyzes why LLMs fail at GitHub issue resolution and proposes MAGIS, a four-agent (Manager, Repository Custodian, Developer, QA Engineer) framework that raises the SWE-bench resolved rate to 13.94% with GPT-4.

Problem

LLMs resolve very few GitHub issues at repository level, since locating files and lines to modify and handling code changes across a large repository is hard.

Approach

A role-based multi-agent workflow inspired by GitHub Flow: a custodian agent filters candidate files with a memory-based LLM relevance check, a manager decomposes the issue into file-level tasks and recruits developer agents, developers produce line-range-localized edits, and a QA agent reviews each change iteratively.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use MAGIS instead of direct GPT-4GPT-4 · SWE-bench 25% subsetresolved ratio: 1.74 -> 13.94Helped
add QA Engineer review (ablation)MAGIS · SWE-bench 25% subsetresolved ratio: 10.63 -> 13.94; 8.71 -> 10.63Helped
add pull-request comment hints (ablation)MAGIS · SWE-bench 25% subsetresolved ratio: 10.28 -> 13.94; 8.71 -> 10.28Helped
add QA Engineer review (ablation)MAGIS · SWE-bench Literesolved ratio: 23.33% -> 25.33%; 16.00% -> 16.67%Helped
add pull-request comment hints (ablation)MAGIS · SWE-bench Literesolved ratio: 16.67% -> 25.33%; 16.00% -> 25.33%Helped

Surprising findings

Limitations

Experimental setup

Datasets: SWE-bench

Benchmarks: SWE-bench SWE-bench Lite

Metrics: % applied % resolved recall vs file number line locating coverage ratio

Baselines: GPT-3.5 GPT-4 Claude-2 SWE-Llama 7b SWE-Llama 13b AutoCodeRover SWE-Agent Devin

Builds on: BM25 MetaGPT ChatDev SWE-bench

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy