Repeton: Structured Bug Repair with ReAct-Guided Patch-and-Test Cycles DOI: XXXXXXX.XXXXXXX CCS: Software and its engineering Software creation and management Software V&V Software testing and debugging Debugging CCS: Computing methodologies Artificial intelligence Natural language processing CCS: S
Nguyen Phu Vinh, Anh Chung Hoang, Chris Ngo, Truong-Son Hy · 2025
Read Repeton: Structured Bug Repair with ReAct-Guided Patch-and-Test Cycles DOI: XXXXXXX.XXXXXXX CCS: Software and its engineering Software creation and management Software V&V Software testing and debugging Debugging CCS: Computing methodologies Artificial intelligence Natural language processing CCS: S by Nguyen Phu Vinh, Anh Chung Hoang, Chris Ngo, Truong-Son Hy (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2506-08173.txt.
Introduction
Nguyen Phu Vinh and co-authors present Repeton, a framework that repairs code bugs in small tested steps in a 2025 paper. Language models write code well but often patch complex faults with low precision and murky logic. Whole-fix guesses are hard to trust in real repositories.
Repeton instead loops through diagnosis, patch, and automated tests, guided by light rules and standard dev tools. Each patch must pass tests before the loop moves on. On a known repair benchmark it matched retrieval-based rivals while staying easier to read. Open code and staged checks make the repairs auditable, the authors say.
Catalog record
| CREATOR | Nguyen Phu Vinh, Anh Chung Hoang, Chris Ngo, Truong-Son Hy |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 17 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2506-08173
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Repeton: Structured Bug Repair with ReAct-Guided Patch-and-Test Cycles DOI: XXXXXXX.XXXXXXX CCS: Software and its engineering Software creation and management Software V&V Software testing and debugging Debugging CCS: Computing methodologies Artificial intelligence Natural language processing CCS: Software and its engineering Software organization and properties Software functional properties Correctness CCS: Computing methodologies Artificial intelligence Knowledge representation and reasoning Reasoning about belief and knowledge Nguyen Phu Vinh, Anh Chung Hoang, Chris Ngo, Truong-Son Hy Abstract . Large Language Models (LLMs) have shown strong capabilities in code generation and comprehension, yet their application to complex software engineering tasks often suffers from low precision and limited interpretability. We present Repeton 1 1 1 https://github.com/phuvinhnguyen/Repeton , a fully open-source framework that leverages LLMs for precise and automated code manipulation in real-world Git repositories. Rather than generating holistic fixes, Repeton operates through a structured patch-and-test pipeline: it iteratively diagnoses issues, proposes code changes, and validates each patch through automated testing. This stepwise process is guided by lightweight heuristics and development tools, avoiding reliance on embedding-based retrieval systems. Evaluated on the SWE-bench Lite benchmark, our method shows good performance compared to RAG-based methods in both patch validity and interpretability. By decomposing software engineering tasks into modular, verifiable stages, Repeton provides a practical path toward scalable and transparent autonomous debugging. 1. Introduction Software debugging remains one of the most labor-intensive and cognitively demanding tasks in software development. As codebases grow in size and complexity, diagnosing and fixing bugs increasingly requires deep domain knowledge, iterative testing, and contextual reasoning. Recent advances in large language models (LLMs) have created new opportunities to automate parts of this process. LLMs have demonstrated strong performance in code generation, understanding, and repair, improving agents’ ability in automating debugging workflows. However, many pipelines and frameworks in software debugging are closed-source or rely on closed-source LLMs, which restricts the development of this field and causes problems such as the inability to deploy the pipeline locally. In this work, we introduce a fully open-source debugging agent designed to overcome these limitations through a modular, embedding-free pipeline that uses completely open-source LLMs solely for structured reasoning. Instead of relying on closed-source LLM, our system guides the agent through a step-by-step process inspired by how developers debug: understanding and summarizing the problem, reproducing errors, narrowing the search space with keyword heuristics, identifying suspect files and functions, and iteratively generating and testing patches. This pipeline, illustrated in Figure 1 , organizes the agent’s reasoning in a transparent and interpretable way, combining static inspection with runtime feedback. Our approach focuses on practicality and efficiency. It avoids neural embeddings and external retrieval systems, such as some existing open-weight methods, instead using symbolic techniques such as keyword extraction, structured file search, and test-driven validation. This reduces the complexity of the framework and also reduces the time to embed the entire codebase while still being flexible enough to handle diverse software projects. After that, to evaluate our system, we use SWE-bench Lite, a benchmark of real-world GitHub issues that require multi-file reasoning and test-based validation, to assess and compare our method with some existing open-weight solutions. Our results show that the proposed agent performs well compared to solely RAG-based methods despite being unable to surpass SweFixer. Lastly, we analyze failure cases of our framework, which can provide useful information for further research in this field. This work provides a reproducible and transparent foundation for building autonomous debugging agents. All components, including model weights, pipeline code, and evaluation scripts, are open-sourced to support further research and real-world adoption. Figure 1. Iterative Repair and Validation workflow. The flow combines code search and patch generation with error reproduction to ensure each patch resolves the bug without introducing new errors. 2. Related Works Rapid advancement of large language models (LLMs) has led to the emergence of coding agents, systems that go beyond simple code generation to engage in autonomous software development tasks. Models like Codex ( Chen et al. 2021 ) and CodeT5+ ( Wang et al. 2023 ) demonstrate strong performance on code completion and synthesis benchmarks, while frameworks such as GPT-Engineer ( Osika 2023 ) and Auto-GPT ( Yang et al. 2023 ) showcase the potential of chaining LLM actions to build software from natural language specifications. However, these systems typically target isolated or synthetic tasks and struggle to handle the complexity of real-world software projects that require multistep reasoning, context tracking, tool usage, and iterative testing. This gap has raised interest in building autonomous agents that can perform end-to-end bug fixing across entire codebases. Rather than just generating snippets, these agents can identify relevant files, interpret issues, locate faults, and fix the problem. In response to this broader challenge, previous work explores a spectrum of methods and tools. Classical approaches in automated program repair (APR) separate fault localization from patch generation, using techniques such as spectrum-based analysis, mutation testing, and symbolic synthesis (e.g., GenProg ( Goues et al. 2012 ) , Angelix ( Mechtaev et al. 2016 ) ). Learning-based methods treat repair as translation from buggy code to fixed code, but often fail to generalize beyond training distributions. More recent systems adopt agentic architectures to coordinate these steps. SWE-agent ( Yang et al. 2024 ) and FixAgent ( Lee et al. 2024 ) organize specialized agents based on LLM (e.g., bug explainer, fault locator, patch proposer) that collaboratively solve debugging tasks. RepairAgent ( Bouzenia et al. 2024 ) and AutoCodeRover ( Zhang et al. 2024 ) treat the LLM as a high-level planner that invokes tools such as search, compilation, and testing. VulDebugger ( Liu et al. 2025 ) combines dynamic run-time information with LLMs to guide security patching. These systems show that agentic design enables more robust debugging, especially when combined with static and dynamic analysis. To rigorously evaluate such agents, benchmarks such as the SWE benchmark ( Jimenez et al. 2024 ) have emerged as critical infrastructure. Derived from real GitHub issues and pull requests, SWE-bench tests agents on realistic bug-fixing tasks involving complex, multi-file projects and test-driven validation. It has become the standard benchmark for assessing autonomous repair agents, with a curated subset (SWE-bench Lite) introduced for efficient experimentation. Performance in the SWE benchmark reveals the limitations of mand LLMs, with top models solving only a fraction of cases, highlighting the challenge of scaling debugging to real-world codebases. Given these challenges, open-source software agents have become increasingly important. SWE-Fixer ( Xie et al. 2025 ) , built on InternLM, demonstrates competitive performance using structured prompting, memory modules, and tool-augmented reasoning without relying on closed APIs. Moatless Tools ( AorWall 2024 ) emphasizes simplicity and reproducibility, offering lightweight, interpretable primitives for debugging without embedding-heavy infrastructure. Our approach shares this open, modular philosophy that extends it with runtime feedback loops and symbolic heuristics to minimize inference overhead. The SWE-agent project ( Yang et al. 2024 ) further exemplifies open innovation, allowing LLMs to autonomously fix GitHub issues with pluggable model backends, achieving strong results with models like LLaMA-32B. In contrast, proprietary systems like Cognition Labs’ Devin ( Wu 2024 ) remain closed-source, despite their reported performance (13.9% on SWE-bench). As such, open-source debugging agents not only promote transparency and reproducibility but are essential for democratizing progress in AI-assisted software engineering. Our work builds on