FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migration
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
AI coding assistants are rapidly becoming integral to modern software development. A key challenge in this space is the continual need to migrate and modernize codebases in response to evolving software ecosystems. Traditionally, such migrations have relied on rule-based systems and human intervention. With the advent of powerful large language models (LLMs), AI-driven agentic frameworks offer a promising alternative-but their effectiveness has not been systematically evaluated. In this paper, we introduce FreshBrewfootnoteurlhttps://github.com/mrcabbage972/freshbrew, a novel benchmark for evaluating AI agents on project-level Java migrations, with a specific focus on measuring an agent's ability to preserve program semantics and avoid reward hacking, which we argue requires projects with high test coverage for a rigorous and reliable evaluation. We benchmark several state-of-the-art LLMs, and compare their performance against established rule-based tools. Our evaluation on a challenging subset of 228 public Maven repositories that build on JDK 8, fail on JDK 17, and have high test coverage shows that the top-performing model, Gemini 2.5 Flash, can successfully migrate 52.3% of projects to JDK 17. Our empirical analysis reveals novel insights into the critical strengths and limitations of current agentic approaches, offering actionable insights into their real-world applicability. Our empirical study reveals failure modes of current AI agents in realistic Java modernization tasks, providing a foundation for evaluating trustworthy code-migration systems. By releasing FreshBrew, we aim to facilitate rigorous, reproducible evaluation and catalyze progress in AI-driven codebase modernization.
Key facts. Cited by 5 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 25 of its 53 references that are in the map. First posted on arXiv 6 Oct 2025.
Builds on
25 of 53 references.
Closest ancestors · 5
Same direction, newest first
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Ahead7 Apr
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb
Other references · 20
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2024GPT-4o System Cardcited by 4,467
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024A Survey on LLM-as-a-Judgecited by 1,384
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
- 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 132
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
8 more
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 67
- 2024TestGenEval: A Real World Unit Test Generation and Test Completion Benchmarkcited by 49
- 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?cited by 29
- 2023CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Modelscited by 28
- 2024Unraveling the Potential of Large Language Models in Code Translation: How Far Are We?cited by 17
- 2025RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generationcited by 9
- 2025GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilitiescited by 2
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026A Multi-agent AI System for Deep Learning Model Migration from TensorFlow to JAXcited by 2
- 2026RepoRescue: An Empirical Study of LLM Agents on Whole-Repository Compatibility Rescuecited by 1
- 2026Agentic Generation of AST Transformation Rules for Fixing Breaking Updatescited by 0
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migrationcited by 0
- 2026Update from Hell: Can Coding Agents Survive Hidden Breakage in Dependency Upgrades?cited by 0
- 2026Update from Hell: Can Coding Agents Survive Hidden Breakage in Dependency Upgrades?31 Aug 2026
- 2026Identifying Latent Declarative Representations of Code for Assisting Repository Migration22 Aug 2026
- 2026RepoRescue: An Empirical Study of LLM Agents on Whole-Repository Compatibility Rescue1 Jul 2026
- 2026Agentic Generation of AST Transformation Rules for Fixing Breaking Updates23 Jun 2026
- 2026A Multi-agent AI System for Deep Learning Model Migration from TensorFlow to JAX28 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026ProjDevBench: Benchmarking AI Coding Agents on End-to-End Project Development
- 2025Agentic Refactoring: An Empirical Study of AI Coding Agents
- 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunities
- 2025SWE-Compass: Towards Unified Evaluation of Agentic Coding Abilities for Large Language Models
- 2026CR-Bench: Evaluating the Real-World Utility of AI Code Review Agents
- 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoring
- 2025The Rise of AI Teammates in Software Engineering (SE) 3.0: How Autonomous Coding Agents Are Reshaping Software Engineering
- 2026ABC-Bench: Benchmarking Agentic Backend Coding in Real-World Development