Business

AI agents cut COBOL and mainframe modernization from years to quarters

Morgan Stanley, Toyota and Amazon report large productivity gains and dollar savings from AI-assisted legacy code work, though Gartner warns most 2026 migrations will fail without governance.

DailyMech Staff

AI agents cut COBOL and mainframe modernization from years to quarters
AI-generated illustration (Grok Imagine) for DailyMech — Original AI-generated image

Beneath modern banking apps, airline reservation portals, and government benefit systems sits an aging foundation of legacy software that quietly taxes the global economy. Industry estimates put roughly 220 billion lines of COBOL still running in production, powering 95% of ATM transactions, 80% of in-person credit card transactions, and more than 40% of online banking systems. Organizations spend 60% to 80% of their IT budgets simply keeping legacy infrastructure running, amid $1.52 trillion in accumulated U.S. software technical debt.

In 2026, agentic AI coding and verification platforms are beginning to crack that cost trap. Rather than relying on risky overnight rewrites, enterprises are using AI to map undocumented codebases, strip out dead weight, translate legacy logic, and run automated equivalence tests—cutting modernization timelines from multi-year marathons to multi-quarter sprints.

Why Legacy Maintenance Became a Macroeconomic Bottleneck

For decades, CIOs avoided touching core mainframe and monolithic systems because the economics of manual rewrites were brutal, and the risk of breaking mission-critical billing or payroll logic was high. Three converging pressures forced the issue in 2026:

  • The Talent Cliff: The average COBOL programmer is 55 years old, with roughly 10% of the COBOL workforce retiring every year.
  • The AI-Readiness Gap: Companies cannot connect modern AI analytics or customer agents to business data locked inside 1980s batch jobs; 70% of Fortune 500 companies still run software more than two decades old.
  • Escalating Run and Breach Costs: Mainframe MIPS charges and unpatched legacy vulnerabilities expose firms to breaches averaging $6.08 million in financial services and $9.77 million in healthcare.

Real-World Savings From AI-Assisted Modernization

Over the past year, major banks, automakers, and cloud hyperscalers have published concrete productivity gains:

  • Morgan Stanley: Using its in-house DevGen.AI platform, modernized more than 17 million lines of COBOL and other code into Java and Python, saving developers more than 1 million hours of manual coding.
  • Toyota Motor North America: Using AWS Transform, modernized more than 40 million lines of COBOL to Java.
  • Amazon: Using its internal AI transformation agent, saved roughly 4,500 developer-years and captured approximately $260 million per year in infrastructure performance gains.

Discovery and Verification—Not Just Code Generation

What changed in 2026 is that agentic platforms tackled the most expensive phases of modernization: discovery and equivalence testing. AI agents inventory entire repositories in days to weeks, often uncovering 30% more programs than official inventories list. Platforms such as AWS Transform build behavioral replay harnesses that feed real production inputs through both legacy and translated codebases to verify identical outputs.

Gartner cautioned that more than 70% of mainframe migrations started this year will fail if technology leaders overestimate what generative AI can automate without rigorous architecture governance. Subtle logic errors still require experienced human review. Rather than sidelining veteran programmers, AI modernization makes them more valuable as business-rule validators.

Sources