mlsanityData to 14 Oct 2026

RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translation

arXiv 2508.17720 ↗First posted 25 Aug 2025cs.SEcited by 3

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

Abstract (arXiv)

Repository-aware code translation is critical for modernizing legacy systems, enhancing maintainability, and enabling interoperability across diverse programming languages. While recent advances in large language models (LLMs) have improved code translation quality, existing approaches face significant challenges in practical scenarios: insufficient contextual understanding, inflexible prompt designs, and inadequate error correction mechanisms. These limitations severely hinder accurate and efficient translation of complex, real-world code repositories. To address these challenges, we propose RepoTransAgent, a novel multi-agent LLM framework for repository-aware code translation. RepoTransAgent systematically decomposes the translation process into specialized subtasks-context retrieval, dynamic prompt construction, and iterative code refinement-each handled by dedicated agents. Our approach leverages retrieval-augmented generation (RAG) for contextual information gathering, employs adaptive prompts tailored to varying repository scenarios, and introduces a reflection-based mechanism for systematic error correction. We evaluate RepoTransAgent on hundreds of Java-C# translation pairs from six popular open-source projects. Experimental results demonstrate that RepoTransAgent significantly outperforms state-of-the-art baselines in both compile and pass rates. Specifically, RepoTransAgent achieves up to 55.34% compile rate and 45.84% pass rate. Comprehensive analysis confirms the robustness and generalizability of RepoTransAgent across different LLMs, establishing its effectiveness for real-world repository-aware code translation.

Key facts. Cited by 3 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 27 of its 38 references that are in the map. First posted on arXiv 25 Aug 2025.

Builds on

27 of 38 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 26

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2025Qwen3 Technical Reportcited by 8,820
  3. 2024GPT-4o System Cardcited by 4,588
  4. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
  5. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  6. 2023AgentVerse: Facilitating Multi-Agent Collaboration and Exploring Emergent Behaviorscited by 598
  7. 2024AutoCodeRover: Autonomous Program Improvementcited by 278
  8. 2023Building Cooperative Embodied Agents Modularly with Large Language Modelscited by 237
  9. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
  10. 2016Language to Logical Form with Neural Attentioncited by 158
  11. 2024MARG: Multi-Agent Review Generation for Scientific Paperscited by 104
  12. 2023ProAgent: Building Proactive Cooperative Agents with Large Language Modelscited by 98
14 more
  1. 2018Tree-to-tree Neural Networks for Program Translationcited by 93
  2. 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
  3. 2023MindAgent: Emergent Gaming Interactioncited by 88
  4. 2024Exploring and Unleashing the Power of Large Language Models in Automated Code Translationcited by 57
  5. 2022XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligencecited by 56
  6. 2024Project Sid: Many-agent simulations toward AI civilizationcited by 49
  7. 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 47
  8. 2024LLMArena: Assessing Capabilities of Large Language Models in Dynamic Multi-Agent Environmentscited by 36
  9. 2024VillagerAgent: A Graph-Based Multi-Agent Framework for Coordinating Complex Task Dependencies in Minecraftcited by 35
  10. 2023On the Evaluation of Neural Code Translation: Taxonomy and Benchmarkcited by 23
  11. 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 23
  12. 2024Rectifier: Code Translation with Corrector via LLMscited by 20
  13. 2022Methods2Test: A dataset of focal methods mapped to test casescited by 10
  14. 2024Output Format Biases in the Evaluation of Large Language Models for Code Translationcited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026LegacyTranslate: LLM-based Multi-Agent Method for Legacy Code Translation
  2. 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories
  3. 2024TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution Alignment
  4. 2026RepoZero: Can LLMs Generate a Code Repository from Scratch?
  5. 2026RepoMod-Bench: A Benchmark for Code Repository Modernization via Implementation-Agnostic Testing
  6. 2026Large-scale Repository Engineering via Agent-Native Reusable Code Primitives
  7. 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation
  8. 2025BabelCoder: Agentic Code Translation with Specification Alignment