BeyondSWE: Can Current Code Agent Survive Beyond Single-Repo Bug Fixing?
This paper introduces BeyondSWE, a comprehensive benchmark revealing significant limitations in current code agents' ability to handle complex, real-world tasks beyond single-repo bug fixing, and proposes SearchSWE to investigate the inconsistent benefits of search augmentation in emulating developer workflows.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are hiring a Junior Software Architect (an AI) to fix bugs in your company's code.
For the last few years, we've been testing these AI architects by giving them a single, small room (a single software project) and asking them to fix a leaky faucet (a bug). They've gotten pretty good at this. They can find the pipe, turn the wrench, and stop the drip.
But the real world of software engineering isn't just about fixing leaky faucets in one room. It's about:
- Crossing borders: "Hey, the plumbing in the kitchen is broken, but the solution is actually in the library's blueprints."
- Speaking a foreign language: "We need to fix this code, but it requires knowledge of quantum physics or biochemistry."
- Moving the whole house: "The foundation (a library we use) just changed its shape. We need to rebuild the entire house to fit the new foundation."
- Building from scratch: "Here is a sketch on a napkin; please build a fully functional skyscraper."
The paper "BeyondSWE" argues that our current tests are too easy. They only check if the AI can fix a leaky faucet in a single room. The authors built a new, much harder test called BeyondSWE to see if these AI architects can actually survive in the real world.
The New Test: BeyondSWE
The authors created 500 real-world challenges divided into four "levels of difficulty," like a video game:
- The Detective (Cross-Repo): The AI must fix a bug in Project A, but the answer lies in Project B. It's like fixing your car engine by reading the manual for a completely different brand of car.
- The Specialist (Domain-Specific): The AI must fix code for a quantum physics simulator. It can't just know how to code; it needs to understand the actual science of quantum mechanics.
- The Renovator (Dependency Migration): A major tool the project uses just released a new version that broke everything. The AI has to rewrite thousands of lines of code to make the old house work with the new foundation.
- The Architect (Doc-to-Repo): The AI is given a 10-page design document and an empty folder. It must build a complete, working software system from scratch.
The Result?
The AI architects failed miserably. Even the smartest, most advanced models (the "frontier" models) only solved about 45% of these tasks. They are great at fixing small, isolated problems, but they crumble when faced with complex, real-world scenarios that require looking outside their immediate box.
The "Google" Experiment: SearchSWE
The authors asked: "What if we give the AI a Google Search button? Maybe if they can look things up, they'll get better?"
They built a tool called SearchSWE that lets the AI browse the web, read documentation, and search forums while it codes.
The Surprising Twist:
Giving the AI a search engine didn't always help. In fact, sometimes it made things worse.
Think of it like this:
- The Good: Sometimes, the AI gets stuck on a specific error. It searches, finds the exact manual page, and fixes the problem instantly.
- The Bad: Sometimes, the AI gets confused. It searches for "how to fix a broken pipe," but the search results show it how to fix a car engine. The AI gets distracted by the wrong information, tries to apply car-engine logic to plumbing, and breaks the pipe even more.
- The Ugly: The AI might find a solution for the newest version of a tool, but your project is using an old version. The AI blindly copies the new solution, and the whole system crashes.
The paper concludes that searching and coding are two different skills that haven't learned to work together yet. Just because an AI can read a library doesn't mean it knows which book to read, or how to ignore the wrong ones.
The Big Takeaway
We are currently overestimating our AI coders. They are like brilliant students who can ace a math test in a quiet room but panic when asked to solve a real-life engineering problem in a noisy, chaotic construction site.
To build truly useful AI developers, we need to stop testing them on simple, isolated tasks and start teaching them how to:
- Navigate between different projects.
- Filter the noise from the internet.
- Adapt old code to new rules.
- Think like a human expert who knows when to look up a fact and when to trust their own knowledge.
BeyondSWE is the new "driving test" for AI coders, and right now, most of them are failing the test. But that's a good thing! It tells us exactly where we need to improve to make them truly ready for the real world.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.