TDFlow: Agentic Workflows for Test Driven Development
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
We introduce TDFlow, a novel test-driven agentic workflow that frames repository-scale software engineering as a test-resolution task, specifically designed to solve human-written tests. Given a set of tests, TDFlow repeatedly proposes, revises, and debugs repository-scale patches using precisely engineered sub-agents and tightly constrained tools. The workflow decomposes software engineering program repair into four components governed by respective sub-agents. This simple, forced decoupling of patch proposing, debugging, patch revision, and optional test generation (1) reduces long-context burden on any individual sub-agent, (2) focuses each sub-agent on specific, pre-defined sub-tasks, and (3) allows for specialized performance improvement on specific sub-tasks. When provided human-written tests, TDFlow attains 88.8% pass rate on SWE-Bench Lite (an absolute improvement of 27.8% over the next best system) and 94.3% on SWE-Bench Verified. Manual inspection of the 800 TDFlow runs within SWE-Bench Lite and Verified uncover only 7 instances of test hacking, which were subsequently counted as failures. Furthermore, we show that the primary obstacle to human-level software engineering performance lies within writing successful reproduction tests. We envision a human-LLM interactive system powered by TDFlow where human developers write tests solved by LLM systems. Together, these results indicate that modern LLMs, when embedded in a narrowly engineered, test-driven workflow, already achieve human-level test resolution -- with the final frontier for fully autonomous repository repair being the accurate generation of valid reproduction tests.
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 22 of its 62 references that are in the map. First posted on arXiv 27 Oct 2025.
Builds on
22 of 62 references.
Closest ancestors · 7
Same direction, newest first
- 2025DARS: Dynamic Action Re-Sampling to Enhance Coding Agent Performance by Adaptive Tree Traversal18 Mar
- 2025PatchPilot: A Cost-Efficient Software Engineering Agent with Early Attempts on Formal Verification4 Feb
- 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarios16 Oct
- 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep
- 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
- 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution26 Mar
Other references · 15
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2022CodeT: Code Generation with Generated Testscited by 384
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 238
- 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 111
- 2024CodeR: Issue Resolving with Multi-Agent and Task Graphscited by 91
- 2024Feedback Loops With Language Models Drive In-Context Reward Hackingcited by 77
- 2018FIRST: A Framework for Optimizing Information Quality in Mobile Crowdsensing Systemscited by 50
- 2025EXPEREPAIR: Dual-Memory Enhanced LLM-based Repository-Level Program Repaircited by 35
- 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 34
- 2025PROV-AGENT: Unified Provenance for Tracking AI Agent Interactions in Agentic Workflowscited by 31
3 more
- 2024AEGIS: An Agent-based Framework for General Bug Reproduction from Issue Descriptionscited by 16
- 2024Semantic Self-Consistency: Enhancing Language Model Reasoning via Semantic Weightingcited by 9
- 2024A Comparative Study on the Impact of Test-Driven Development (TDD) and Behavior-Driven Development (BDD) on Enterprise Software Delivery Effectivenesscited by 1
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026REAgent: Requirement-Driven LLM Agents for Software Issue Resolutioncited by 4
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 3
- 2026Detect by Yourself: Self-Designing Agentic Workflows for Few-Shot Graph Anomaly Detectioncited by 1
- 2026ATTest: Agent-Driven Tensor Testing for Deep Learning Library Modulescited by 0
- 2026Domain Adapted Large Language Models for Additive Manufacturingcited by 0
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skillscited by 0
- 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
- 2026Detect by Yourself: Self-Designing Agentic Workflows for Few-Shot Graph Anomaly Detection26 May 2026
- 2026REAgent: Requirement-Driven LLM Agents for Software Issue Resolution8 Apr 2026
- 2026Domain Adapted Large Language Models for Additive Manufacturing23 Mar 2026
- 2026ATTest: Agent-Driven Tensor Testing for Deep Learning Library Modules15 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generation
- 2025QualityFlow: An Agentic Workflow for Program Synthesis Controlled by LLM Quality Checks
- 2026TDD-Agent: Test-Driven Reasoning for Code Generation
- 2026Diagnosis-Driven Automatic Repair for Agentic Workflow via Symbolic Inference
- 2026TDAD: Test-Driven Agentic Development - Reducing Code Regressions in AI Coding Agents via Graph-Based Impact Analysis
- 2025Agentic Program Repair from Test Failures at Scale: A Neuro-symbolic approach with static analysis and test execution feedback
- 2026Catching Developers in the Flow: Low-Latency Agentic Program Repair at Google Scale
- 2026Test-Driven AI Agent Definition (TDAD): Compiling Tool-Using Agents from Behavioral Specifications