Ortem Technologies
    AI & Machine Learning

    AI Coding Agents on a Legacy Java Monolith: Scope, Rework and CI Pass Rates

    Praveen JhaAugust 29, 20269 min read
    AI Coding Agents on a Legacy Java Monolith: Scope, Rework and CI Pass Rates
    Quick Answer

    Across a 15-module legacy Java migration, GPT-5.3-Codex-Spark completed the highest share of work unaided at 74 percent with 12 of 15 modules accepted first pass and an 80 percent CI pass rate. Opus 5 completed 68 percent with 11 of 15 accepted and 73 percent CI pass. Muse Code completed 57 percent with 8 of 15 accepted and 60 percent CI pass, and needed the most human correction at a median 4.7 rework hours per module. Note that these are illustrative pilot figures for editorial framing, not a verified benchmark.

    Commercial Expertise

    Need help with AI & Machine Learning?

    Ortem deploys dedicated AI & ML Engineering squads in 72 hours.

    Deploy Private AI

    Next Best Reads

    Continue your research on AI & Machine Learning

    These links are chosen to move readers from general education into service understanding, proof, and buying-context pages.

    AI coding agents migrating a legacy Java monolith

    Most agent comparisons run on greenfield toy problems. Legacy migration is where the difficulty actually lives: implicit coupling, undocumented behaviour, and tests that pass for the wrong reasons.

    This piece frames a controlled trial of three coding agents against the same legacy Java monolith, across a 15-module migration scope.

    Read this first. Results are illustrative pilot data created for article framing, not a verified benchmark. A production study should replace these placeholders with logged task outcomes, build reports, reviewer notes, and engineer-hour tracking.


    Scope of the trial

    Each agent received the same 15-module migration backlog against the same codebase snapshot: a Spring upgrade, a database migration, batch-job conversion, domain-service extraction, performance work and test expansion. Every module went through the same review gate — CI, code review, and where relevant a DBA or architecture review.

    Four things were tracked per module: how much of the scope the agent completed without human help, whether the module was accepted on first review, engineer-hours saved against the manual baseline, and the median human rework hours needed afterwards.


    Headline results

    AgentScope completed unaidedModules accepted first passEngineer-hours saved per moduleMedian rework hours per moduleCI pass rate
    Opus 568%11/1514.2 h3.1 h73%
    GPT-5.3-Codex-Spark74%12/1515.6 h2.4 h80%
    Muse Code57%8/1510.8 h4.7 h60%

    Figure 1. In this controlled migration trial on a legacy Java monolith, GPT-5.3-Codex-Spark completed the highest share of work unaided, while Opus 5 delivered the most balanced results across code quality and repair effort; Muse Code required the most human correction.

    Results are illustrative pilot data created for article framing, not a verified benchmark. A production study should replace these placeholders with logged task outcomes, build reports, reviewer notes, and engineer-hour tracking.


    What broke

    Aggregate scores hide the failures that matter. Every one of these defects passed the agent's own checks and was caught downstream.

    AgentModuleWhat brokeSeverityHow detectedInterventionFinal status
    Opus 5Spring upgradeBroke legacy authentication flow through outdated filter orderingHighIntegration tests and manual QA5.5 h to rewire security chainRecovered
    Opus 5Database migrationCorrect schema change, but missed rollback stepsMediumDBA review2.0 h to add rollback scriptAccepted with rework
    GPT-5.3-Codex-SparkBatch-job migrationLogic converted correctly but introduced duplicate processing on retriesHighReplay test and fixture comparison3.8 h to add idempotency guardRecovered
    GPT-5.3-Codex-SparkPerformance fixImproved code structure but caused a query plan regressionHighLoad test4.2 h to optimise indexingRecovered
    Muse CodeDomain-service extractionOver-extracted shared classes, creating circular dependenciesHighArchitecture review6.0 h to simplify boundariesRejected then reworked
    Muse CodeTest expansionAdded shallow tests that passed but missed a seeded defectMediumMutation test and defect replay2.9 h to strengthen assertionsAccepted with rework

    Reading the results honestly

    Completion share is not delivery speed. The agent with the highest unaided completion also produced two high-severity defects — a retry-path duplication and a query plan regression. Neither was visible to unit tests. Both were caught only because the review gate included replay and load testing.

    The failures cluster in the same places. Filter ordering, rollback steps, retry semantics, query plans, module boundaries, assertion depth. These are all properties of a system rather than properties of a file, and they are exactly what a model working from local context tends to miss.

    Shallow tests are the quiet risk. The test-expansion failure is the one to worry about: tests that pass, look like coverage, and catch nothing. Without mutation testing that defect ships.


    What this implies for your pipeline

    If you are putting agents on legacy work, the review gate matters more than the model choice. Three gates caught every defect above: replay testing for anything touching retries or queues, load testing for anything touching queries, and mutation testing for anything that claims to add coverage.

    Budget for rework rather than assuming savings. On these figures the spread between best and worst median rework was 2.3 hours per module — across a 15-module scope that is most of an engineer-week.


    Planning a legacy modernisation and want the migration gates designed before the agents start writing code? Ortem Technologies' AI and ML solutions practice builds these pipelines for production systems. See our AI-powered application modernization guide for the broader approach, or book an architecture review →.

    About Ortem Technologies

    Ortem Technologies is a premier custom software, mobile app, and AI development company. We serve enterprise and startup clients across the USA, UK, Australia, Canada, and the Middle East. Our cross-industry expertise spans fintech, healthcare, and logistics, enabling us to deliver scalable, secure, and innovative digital solutions worldwide.

    📬

    Get the Ortem Tech Digest

    Monthly insights on AI, mobile, and software strategy - straight to your inbox. No spam, ever.

    AI coding agentslegacy migrationJava monolithOpus 5GPT-5.3-Codex-SparkMuse Codeagent benchmark

    About the Author

    P
    Praveen Jha

    Director – AI Product Strategy, Development, Sales & Business Development, Ortem Technologies

    Praveen Jha is the Director of AI Product Strategy, Development, Sales & Business Development at Ortem Technologies. With deep expertise in technology consulting and enterprise sales, he helps businesses identify the right digital transformation strategies - from mobile and AI solutions to cloud-native platforms. He writes about technology adoption, business growth, and building software partnerships that deliver real ROI.

    Business DevelopmentTechnology ConsultingDigital Transformation
    LinkedIn

    Stay Ahead

    Get engineering insights in your inbox

    Practical guides on software development, AI, and cloud. No fluff — published when it's worth your time.

    Ready to Start Your Project?

    Let Ortem Technologies help you build innovative software solutions for your business.