SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Rigorous software testing is crucial for developing and maintaining high-quality code, making automated test generation a promising avenue for both improving software quality and boosting the effectiveness of code generation methods. However, while code generation with Large Language Models (LLMs) is an extraordinarily active research area, test generation remains relatively unexplored. We address this gap and investigate the capability of LLM-based Code Agents to formalize user issues into test cases. To this end, we propose a novel benchmark based on popular GitHub repositories, containing real-world issues, ground-truth bug-fixes, and golden tests. We find that LLMs generally perform surprisingly well at generating relevant test cases, with Code Agents designed for code repair exceeding the performance of systems designed specifically for test generation. Further, as test generation is a similar but more structured task than code generation, it allows for a more fine-grained analysis using issue reproduction rate and coverage changes, providing a dual metric for analyzing systems designed for code repair. Finally, we find that generated tests are an effective filter for proposed code fixes, doubling the precision of SWE-Agent. We release all data and code at https://github.com/logic-star-ai/SWT-Bench
Key facts. Cited by 129 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 21 of its 49 references that are in the map. First posted on arXiv 18 Jun 2024.
Builds on
21 of 49 references.
Closest ancestors · 2
Same direction, newest first
- 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution26 Mar
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repair25 Mar
Other references · 19
- 2023GPT-4 Technical Reportcited by 18,132
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
7 more
- 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
- 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 110
- 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 94
- 2024Automated Unit Test Improvement using Large Language Models at Metacited by 73
- 2022Pynguin: Automated Unit Test Generation for Pythoncited by 49
- 2023Nuances are the Key: Unlocking ChatGPT to Find Failure-Inducing Tests with Differential Promptingcited by 23
- 2023A Survey on What Developers Think About Testingcited by 4
Built on by
Citing papers per year: 2024: 4; 2025: 53; 2026: 72.
129 papers.
Sort:
By area:
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
- 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
- 2025Survey on Evaluation of LLM-based Agentscited by 190
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
- 2025CVE-Bench: A Benchmark for AI Agents' Ability to Exploit Real-World Web Application Vulnerabilitiescited by 90
- 2025LocAgent: Graph-Guided LLM Agents for Code Localizationcited by 82
- 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectoriescited by 75
- 2025CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scalecited by 71
- 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 57
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 52
- 2025The OpenHands Software Agent SDK: A Composable and Extensible Foundation for Production Agentscited by 39
- 2025BaxBench: Can LLMs Generate Correct and Secure Backends?cited by 38
38 more
- 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 32
- 2025Type-Constrained Code Generation with Language Modelscited by 32
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 32
- 2026LongCLI-Bench: A Preliminary Benchmark and Study for Long-horizon Agentic Programming in Command-Line Interfacescited by 29
- 2025Automated Benchmark Generation for Repository-Level Coding Taskscited by 27
- 2025Otter: Generating Tests from Issues to Validate SWE Patchescited by 24
- 2026TermiGen: High-Fidelity Environment and Robust Trajectory Synthesis for Terminal Agentscited by 24
- 2025HardTests: Synthesizing High-Quality Test Cases for LLM Codingcited by 22
- 2025Agentic Bug Reproduction for Effective Automated Program Repair at Googlecited by 20
- 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Taskscited by 20
- 2026Long-Horizon-Terminal-Bench: Testing the Limits of Agents on Long-Horizon Terminal Tasks with Dense Reward-Based Gradingcited by 20
- 2026Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?cited by 19
- 2025Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Taskscited by 18
- 2025Unified Software Engineering Agent as AI Software Engineercited by 17
- 2025SWE-Effi: Re-Evaluating Software AI Agent System Effectiveness Under Resource Constraintscited by 17
- 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Studycited by 16
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025SWE-fficiency: Can Language Models Optimize Real-World Repositories on Real Workloads?cited by 15
- 2025Towards LLM Agents for Earth Observationcited by 13
- 2025Constrained Decoding of Diffusion LLMs with Context-Free Grammarscited by 13
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Training Versatile Coding Agents in Synthetic Environmentscited by 13
- 2025Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Surveycited by 12
- 2025SecureVibeBench: Benchmarking Secure Vibe Coding of AI Agents via Reconstructing Vulnerability-Introducing Scenarioscited by 11
- 2026TrajAudit: Automated Failure Diagnosis for Agentic Coding Systemscited by 11
- 2024LLMs as Continuous Learners: Improving the Reproduction of Defective Code in Software Issuescited by 10
- 2026How Well Does Agent Development Reflect Real-World Work?cited by 10
- 2025Understanding and Mitigating Bias Inheritance in LLM-based Data Augmentation on Downstream Taskscited by 9
- 2025Self-Abstraction from Grounded Experience for Plan-Guided Policy Refinementcited by 9
- 2026DevOps-Gym: Benchmarking AI Agents in Software DevOps Cyclecited by 9
- 2026WebGameBench: Requirement-to-Application Evaluation for Coding Agents via Browser-Native Gamescited by 9
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoningcited by 8
- 2025Benchmarking LLMs for Unit Test Generation from Real-World Functionscited by 8
- 2026CodeTaste: Can LLMs Generate Human-Level Code Refactorings?cited by 8
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Applicationcited by 8
- 2025CLOVER: A Test Case Generation Benchmark with Coverage, Long-Context, and Verificationcited by 7
- 2025InfCode: Adversarial Iterative Refinement of Tests and Patches for Reliable Software Issue Resolutioncited by 7
- 2026Evaluating and Improving Automated Repository-Level Rust Issue Resolution with LLM-based Agentscited by 7
50 most cited of 129 All 129 (JSON)
- 2026TestGRAD: Evolving Test Suites via Failure Pattern Momentum for SWE-Agent Ensemble7 Oct 2026
- 2026Groundability, Not Scale Alone: When Weak Reviewers Can Audit Strong Coding Agents1 Oct 2026
- 2026Trustworthy Runtime Error Healing in Real-World Repositories: A Benchmark and Guardrail30 Sep 2026
- 2026SecureVibe: Making Vibe Coding More Secure29 Sep 2026
- 2026Improving Large Language Models for Code through Runtime Program-State Reasoning28 Sep 2026
- 2026SWE-Prometheus: Measuring Engineering Governance Improvements in Real-World Repositories24 Sep 2026
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills10 Sep 2026
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026VibeCheck: Assessing the Quality of LLM-Generated Unit Tests: A Multi-agent Empirical Study across Heterogeneous Repositories5 Sep 2026
- 2026What Does Multi-Harness RL Learn? Credit Assignment and Portability in Coding Agents3 Sep 2026
- 2026Harbor Adapters and Harbor-Index: Infrastructure and a Curated Meta-Dataset for Large-Scale Agentic Evaluation3 Sep 2026
- 2026EarlyEval: Cheaper Agent Evaluation via Early Outcome Prediction2 Sep 2026
38 more
- 2026SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration?24 Aug 2026
- 2026DPIAgent: Divide, Protocol, Isolate for Agentic Reproduction Test Generation24 Aug 2026
- 2026Grounding AI Agents in Contracts: An Empirical Evaluation of Spec-Driven Test Generation17 Aug 2026
- 2026Evaluating Agentic Code Repair Capabilities in Distributed Systems14 Aug 2026
- 2026VibeLifeBench: Can Your Life Agent Be Proactive and Persistent in a Living World?11 Aug 2026
- 2026Active-SWE: Benchmarking Coding Agents for Proactive Bug Fixing without Issue Reports5 Aug 2026
- 2026Validation Evidence in LLM Repair Agents: How Much of What Passes Actually Tests the Bug?30 Jul 2026
- 2026Change2Task: From Repository Changes to Executable Coding Agent Tasks and Environments30 Jul 2026
- 2026ExplainBench: Evaluating Code Explanations from Agents29 Jul 2026
- 2026Code Monitor Red Teaming for Public-Test-Passing Code23 Jul 2026
- 2026Beyond Fail-to-Pass: Iterative Hardening of Co-Generated Bug Reproduction Tests and Fixes22 Jul 2026
- 2026Test Coverage Analysis of Agentic Pull Requests20 Jul 2026
- 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reports10 Jul 2026
- 2026Long-Horizon-Terminal-Bench: Testing the Limits of Agents on Long-Horizon Terminal Tasks with Dense Reward-Based Grading9 Jul 2026
- 2026Multi-Large Language Model Orchestrated Severity Assessment of Clinical Records (MOSAIC)6 Jul 2026
- 2026Humans are Missing from AI Coding Agent Research4 Jul 2026
- 2026EvoOtter: Evolutionary Reproduction Test Generator3 Jul 2026
- 2026TestEvo-Bench: An Executable and Live Benchmark for Test and Code Co-Evolution2 Jul 2026
- 2026PACE: A Proxy for Agentic Capability Evaluation2 Jul 2026
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Tests1 Jul 2026
- 2026Unlocking Model Potentials Through Adaptive Multi-Agent Scaffolding for Efficient Issue Resolution24 Jun 2026
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Application10 Jun 2026
- 2026TrajAudit: Automated Failure Diagnosis for Agentic Coding Systems26 May 2026
- 2026WebGameBench: Requirement-to-Application Evaluation for Coding Agents via Browser-Native Games17 May 2026
- 2026Skim: Speculative Execution for Fast and Efficient Web Agents15 May 2026
- 2026BootstrapAgent: Distilling Repository Setup into Reusable Agent Knowledge15 May 2026
- 2026Hydra: Efficient, Correct Code Generation via Checkpoint-and-Rollback Support14 May 2026
- 2026PBT-Bench: Benchmarking AI Agents on Property-Based Testing13 May 2026
- 2026An Execution-Verified Multi-Language Benchmark for Code Semantic Reasoning10 May 2026
- 2026SWE Atlas: Benchmarking Coding Agents Beyond Issue Resolution8 May 2026
- 2026Coding Agents Don't Know When to Act8 May 2026
- 2026Breaking, Stale, or Missing? Benchmarking Coding Agents on Project-Level Test Evolution7 May 2026
- 2026SOCIA-EVO: Automated Simulator Construction via Dual-Anchored Bi-Level Optimization19 Apr 2026
- 2026Neurosymbolic Repo-level Code Localization17 Apr 2026
- 2026Vibe-Coding: Feedback-Based Automated Verification with no Human Code Inspection, a Feasibility Study16 Apr 2026
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generation14 Apr 2026
- 2026AlphaEval: Evaluating Agents in Production14 Apr 2026
- 2026Investigating Autonomous Agent Contributions in the Wild: Activity Patterns and Code Change over Time1 Apr 2026
50 newest of 129 All 129 (JSON)
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
- 2024Agent-as-a-Judge: Evaluate Agents with Agentscited by 223
- 2025Survey on Evaluation of LLM-based Agentscited by 190
- 2025CVE-Bench: A Benchmark for AI Agents' Ability to Exploit Real-World Web Application Vulnerabilitiescited by 90
- 2025LocAgent: Graph-Guided LLM Agents for Code Localizationcited by 82
- 2025The OpenHands Software Agent SDK: A Composable and Extensible Foundation for Production Agentscited by 39
- 2026LongCLI-Bench: A Preliminary Benchmark and Study for Long-horizon Agentic Programming in Command-Line Interfacescited by 29
- 2026TermiGen: High-Fidelity Environment and Robust Trajectory Synthesis for Terminal Agentscited by 24
- 2025Agentic Bug Reproduction for Effective Automated Program Repair at Googlecited by 20
- 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Taskscited by 20
- 2026Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?cited by 19
- 2025Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Taskscited by 18
12 most cited of 71 All 71 (JSON)
- 2026Groundability, Not Scale Alone: When Weak Reviewers Can Audit Strong Coding Agents1 Oct 2026
- 2026SWE-Prometheus: Measuring Engineering Governance Improvements in Real-World Repositories24 Sep 2026
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills10 Sep 2026
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026VibeCheck: Assessing the Quality of LLM-Generated Unit Tests: A Multi-agent Empirical Study across Heterogeneous Repositories5 Sep 2026
- 2026What Does Multi-Harness RL Learn? Credit Assignment and Portability in Coding Agents3 Sep 2026
- 2026Harbor Adapters and Harbor-Index: Infrastructure and a Curated Meta-Dataset for Large-Scale Agentic Evaluation3 Sep 2026
- 2026EarlyEval: Cheaper Agent Evaluation via Early Outcome Prediction2 Sep 2026
- 2026SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration?24 Aug 2026
- 2026DPIAgent: Divide, Protocol, Isolate for Agentic Reproduction Test Generation24 Aug 2026
- 2026Grounding AI Agents in Contracts: An Empirical Evaluation of Spec-Driven Test Generation17 Aug 2026
- 2026Evaluating Agentic Code Repair Capabilities in Distributed Systems14 Aug 2026
12 newest of 71 All 71 (JSON)
- 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectoriescited by 75
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolutioncited by 52
- 2025HardTests: Synthesizing High-Quality Test Cases for LLM Codingcited by 22
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoningcited by 8
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Actioncited by 4
- 2026An Execution-Verified Multi-Language Benchmark for Code Semantic Reasoningcited by 1
- 2026FVRuleLearner: Operator-Level Reasoning Tree (Op-Tree)-Based Rules Learning for Formal Verificationcited by 0
- 2026Improving Large Language Models for Code through Runtime Program-State Reasoningcited by 0
- 2026Improving Large Language Models for Code through Runtime Program-State Reasoning28 Sep 2026
- 2026An Execution-Verified Multi-Language Benchmark for Code Semantic Reasoning10 May 2026
- 2026FVRuleLearner: Operator-Level Reasoning Tree (Op-Tree)-Based Rules Learning for Formal Verification6 Mar 2026
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution31 Jul 2025
- 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories23 Jun 2025
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action16 Jun 2025
- 2025HardTests: Synthesizing High-Quality Test Cases for LLM Coding30 May 2025
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoning19 Feb 2025
- 2026Code Monitor Red Teaming for Public-Test-Passing Codecited by 0
- 2026Code Monitor Red Teaming for Public-Test-Passing Code23 Jul 2026
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
- 2025CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scalecited by 71
- 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 57
- 2025BaxBench: Can LLMs Generate Correct and Secure Backends?cited by 38
- 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 32
- 2025Type-Constrained Code Generation with Language Modelscited by 32
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 32
- 2025Automated Benchmark Generation for Repository-Level Coding Taskscited by 27
- 2025Otter: Generating Tests from Issues to Validate SWE Patchescited by 24
- 2026Long-Horizon-Terminal-Bench: Testing the Limits of Agents on Long-Horizon Terminal Tasks with Dense Reward-Based Gradingcited by 20
- 2025SWE-fficiency: Can Language Models Optimize Real-World Repositories on Real Workloads?cited by 15
- 2025Towards LLM Agents for Earth Observationcited by 13
12 most cited of 47 All 47 (JSON)
- 2026TestGRAD: Evolving Test Suites via Failure Pattern Momentum for SWE-Agent Ensemble7 Oct 2026
- 2026Trustworthy Runtime Error Healing in Real-World Repositories: A Benchmark and Guardrail30 Sep 2026
- 2026SecureVibe: Making Vibe Coding More Secure29 Sep 2026
- 2026Beyond Fail-to-Pass: Iterative Hardening of Co-Generated Bug Reproduction Tests and Fixes22 Jul 2026
- 2026Long-Horizon-Terminal-Bench: Testing the Limits of Agents on Long-Horizon Terminal Tasks with Dense Reward-Based Grading9 Jul 2026
- 2026Multi-Large Language Model Orchestrated Severity Assessment of Clinical Records (MOSAIC)6 Jul 2026
- 2026EvoOtter: Evolutionary Reproduction Test Generator3 Jul 2026
- 2026TestEvo-Bench: An Executable and Live Benchmark for Test and Code Co-Evolution2 Jul 2026
- 2026BootstrapAgent: Distilling Repository Setup into Reusable Agent Knowledge15 May 2026
- 2026Hydra: Efficient, Correct Code Generation via Checkpoint-and-Rollback Support14 May 2026
- 2026SOCIA-EVO: Automated Simulator Construction via Dual-Anchored Bi-Level Optimization19 Apr 2026
- 2026Neurosymbolic Repo-level Code Localization17 Apr 2026
12 newest of 47 All 47 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026TDD-Agent: Test-Driven Reasoning for Code Generation
- 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancement
- 2026E2E-SWE: Benchmarking LLMs on Building Working Codebases from Scratch
- 2026SWE-Mutation: Can LLMs Generate Reliable Test Suites in Software Engineering?
- 2024An Empirical Study on LLM-based Agents for Automated Bug Fixing
- 2025UTBoost: Rigorous Evaluation of Coding Agents on SWE-Bench
- 2026Agent-Based Test Assertion Generation via Diverse Perspective Aggregation
- 2024MarsCode Agent: AI-native Automated Bug Fixing