SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Tests
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Large language model (LLM)-based software engineering agents are increasingly developed to resolve software issues by generating patches from issue reports and code repositories. Bug reproduction tests (BRTs) are an important building block for such agents and have been shown useful for patch validation. However, it remains unclear whether BRTs can also help the more central stage of patch generation. We first conduct a preliminary study and find that directly using advanced BRT generators to guide patch generation is not beneficial: fail-to-fail BRTs can mislead agents, while even fail-to-pass BRTs bring limited or negative gains. Our analysis reveals two reasons: fail-to-pass BRTs may cover only one manifestation of the reported issue, leading to partial patches, whereas fail-to-fail BRTs are unreliable as direct patch-generation targets. Motivated by these insights, we propose SWE-Doctor, a software issue resolution agent that guides patch generation with runtime diagnoses derived from multi-faceted BRT executions. SWE-Doctor first generates multi-faceted BRTs for different behavioral requirements stated in the issue, then executes and debugs these BRTs to construct runtime-grounded diagnosis records, and finally uses the diagnoses together with localization information inferred during BRT generation to guide patch generation and reduce partial patches. We evaluate SWE-Doctor on Python bug-fixing issues from the widely adopted SWE-bench Verified and SWE-bench Pro across five LLM backends. SWE-Doctor consistently outperforms existing agents across all 10 LLM-benchmark combinations, achieving average resolution rates of 75.7% on SWE-bench Verified and 59.4% on SWE-bench Pro. In particular, on the more challenging SWE-bench Pro, SWE-Doctor improves the average resolution rate by 8.0-8.9 percentage points over the baseline agents.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 26 of its 35 references that are in the map. First posted on arXiv 1 Jul 2026.
Builds on
26 of 35 references.
Closest ancestors · 13
Same direction, newest first
- 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents29 Jan
- 2026EET: Experience-Driven Early Termination for Cost-Efficient Software Engineering Agents9 Jan
- 2025SWEnergy: An Empirical Study on Energy Efficiency in Agentic Issue Resolution Frameworks with SLMs10 Dec
- 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?17 Nov
- 2025Gistify! Codebase-Level Understanding via Runtime Execution30 Oct
- 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents11 Apr
- 2025Agentic Bug Reproduction for Effective Automated Program Repair at Google3 Feb
- 2024Diversity Empowers Intelligence: Integrating Expertise of Software Engineering Agents13 Aug
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
Other references · 13
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 279
- 2024AutoCodeRover: Autonomous Program Improvementcited by 278
- 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 111
- 2025S*: Test Time Scaling for Code Generationcited by 98
- 2025CodeMonkeys: Scaling Test-Time Compute for Software Engineeringcited by 51
- 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 34
- 2025Otter: Generating Tests from Issues to Validate SWE Patchescited by 25
- 2025Issue2Test: Generating Reproducing Test Cases from Issue Reportscited by 18
- 2025AssertFlip: Reproducing Bugs via Inversion of LLM-Generated Passing Testscited by 11
- 2025Klear-AgentForge: Forging Agentic Intelligence through Posttraining Scalingcited by 9
- 2023Automatic Generation of Test Cases based on Bug Reports: a Feasibility Study with Large Language Modelscited by 8
1 more
- 2020Using Hypotheses as a Debugging Aidcited by 2
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Preventing Premature Commitment in Coding Agents with an Evidence-Conditioned Execution Layercited by 3
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 3
- 2026Validation Evidence in LLM Repair Agents: How Much of What Passes Actually Tests the Bug?cited by 0
- 2026A Trust Layer for Agent Evaluationcited by 0
- 2026Can LLMs Fix It Without Code? Toward Automated Verification of No-Code Bug Fixescited by 0
- 2026Can LLMs Fix It Without Code? Toward Automated Verification of No-Code Bug Fixes8 Oct 2026
- 2026A Trust Layer for Agent Evaluation5 Oct 2026
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026Validation Evidence in LLM Repair Agents: How Much of What Passes Actually Tests the Bug?30 Jul 2026
- 2026Preventing Premature Commitment in Coding Agents with an Evidence-Conditioned Execution Layer30 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026SWEPatchTest: Evaluating Software Tests Beyond Reproduction
- 2026Dynamic Cogeneration of Bug Reproduction Test in Agentic Program Repair
- 2025Can Old Tests Do New Tricks for Resolving SWE Issues?
- 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agents
- 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reports
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugs
- 2025BugPilot: Complex Bug Generation for Efficient Learning of SWE Skills