---
title: "ScarfBench: Benchmarking AI Agents for Enterprise Java Framework Migration"
description: "ScarfBench is an open benchmark of 34 enterprise Java applications (102 implementations, 204 migration tasks, ~151K LOC, 1,331 expert-written tests) for evaluating AI agents on migrations between Spring, Jakarta EE and Quarkus, scored on whether the result builds, deploys and preserves behavior."
url: "https://swe.quest/articles/scarfbench-benchmarking-ai-agents-for-enterprise-java-framework-migration-946bb68c0f7d1d1f"
canonical: "https://huggingface.co/blog/ibm-research/scarfbench"
source: "Hugging Face"
published: "2026-06-30"
difficulty: "easy"
kind: "Research"
reading_minutes: 5
tags: ["ai-coding","evals","jvm","refactoring","ai-agents"]
---

# ScarfBench: Benchmarking AI Agents for Enterprise Java Framework Migration

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-06-30, 5 min read, Research. Original: [https://huggingface.co/blog/ibm-research/scarfbench](https://huggingface.co/blog/ibm-research/scarfbench)

## Summary

ScarfBench is an open benchmark of 34 enterprise Java applications (102 implementations, 204 migration tasks, ~151K LOC, 1,331 expert-written tests) for evaluating AI agents on migrations between Spring, Jakarta EE and Quarkus, scored on whether the result builds, deploys and preserves behavior. Frontier agents reach under 10% behavioral success, compile success consistently overstates migration quality, and Jakarta EE is the hardest target. Agents are overconfident: Claude Code claimed 29 of 30 whole-app builds succeeded, but only 22 did. Configuration dominates migration effort, the work proceeds as iterative dependency resolution across layers, and environment problems like Docker caches, ports and the Maven wrapper often block validation, so independent build-and-test verification remains essential.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Java & JVM](https://swe.quest/tags/jvm.md) (Languages)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- Java enterprise frameworks ([easy posts on Java & JVM](https://swe.quest/tags/jvm.md?difficulty=easy))
- AI coding agents ([easy posts on AI for coding](https://swe.quest/tags/ai-coding.md?difficulty=easy))

## Keywords

ScarfBench, Spring, Jakarta EE, Quarkus, Claude Code, Maven

## Related posts

- [The Interaction Changes Everything: Treating AI Agents as Collaborators, Not Automation](https://swe.quest/articles/the-interaction-changes-everything-treating-ai-agents-as-collaborators-not-e493683d4eddf19c.md): Engineering@Microsoft · 2025-12-03 · Medium · 9 min read · AI agents, AI for coding, LLMs, Refactoring & migrations
  Microsoft's Entra SDK v1-to-v2 migration across hundreds of repositories succeeded with an AI coding agent only after the team replaced step-by-step checklists with prompts that give the agent a role, mission and permission to use judgment.
- [Helix: The internal tool powering our Shopify app's native migration](https://swe.quest/articles/helix-the-internal-tool-powering-our-shopify-app-s-native-migration-db9fcd596ae9b1fc.md): Shopify Engineering · 2026-09-21 · Medium · 8 min read · AI for coding, AI agents, Mobile, Refactoring & migrations, React
  Helix is Shopify's internal LLM tooling for rebuilding its 300+ screen React Native app in native Swift and Kotlin.
- [Agent-driven development in Copilot Applied Science](https://swe.quest/articles/agent-driven-development-in-copilot-applied-science-57df9b7433878456.md): GitHub Engineering · 2026-03-31 · Medium · 9 min read · AI for coding, AI agents, Developer productivity, Evaluation, Testing
  A Copilot Applied Science researcher built eval-agents, a set of Copilot SDK-based agents that automate analysis of coding-agent trajectories from benchmarks like TerminalBench2 and SWEBench-Pro, and developed it primarily through coding agents.
- [Making AI Write Android Code Our Way: A Practical Guide to Agent Skills](https://swe.quest/articles/making-ai-write-android-code-our-way-a-practical-guide-to-agent-skills-60cf67851cb44c95.md): Medium Engineering · 2026-03-17 · Medium · 9 min read · AI for coding, Mobile, AI agents, Java & JVM, Developer productivity
  Medium's small Android team encodes its Kotlin/Compose conventions into an AGENTS.md project context file plus 13 Markdown "skills" in .agents/skills/ that act as step-by-step runbooks for Cursor's agent.
- [Agentic Coding on Railway: A Practical Guide for 2026](https://swe.quest/articles/agentic-coding-on-railway-a-practical-guide-for-2026-dae3c2957727f1b2.md): Railway · 2026-05-25 · Medium · 10 min read · AI agents, AI for coding, Deployment, Cloud platforms
  Railway's official MCP server, per-PR preview environments with isolated databases, one-call rollback, environment promotion and per-environment secrets let agents like Claude Code, Cursor and Codex deploy, debug and validate their own PRs without leaving the loop.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
