mlsanityData to 14 Oct 2026

SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Tests

arXiv 2607.00990 ↗First posted 1 Jul 2026cs.SE cs.AIcited by 5

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

  1. 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents29 Jan
  2. 2026EET: Experience-Driven Early Termination for Cost-Efficient Software Engineering Agents9 Jan
  3. 2025SWEnergy: An Empirical Study on Energy Efficiency in Agentic Issue Resolution Frameworks with SLMs10 Dec
  4. 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?17 Nov
  5. 2025Gistify! Codebase-Level Understanding via Runtime Execution30 Oct
  6. 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul
  7. 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents11 Apr
  8. 2025Agentic Bug Reproduction for Effective Automated Program Repair at Google3 Feb
  9. 2024Diversity Empowers Intelligence: Integrating Expertise of Software Engineering Agents13 Aug
  10. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  11. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun
  12. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
1 more
  1. 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution26 Mar

Other references · 13

  1. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  2. 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 279
  3. 2024AutoCodeRover: Autonomous Program Improvementcited by 278
  4. 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 111
  5. 2025S*: Test Time Scaling for Code Generationcited by 98
  6. 2025CodeMonkeys: Scaling Test-Time Compute for Software Engineeringcited by 51
  7. 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 34
  8. 2025Otter: Generating Tests from Issues to Validate SWE Patchescited by 25
  9. 2025Issue2Test: Generating Reproducing Test Cases from Issue Reportscited by 18
  10. 2025AssertFlip: Reproducing Bugs via Inversion of LLM-Generated Passing Testscited by 11
  11. 2025Klear-AgentForge: Forging Agentic Intelligence through Posttraining Scalingcited by 9
  12. 2023Automatic Generation of Test Cases based on Bug Reports: a Feasibility Study with Large Language Modelscited by 8
1 more
  1. 2020Using Hypotheses as a Debugging Aidcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026SWEPatchTest: Evaluating Software Tests Beyond Reproduction
  2. 2026Dynamic Cogeneration of Bug Reproduction Test in Agentic Program Repair
  3. 2025Can Old Tests Do New Tricks for Resolving SWE Issues?
  4. 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agents
  5. 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reports
  6. 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution
  7. 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugs
  8. 2025BugPilot: Complex Bug Generation for Efficient Learning of SWE Skills