ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories
Open Access
- 7 October 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 2409-2421
Abstract
Most repository-level code translation and validation techniques have been evaluated on a single source-target programming language (PL) pair, owing to the complex engineering effort required to adapt new PL pairs. Programming agents can enable PL-agnosticism in repository-level code translation and validation: they can synthesize code across many PLs and autonomously use existing tools specific to each PL’s analysis. However, state-of-the-art has yet to offer a fully autonomous agentic approach for repository-level code translation and validation of large-scale programs. This paper proposes ReCodeAgent, an autonomous multi-agent approach for language-agnostic repository-level code translation and validation. Users only need to provide the project in the source PL and specify the target PL for ReCodeAgent to automatically translate and validate the entire repository. ReCodeAgent is the first technique to achieve high translation success rates across many PLs. We compare the effectiveness of ReCodeAgent with four alternative neuro-symbolic and agentic approaches to translate 118 real-world projects, with 1,975 LoC and 43 translation units for each project, on average. The projects cover 6 PLs and 4 PL pairs. Our results demonstrate that ReCodeAgent consistently outperforms prior techniques on translation correctness, improving test pass rate by 60.8% on ground-truth tests, with an average cost of $15.3. We also perform process-centric analysis of ReCodeAgent trajectories to confirm its procedural efficiency. Finally, we investigate how the design choices (a multi-agent vs. single-agent architecture) influence ReCodeAgent performance: on average, the test pass rate drops by 40.4%, and trajectories become 28% longer and persistently inefficient.This publication has 37 references indexed in Scilit:
- RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code TranslationIEEE Transactions on Software Engineering, 2025
- C2SaferRust: Transforming C Projects Into Safer Rust With NeuroSymbolic TechniquesIEEE Transactions on Software Engineering, 2025
- VERT: Polyglot Verified Equivalent Rust Transpilation with Large Language Models2025
- RustMap: Towards Project-Scale C-to-Rust Migration via Program Analysis and LLM2025
- Integrating Rules and Semantics for LLM-Based C-to-Rust Translation2025
- The rise and potential of large language model based agents: a surveyScience China Information Sciences, 2025
- GlueTest: Testing Code Translation via Language Interoperability2024
- On the Evaluation of Neural Code Translation: Taxonomy and Benchmark2023
- Divide-and-Conquer Approach for Multi-phase Statistical Migration for Source Code (T)2015
- Cloud Migration Research: A Systematic ReviewIEEE Transactions on Cloud Computing, 2013