TL;DR
BeyondSWE introduces a new 500-instance benchmark evaluating AI code agents on complex software engineering tasks that require external knowledge and repository-wide changes, moving past localized single-repository bug fixes. The authors find that even the most advanced models struggle significantly, revealing that integrating external search with local code reasoning remains a major open challenge.
What Problem Does This Paper Address?
Current code-agent benchmarks, such as SWE-bench, primarily evaluate an agent's ability to fix localized bugs within a single repository. These benchmarks assume that all the context needed to solve the problem is already contained within that codebase.
In real-world software engineering, however, developers rarely work in a vacuum. They frequently look outside the repository—consulting documentation, upstream dependencies, or specialized domain knowledge—and must coordinate changes across the entire codebase (such as migrating APIs due to a breaking dependency upgrade). This paper addresses the lack of evaluation frameworks for these broader knowledge and resolution scopes, exposing a critical gap between benchmark performance and real-world utility.
Methods
The authors design BeyondSWE around four distinct software engineering stress tests:
- CrossRepo: Resolving issues that require information from related external repositories or linked artifacts.
- DomainFix: Solving bugs in specialized scientific and engineering fields (e.g., quantum physics, bioinformatics) that require combining code reasoning with domain expertise.
- DepMigrate: Coordinating repository-wide edits to adapt to breaking changes in upstream dependencies.
- Doc2Repo: Generating a fully functional repository from scratch based solely on a natural-language specification document.
To evaluate how well agents handle information outside the local codebase, the authors introduce SearchSWE, a controlled diagnostic baseline. SearchSWE extends standard code-agent workflows by adding web search and webpage browsing tools. To prevent agents from simply finding and copying the original GitHub pull request solutions, SearchSWE implements a strict blocklist filtering out direct target-repository artifacts.
Datasets
The paper introduces the BeyondSWE benchmark, which consists of 500 instances drawn from 246 real-world GitHub repositories. Unlike existing benchmarks that focus on small, localized patches, BeyondSWE tasks demand a much larger modification scale, affecting an average of 10.9 files and 1,039.6 lines of code per instance.
Key Insights and Ideas
- The benchmark is far from saturated: Even the most advanced frontier models fail to dominate the benchmark, showing that moving beyond single-repo bug fixing introduces steep, unsolved challenges.
- Search is helpful, but integration is broken: Simply giving an agent a search tool does not guarantee success. Agents frequently fail because they retrieve information at the wrong granularity (e.g., user-facing guides instead of low-level implementation logic), apply patterns incompatible with the local dependency versions, or get distracted by keyword-matched but irrelevant domains.
- Search is not self-activating: Advanced models require explicit, search-aware prompting to effectively synthesize web search into their coding workflow. Without explicit guidance, models fail to turn retrieved information into locally actionable code.
- More tokens do not equal better code: Higher API costs and longer trajectories do not reliably correspond to better performance. Instead, longer runs often indicate that an agent is trapped in an ineffective repair loop or overwhelmed by noisy search results.
Key Results
- Baseline Performance: Under the standard open-source OpenHands scaffold, the best-performing model was DeepSeek-V4-Pro (Max), achieving an average score of 46.12% across all tasks.
- Search-Augmented Performance: The strongest overall results came from the Codex harness using GPT-5.4 (xhigh). When paired with a search-aware prompt under the SearchSWE framework, its average score jumped from 48.48% to 56.65%.
- Task-Specific Variance:
DomainFixbenefited the most from search capabilities (yielding a +19.4% boost for GPT-5.4) because scientific formulas and definitions are highly retrievable online. In contrast, full repository generation (Doc2Repo) proved incredibly difficult; even the best configuration generated only 2 fully correct repositories out of 50.
Limitations and Future Work
The authors acknowledge that deep search for coding remains an open problem. While search engines and LLM coding capabilities have advanced rapidly in parallel, current agents struggle to reliably synthesize them.
Future work must move beyond simple information retrieval. Progress will require developing agents capable of source discrimination (deciding which external evidence is trustworthy), version grounding (ensuring retrieved patterns match pinned local dependencies), and execution-based verification to safely translate web search results into precise codebase edits.
Summary updated