Fixing one bug now means patching two repos: CrossSWE benchmark drops the best model to 58% Pass@1

CrossSWE: Benchmarking Cross-Repository Joint Development for Coding Agents

Silin Chen, Yuling Shi, Heng Lian, Zihan Zhang, Xiaodong Gu, Haotian Lin, Zhensu Sun

cs.SE

2026-11-01

CrossSWE: 171 real GitHub tasks that pass only when multiple repos are patched together. Best model GPT-6.1 Sol hits 58.48% Pass@1; cross-repo inconsistency drives 40%+ of failures.

What problem this solves

Since SWE-bench made "fix a real GitHub issue in a real repo" the standard exam for coding agents, the recipe for raising difficulty has been one-dimensional: longer horizons, bigger diffs, more languages. Whatever the dial, the context an agent reads and the code it touches stay inside one repository.

Real development crosses that boundary constantly. An upstream library changes an API, a protocol, or a data structure, and every consumer has to follow; patch one side and the shared interface no longer matches, so the behavior stays broken. Existing multi-repo benchmarks stop short of testing this. Beyond SWE and DepBench bring extra repositories into the task, but those repos are reading material for understanding a dependency; the patch and the tests still land in a single repo. CrossSWE, built by Shanghai Jiao Tong University, Xidian University and Singapore Management University, changes the exam: the solution itself spans multiple repositories. The paper opens with a concrete case between oauth2-proxy and Higress, where session refresh merged multiple cookies into one HTTP header and broke authentication. The fix requires one project to keep cookies as a list and the other to emit them one by one; patching either side alone leaves the bug alive.

Method

Four construction stages, with the load-bearing one in the middle.

The result is 171 instances over 165 repositories, 20 technical domains and 13 languages (Python and Go lead); 165 instances touch two repos, five touch three, one touches five. Diffs dwarf existing benchmarks: 56.1% of instances modify more than ten files (6% in SWE-bench Pro, 30% in SWE-Bench ProMax) and 66.7% change over 200 lines (13% and 32%).

Results

All five models run on mini-swe-agent v2.4.6 at high reasoning effort, capped at 300 steps and $10 per instance.

ModelPass@1Avg. stepsAvg. cost/instanceAvg. input tokens
GPT-6.1 Sol58.48%32.9$0.34960.97M
DeepSeek V4.1 Flash52.63%152.7$0.288117.54M
Claude Sonnet 5.550.29%29.2$0.52171.31M
Qwen3.8-Flash-Next45.03%182.1$0.293913.31M
GLM-5.3 Flash43.86%141.7$0.34119.74M

GPT-6.1 Sol, the strongest, sits at 58.48% against a reported 75.2% on DeepSWE v1.1, a gap that points at the added difficulty of coordinated edits. It drops from 60.34% on single-language tasks to 54.55% across language boundaries, while DeepSeek V4.1 Flash holds 52.73% there.

Two controlled comparisons carry most of the insight. First, from the 165 two-repo instances the authors derive 330 single-side tasks: both repos stay in the environment but only one needs changes. GPT-6.1 Sol rises from 58.48% to 64.55% while steps fall from 32.9 to 18.5; DeepSeek rises from 52.63% to 61.81% with steps down from 152.7 to 126.9. The difficulty comes from coordinating the edits, not from having a second repo in view. Second, manual failure analysis: cross-repo inconsistency is the top failure mode for all five models, at 44.2% of GPT's failed trajectories, 41.3% of Qwen's, 41.2% of Claude's, 40.7% of GLM's and 29.2% of DeepSeek's, with incomplete implementation second (Claude 29.4%). Agents write patches that are individually plausible and mutually incompatible. Step counts also decouple from patch size: GPT and Claude finish in roughly 30 steps with final diffs about as large as open-weight models that take 150+ steps.

Why it matters

For benchmark builders, the 2^N joint-necessity check is a reusable recipe that keeps pseudo-multi-repo tasks out of the set. For agent developers, the failure profile is the actionable part: the largest failure bucket is cross-repo inconsistency (over 40% for four of five models), which points at maintaining interface and protocol consistency across repos rather than code localization, a different skill than what single-repo SWE data teaches. For model selection, per-instance costs of $0.29 to $0.52 give a concrete budget line, with closed-source models offsetting higher token prices through much shorter trajectories.

To be plain about the positioning: this is a benchmark paper with no new algorithm. Its value is a validated test set for a capability nobody had measured, plus the first failure taxonomy.

Limitations

The authors list three: 165 of 171 instances involve exactly two repositories, so large dependency networks are untested; participating repositories are handed to the agent, skipping the real-world problem of finding which repos matter; and all experiments use one Bash-based scaffold (mini-swe-agent) with no direct validation on other harnesses, while the 300-step and $10 caps may constrain long-trajectory models.

Two more concerns from reading the numbers. With 171 instances, gaps of a few points between models sit near the edge of noise. And the open-weight models average well over a hundred steps and tens of millions of input tokens; the paper does not report how many trajectories hit the caps. If truncation is common, those scores are understated and the real gap is narrower than the table suggests.

Terms

Source

Related papers

All paper explainers