Microsoft Finds One Signal Boosts AI Code-Fixing Agents by 44 Points
Microsoft and Georgia Tech researchers inject perfect information into SWE agents to rank which signals actually move the needle on bug fixing.
Takeaways
- ORACLE-SWE injects perfect intermediate signals into SWE agents to rank which ones most improve success.
- Ordering across benchmarks: Reproduction Test > Execution Context ~ API Usage > Edit Location > Regression Test.
- Oracle reproduction tests alone add 42 to 46 points of success across bug-fix, feature, and refactor tasks.
- All five oracle signals combined push success rates above 97% on every model-benchmark pairing tested.
- Two-stage pipeline with agent-extracted reproduction tests beats the stronger model running solo.
- Code and oracle dataset released on GitHub and Hugging Face.
Before a software-engineering agent can fix a GitHub issue, it must locate the relevant code, inspect surrounding functions, identify APIs, reproduce the failure, and run regression tests. Research often evaluates these capabilities separately, leaving developers without clear evidence about which one most affects patch success.
Researchers from Microsoft and Georgia Tech address that question in the ORACLE-SWE paper. They give an agent a perfect, benchmark-derived version of one intermediate signal at a time, then measure the resulting improvement. Reproduction tests produce a larger gain than the other four signals combined.
Five artifacts behind a patch
Software-engineering agents such as Agentless, SWE-agent, OpenHands, and Claude Code repeatedly generate five kinds of intermediate information. The paper’s taxonomy groups them by source and purpose:
- Reproduction test: A Fail-to-Pass test that checks whether the patch satisfies the requested behavior.
- Regression test: A Pass-to-Pass test that verifies existing behavior remains intact.
- Edit location: The files, functions, and line ranges that require changes.
- Execution context: The call stack and surrounding code near the failure.
- API usage: The internal or external functions needed for the fix, along with their definitions.
Each artifact reflects a distinct capability: interpreting requirements, preserving behavior, locating code, tracing program execution, or retrieving implementation details. Measuring them independently reveals where better information produces the largest improvement.
Extracting ground truth
The researchers build rule-based extractors that derive an oracle, or ground-truth version, of each signal directly from SWE-bench data. Edit locations come from the reference patch. Fail-to-Pass and Pass-to-Pass cases provide reproduction and regression tests, with test bodies recovered through syntax-tree parsing. For Python tasks, runtime coverage identifies relevant APIs; for Go, static type analysis resolves function calls and definitions.
Capturing execution context requires additional instrumentation. The extractor first runs the reproduction test against the buggy repository and expands each stack frame with its file path, line number, function name, and 15 lines of nearby code. Python assertion failures can hide source frames, while Go failures may occur during compilation. In those cases, a custom collector inserted at the oracle edit locations records the deepest reachable call stack.
One signal pulls away
The study injects each signal into the user prompt of a SWE-agent baseline and instructs the model to trust it. Each run receives a 120-step budget. Experiments cover SWE-bench-Verified, SWE-bench-Live, and the Python and Go subsets of SWE-bench-Pro, using GPT-4o, GPT-5-Thinking-Medium, and Claude-4.5-Sonnet.
Across models and benchmarks, the contribution ranking remains stable: Reproduction Test > Execution Context ≈ API Usage > Edit Location > Regression Test.
A perfect reproduction test raises success by about 44 percentage points for bug fixes, 46 points for feature implementations, and 42 points for refactoring tasks compared with the no-signal baseline. Execution context or API usage, whichever ranks second for a given task category, adds about 14 to 20 points.
Executable requirements cut ambiguity
GitHub issue descriptions often omit edge cases, and benchmark tests may enforce behavior that the prose only implies. A reproduction test converts that incomplete description into an executable specification with concrete inputs, outputs, and failure conditions. The agent can inspect the target behavior directly while developing and validating its patch.
To measure possible test overfitting, the researchers manually inspected 50 generated patches and used GPT-5 to classify the remainder. No patch was flagged for exploiting the test. They also replaced test bodies with model-generated requirement summaries that contained no assertions. Success fell by 4%, indicating that clearer requirements account for most of the improvement.
Five signals reach 97%
Supplying all five oracle signals raises success to at least 97% for every tested model and benchmark pairing. This result indicates that the taxonomy captures most of the information agents need for SWE-bench-style tasks under the study’s conditions.
Interactions between signals also matter. Combining edit locations with a reproduction test produces a larger gain than either signal supplies independently because the agent knows where to work and can evaluate whether each change satisfies the requirement.
Additional signals generally reduce the number of rollout steps, although the count rises slightly when the agent must integrate several at once. Cost declines more slowly because oracle context, particularly test output, increases prompt size even when the agent needs fewer actions.
Generated signals preserve the ranking
The validation study replaces benchmark-derived oracles with signals produced by a stronger agent. Claude-4.6-Sonnet or GPT-5 receives 50 steps to extract a signal in Stage 1. GPT-5 or GPT-4o then receives 70 steps to solve the issue in Stage 2, preserving the overall 120-step budget.
Signals extracted by agents retain the same contribution order. Generated reproduction tests improve the weaker model’s success by 24 to 28 percentage points. The resulting two-stage pipeline also outperforms the stronger model working alone, suggesting that explicit task decomposition contributes beyond the additional model call.
The extraction results show substantial room for improvement. Agents fully reproduce an issue in 20.5% of attempts, omit corner cases in 55.5%, and fail to run the repository in 11.5%. For edit locations, file-path recall reaches 74.9%, while line-number precision reaches 43.2%.
A research agenda for SWE agents
Teams building or training software-engineering agents can use the ranking to allocate effort. Reproduction-test generation offers the largest measured opportunity, followed by execution-context reasoning and API retrieval. Regression tests contribute little additional success after stronger signals are available, despite their common role in agent workflows.
The researchers released the ORACLE-SWE repository for extracting and evaluating signals on benchmarks that follow the SWE-bench protocol. An oracle dataset on Hugging Face covers SWE-bench-Verified, SWE-bench-Live, and SWE-bench-Pro. Agent developers can inject each oracle separately to identify whether failures stem from requirement interpretation, localization, execution tracing, API retrieval, or regression handling.
Limits of the oracle view
The five-signal taxonomy reflects the authors’ design choices and does not cover every capability involved in resolving software issues. The analysis also assumes that practical agents can learn to produce information resembling the rule-based oracles. The two-stage validation supports that assumption, though its extraction results remain far below oracle quality.
Benchmark ambiguity also amplifies the value of reproduction tests. Production environments with detailed specifications may yield a smaller gap between test generation and the other capabilities. For the GitHub-issue benchmarks evaluated here, improving reproduction-test generation is the highest-leverage intervention identified by the study.