TL;DR
iSWE is a specialized AI agent designed to resolve software issues in Java repositories, a domain often neglected by Python-centric coding assistants. By utilizing a two-stage pipeline (localization then editing) equipped with sophisticated, Java-specific static analysis tools, iSWE achieves state-of-the-art performance on Java benchmarks while being 2x to 3x cheaper to run than general-purpose agents.
What Problem Does This Paper Address?
While the field of automated software engineering has exploded with the rise of Large Language Models (LLMs), most research has focused on Python. Benchmarks like SWE-bench are dominated by Python-based agents, but enterprise software is overwhelmingly built on Java.
Java presents unique challenges: it is a compiled, strongly typed language with deep object-oriented hierarchies where functionality is often spread across many files. General-purpose agents that rely on simple bash commands or generic file-viewing tools often struggle with Java's verbosity and architectural complexity. This leads to "agentic loops" that are either too expensive (consuming too many tokens) or too fragile (failing to find the right code to fix). The authors aim to bridge this gap by creating an agent that "understands" Java's structure.
Methods
The authors introduce iSWE, which departs from the "one-size-fits-all" agent approach in two major ways:
- A Two-Agent Pipeline: Instead of one agent trying to do everything, iSWE splits the task.
- Localization Agent: A ReAct-based agent that uses read-only tools to find the exact classes and methods that need changing.
- Editing Agent: Takes the output of the first agent and applies the fix using a search-and-replace tool in a format familiar to LLMs (merge-conflict style).
- Java-Specific "Strong" Tools: Rather than giving the LLM a raw terminal, iSWE provides high-level tools powered by CLDK (a program analysis framework) and Tree-Sitter. These include:
get_class_infoandget_method_info: Retrieve structured data about Java entities.get_inheritance_hierarchy: Helps the agent navigate complex OO structures.get_call_chain: Allows the agent to trace how data flows through the system.- Safety and Efficiency: Most of the agent's work happens in "user-space" with read-only tools. iSWE only spins up a heavy, containerized environment at the very end to run the Java compiler and verify that the fix doesn't break the build, saving significant time and memory.
Datasets
The researchers evaluated iSWE on the Java subsets of two major benchmarks:
- Multi-SWE-bench (Java): 128 instances.
- SWE-PolyBench (Java): 165 instances.
Together, these 293 instances provide a robust testing ground for Java issue resolution, covering various difficulty levels and repository types (e.g., Apache RocketMQ).
Key Insights and Ideas
- Abstraction Reduces Cost: By providing "strong" tools that return concise, relevant architectural information, the LLM takes fewer "turns" to solve a problem. This directly translates to a 2x-3x reduction in API costs compared to agents using "weak" tools like raw bash.
- Localization is Half the Battle: The paper shows that localization metrics (finding the right file and node) correlate very strongly with final resolution success. By decoupling localization, the system becomes more modular and allows for human-in-the-loop verification.
- Model Agnosticism: iSWE isn't tied to a single model. While it hits SOTA with frontier models like Claude 3.7/4.5, it also enables open-source models (like DeepSeek-V3) to perform respectably by offloading the "heavy lifting" of code navigation to rule-based tools.
- Java's Multi-File Nature: The authors observed that Java fixes tend to involve more files and "diff-hunks" than Python fixes, justifying the need for tools that can see across the entire codebase rather than just one file at a time.
Key Results
- State-of-the-Art: iSWE ranks at or near the top of the leaderboards for both benchmarks. Using Claude-4.5-Sonnet, it resolved 33.6% of issues on Multi-SWE-bench.
- Cost Efficiency: On Multi-SWE-bench, iSWE (using Claude-3.7-Sonnet) resolved more issues than competitors while spending significantly less ($1.21 avg per instance vs. $3.72–$4.78 for other top agents).
- Localization Accuracy: The localization agent achieved a file-level recall of over 60% on both benchmarks, providing a high-quality "hit list" for the editing agent.
Limitations and Future Work
- No Dynamic Feedback: Currently, iSWE does not use execution feedback (running tests and seeing them fail/pass) during the agentic loop. It relies on static analysis and compilation checks. The authors note that adding test feedback is a primary goal for future versions.
- Inference Scaling: The paper does not yet explore "test-time compute" (sampling multiple trajectories and picking the best), which has recently shown promise in other coding agents.
- Language Specificity: While iSWE can handle other languages in a generic way, its "superpowers" are currently limited to Java. Expanding these rule-based "strong tools" to other enterprise languages (like C# or C++) remains a future challenge.
Summary updated