NeurIPS 2026QuestionsPapersAreasAboutMarkdown

SWE-Git-Bench: A Focused Worktree-Level Benchmark for Real Merge Conflict Resolution

Wei Zhang, Jian Yang, jiajun wu, Zidan Tang, Siwei Wu

NeurIPS page · OpenReview · Open on the map

Category: LLM Agents, Evals & Benchmarks › Software Engineering Benchmarks · Type: benchmark or dataset · Keywords: merge conflict resolution, code benchmarks, LLM evaluation, git worktrees, software version control

Areas: Code & Coding Agents › Code Verification › Coding agent benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Software Engineering Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › Coding Agent Benchmarks

Summary

SWE-Git-Bench is a focused benchmark of 135 real merge conflicts from 23 repositories that reveals the limitations of current LLMs in exact conflict resolution and provides a harness for evaluating worktree-level merge resolution.

Explained to a 5-year-old

We made a test that shows how computers fix fights in code. The computers often get close but not exactly right. Half the time they look good but are still wrong. A new way of asking them helps them get closer.

Explained to a 5-year-old, longer

Imagine you and a friend are editing the same story together, and you both change the same part. The computer shows a sign that there is a problem, and you have to decide which version to keep. We built a big set of real stories where this happened, and we asked many computers to fix them. Most computers could make the story look similar to the right answer, but they rarely matched it exactly. Even when they looked almost perfect, many were still wrong. We also tried a new way of asking the computers to think about the problem, which helped them get a bit better, but they still didn't get the exact answer right. This test helps us see how well computers can solve these real-world fixing problems.

For a technical reader

The work introduces a benchmark that evaluates LLMs on resolving git merge conflicts in isolated worktrees. It reports that exact reproduction rates are low (single-digit percent), while edit similarity is high (86-90%). Human review shows many high-similarity outputs are unsafe, and a simple prompting tweak improves similarity but not exact match.

Problem

Current code generation benchmarks focus on issue resolution or synthesis, overlooking the merge-resolution step agents must perform after git detects conflicts. This leaves a gap in evaluating agents' ability to resolve real-world merge conflicts accurately.

Method

The authors curated a dataset of manually audited real merge conflicts from multiple repositories, built a harness to replay conflicts in isolated worktrees, and evaluated a wide range of LLMs on exact reproduction and edit similarity metrics.

Results

Exact reproduction peaks at only a few percent, while top systems achieve 86-90% edit similarity. Human audit shows that half of high-similarity outputs are still unsafe, and conflict-block prompting raises edit similarity by about 16.1 pp on average without improving exact match.

Contributions

A manually audited collection of 135 real merge conflicts spanning 185 files from 23 repositories, a harness for worktree-replayed evaluation, and an analysis revealing the gap between edit similarity and semantic correctness.

Practical relevance

Provides a realistic benchmark for assessing coding agents' merge-resolution capabilities, helping developers identify and improve weaknesses in automated conflict handling.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction