mlsanityData to 14 Oct 2026

Dynamic Cogeneration of Bug Reproduction Test in Agentic Program Repair

arXiv 2601.19066 ↗First posted 27 Jan 2026cs.SE cs.AIcited by 6

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Bug Reproduction Tests (BRTs) have been used in many Automated Program Repair (APR) systems, primarily for validating fixes and aiding fix generation. In practice, when developers submit a patch, they often implement the BRT alongside the fix. Our experience deploying agentic APR reveals that developers desire a BRT within AI-generated patches to increase their confidence. However, canonical APR systems tend to generate BRTs and fixes separately, and focus on producing only the fix in the final patch. In this paper, we study agentic APR in the context of cogeneration, where the APR agent is instructed to generate both a fix and a BRT in the same patch. We evaluate the effectiveness of different cogeneration strategies on 120 human-reported bugs at Google and characterize different cogeneration strategies by their influence on APR agent behavior. We develop and evaluate patch selectors that account for test change to select patches with plausible fixes (and plausible BRTs). Finally, we analyze the root causes of failed cogeneration trajectories. We show that cogeneration allows the APR agent to generate BRTs for at least as many bugs as a dedicated BRT agent, without compromising the generation rate of plausible fixes, thereby reducing engineering effort in maintaining and coordinating separate generation pipelines for fix and BRT at scale.

Key facts. Cited by 6 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 23 of its 37 references that are in the map. First posted on arXiv 27 Jan 2026.

Builds on

23 of 37 references.

Closest ancestors · 9

Same direction, newest first

  1. 2025Abstain and Validate: A Dual-LLM Policy for Reducing Noise in Agentic Program Repair3 Oct
  2. 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul
  3. 2025Agentic Program Repair from Test Failures at Scale: A Neuro-symbolic approach with static analysis and test execution feedback24 Jul
  4. 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories23 Jun
  5. 2025UTBoost: Rigorous Evaluation of Coding Agents on SWE-Bench10 Jun
  6. 2025Agentic Bug Reproduction for Effective Automated Program Repair at Google3 Feb
  7. 2025Evaluating Agent-based Program Repair at Google13 Jan
  8. 2024SpecRover: Code Intent Extraction via LLMs5 Aug
  9. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun

Other references · 14

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
  4. 2021Program Synthesis with Large Language Modelscited by 3,637
  5. 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 111
  6. 2025Establishing Best Practices for Building Rigorous Agentic Benchmarkscited by 102
  7. 2025Are "Solved Issues" in SWE-bench Really Solved Correctly? An Empirical Studycited by 49
  8. 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 34
  9. 2025AssertFlip: Reproducing Bugs via Inversion of LLM-Generated Passing Testscited by 11
  10. 2025Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and Selectioncited by 10
  11. 2025InfCode: Adversarial Iterative Refinement of Tests and Patches for Reliable Software Issue Resolutioncited by 7
  12. 2025Automated Generation of Issue-Reproducing Tests by Combining LLMs and Search-Based Testingcited by 5
2 more
  1. 2026SWE-Tester: Training Open-Source LLMs for Issue Reproduction in Real-World Repositoriescited by 4
  2. 2016A Dissection of the Test-Driven Development Process: Does It Really Matter to Test-First or to Test-Last?cited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Study
  2. 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Tests
  3. 2026EviACT: An Evidence-to-Action Framework for Agentic Program Repair
  4. 2026SWEPatchTest: Evaluating Software Tests Beyond Reproduction
  5. 2026What Makes a Good Bug Report for an AI Agent?
  6. 2026Do These Violent Delights Have Violent Ends? Measuring the Post-Merge Fate of Agentic Code
  7. 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarios
  8. 2024An Empirical Study on LLM-based Agents for Automated Bug Fixing