RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Execution
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Code generation models based on large language models (LLMs) have gained wide adoption, but challenges remain in ensuring safety, accuracy, and controllability, especially for complex tasks. Existing methods often lack dynamic integration of external tools, transparent reasoning, and user control over safety. To address these issues, we propose a controllable code generation framework utilizing the ReAct paradigm for multi-agent task execution. This framework is a multi-agent system designed to enable efficient, precise, and interpretable code generation through dynamic interactions between LLMs and external resources. The framework adopts a collaborative architecture comprising four specialized agents: a Planner for task decomposition, a Searcher that leverages the ReAct framework for reasoning and tool integration, a CodeGen agent for accurate code generation, and an Extractor for structured data retrieval. The ReAct-based Searcher alternates between generating reasoning traces and executing actions, facilitating seamless integration of internal knowledge with external tools (such as search engines) to enhance accuracy and user control. Experimental results show the framework's effectiveness across multiple languages, achieving a 94.8% security rate on the SVEN dataset with CodeQL, outperforming existing approaches. Its transparent reasoning process fosters user trust and improves controllability.
Key facts. Cited by 2 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 30 of its 35 references that are in the map. First posted on arXiv 9 Oct 2025.
Builds on
30 of 35 references.
Closest ancestors · 1
Same direction, newest first
- 2024CodePori: Large-Scale System for Autonomous Software Development Using Multi-Agent Technology2 Feb
Other references · 29
- 2023GPT-4 Technical Reportcited by 18,132
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2022A Survey on In-context Learningcited by 717
17 more
- 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMscited by 574
- 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2023Visual Adversarial Examples Jailbreak Aligned Large Language Modelscited by 307
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2023A Comprehensive Capability Analysis of GPT-3 and GPT-3.5 Series Modelscited by 244
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
- 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 149
- 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
- 2024Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineeringcited by 100
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 89
- 2019TBar: Revisiting Template-based Automated Program Repaircited by 64
- 2023Retrieval-Augmented Code Generation for Universal Information Extractioncited by 40
- 2024AutoSafeCoder: A Multi-Agent Framework for Securing LLM Code Generation through Static Analysis and Fuzz Testingcited by 34
- 2024Toward Secure Code Generation: Bridging Correctness and Security via Task-Adaptive Vulnerability Modeling and Execution-Based Benchmarkingcited by 26
- 2021Neural Program Generation Modulo Static Analysiscited by 13
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation
- 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generation
- 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Tasks
- 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisation
- 2025TALM: Dynamic Tree-Structured Multi-Agent Framework with Long-Term Memory for Scalable Code Generation
- 2025A Survey on Code Generation with LLM-based Agents
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models
- 2025Agent-based code generation for the Gammapy framework