AI coding assistants applied to COBOL mainframes are documented to be genuinely useful for a specific set of tasks — mapping dependencies across huge codebases, extracting business logic, generating tests and inline documentation — but GitHub, Anthropic, and IBM all explicitly say full automation isn’t close. One Microsoft engineer quoted in GitHub’s own materials puts full automation “at least five years away,” and none of the three companies publishes an independently verified cost-reduction or time-savings figure for a real migration, despite some bold-sounding language in their marketing.
What AI assistants are documented to do well
According to GitHub’s own blog, Copilot can extract business logic from COBOL, identify call chains and dependencies across a program, clean up stale comments, and map the four COBOL divisions — and AI agents can go a step further, generating Mermaid diagrams of CALL-statement chains, then generating tests, then generating modernized code based on what was mapped. Anthropic’s published materials describe Claude Code mapping implicit dependencies through shared files, databases, or global state across thousands of lines of code, documenting existing workflows, designing preliminary tests, and creating API wrappers that let old and new code run side by side during a transition. IBM’s own guidance names three concrete tools already applied to this problem: Swimm, which combines static analysis with an LLM to document business rules; IBM’s own watsonx Code Assistant for Z, which refactors COBOL into modular business services; and a multi-agent coder-and-reviewer system built by Persistent Systems specifically for COBOL-to-Java conversion.
What all three vendors say it still can’t do
This is the part easy to skip past in vendor content, and all three sources state it directly. GitHub quotes Microsoft Global Black Belt engineer Julia Kordick saying “full automation is probably at least five years away,” and stresses that humans have to stay in the loop because every mainframe codebase is different. Anthropic’s own materials state that COBOL engineers supply “the understanding of regulatory requirements, business priorities, operational constraints, and risk tolerance that AI cannot” — not a minor caveat, given how much of mainframe logic in banking and insurance exists specifically to encode regulatory requirements. IBM’s guidance is similarly direct: “AI doesn’t take away the need for mainframe systems,” teams “must still exercise caution, verifying the outputs,” and legacy code “might not adhere to current data privacy controls,” meaning a straight automated port can carry old compliance problems directly into the new system rather than fixing them.
Numbers worth double-checking before you repeat them
Even the baseline scale figures don’t agree across sources: GitHub cites “200 billion lines” of COBOL in production use, while IBM cites “an estimated 250 billion lines,” sourced to a 2021 industry survey — a reminder that even the most commonly repeated statistic in this space is an estimate, not a measurement. Anthropic’s materials state that COBOL handles “an estimated 95% of ATM transactions in the US,” attributed to an academic paper, and separately claim modernization can happen “in quarters instead of years” — but that specific claim appears with no supporting data in the article itself, and no case study is named alongside it. GitHub’s own figure for AI-analysis cost, “$2 to $5 per 1,000 lines analyzed,” comes from one engineer’s own framework cost-tracking rather than an independent study. None of this means the figures are wrong — it means they’re vendor-reported and worth treating as directional rather than verified before they go into your own business case.
Named projects actually doing this work
Beyond named tools, GitHub’s piece centers on Julia Kordick’s own experience modernizing COBOL systems without prior COBOL expertise, using an open-sourced framework (Azure-Samples/Legacy-Modernization-Agents, built on Microsoft’s Semantic Kernel). Her own stated advice, worth taking seriously given it comes from someone who’s actually done this: start small, with an initial scope under 5,000 lines, rather than attempting a full-system migration as a first project. That’s a useful calibration point against any pitch that frames COBOL modernization as a single large initiative — the practitioner-level advice from the person actually quoted doing the work is closer to “prove it on a small slice first.”
A starting checklist before scoping a COBOL modernization project
- Start with a scope under 5,000 lines — the specific threshold suggested by the one named practitioner in the sources checked here — rather than scoping a full-system migration as the first attempt.
- Assign a domain-knowledgeable engineer to own regulatory, compliance, and business-logic sign-off; none of the three vendors claim AI can supply that judgment.
- Treat AI-generated tests and documentation as a draft that a human validates against the original system’s actual behavior, not as ground truth.
- Explicitly audit whether the legacy code’s data-handling practices meet current privacy and compliance standards before porting them forward unchanged — IBM’s own guidance flags this as a real risk, not a hypothetical one.
- Run old and new systems side by side for a transition period rather than cutting over in one step, using API wrappers or an equivalent isolation layer.
- Treat every vendor-published cost or time-savings figure, including the ones cited in this article, as a starting estimate to validate against your own pilot project, not a number to put directly into a budget request.
Capabilities vs. limitations, by source
| Source | What it says AI can do | What it says AI still can’t do |
|---|---|---|
| GitHub | Extract business logic, map call chains, generate diagrams, tests, and modernized code | Full automation “probably at least five years away” (quoting Microsoft’s Julia Kordick) |
| Anthropic | Map dependencies across thousands of lines, document workflows, design preliminary tests, enable side-by-side runs | Supply understanding of regulatory requirements, business priorities, risk tolerance |
| IBM | Code understanding, refactoring, conversion, test generation, inline documentation (via named tools like Swimm and watsonx Code Assistant for Z) | “Doesn’t take away the need for mainframe systems”; outputs must still be verified; legacy privacy gaps can carry forward |
Much of what makes COBOL modernization hard isn’t unique to COBOL — it’s the same underlying pattern covered in refactoring legacy code without breaking what already works, where the real risk is usually implicit behavior nobody documented rather than the code’s syntax. Before trusting AI-generated tests as sufficient validation for a migration this consequential, it’s worth running them through the same rigor covered in a pre-ship checklist for testing an AI agent’s tool calls using Anthropic’s and OpenAI’s own eval guidance, and any generated regex or pattern-matching logic pulled out of the original COBOL deserves the same scrutiny covered in reviewing AI-generated regex for its specific failure modes.
Why COBOL specifically is a harder case than modernizing a typical legacy web app
COBOL mainframe systems compound several problems that make them a harder AI-assistance target than a typical legacy web codebase. The code is frequently decades old, written before the practices (small functions, clear naming, automated tests) that make modern codebases easier for an LLM to reason about; business rules are often implicit in the control flow rather than documented anywhere, meaning the “specification” for what the system is supposed to do effectively only exists as the code itself; and the people who understood the original design decisions have frequently retired or left the organization, so there’s no one left to confirm whether an AI-generated explanation of a given COBOL routine is actually correct or just a plausible-sounding guess. None of the three sources checked here frame this as a reason to avoid AI assistance — all three are actively building tools for exactly this problem — but it is the reason all three also land on the same caution: verify everything, and keep a human who understands the business domain in the loop throughout.
Who this is actually relevant for right now
Given the documented state of the tooling, the organizations best positioned to start now are ones with a specific, bounded modernization need — a single subsystem, a defined integration point, a particular report-generation module — rather than an open-ended “modernize the whole mainframe” mandate. That maps directly onto the one piece of practitioner advice in the sources checked here that comes from someone who’s actually done the work: start under 5,000 lines. An organization waiting for a single AI tool to safely automate an entire multi-million-line system end to end, based on vendor marketing language rather than the vendors’ own stated limitations, is working from a timeline none of the three companies quoted in this article actually claims exists yet.
There’s one more thing worth spelling out: Can AI fully automate a COBOL-to-Java migration today? No vendor checked for this piece claims that. GitHub’s own quoted source puts full automation years away, and Anthropic and IBM both frame AI as a tool that still requires domain-expert oversight for the parts of the job — regulatory compliance, business-rule judgment, output verification — that none of them claim AI can supply on its own.
A question that comes up here: How much does AI actually reduce COBOL modernization costs? The specific figures circulating (a per-line analysis cost, a “quarters instead of years” timeline claim) come from vendor-published materials without independent verification or a named, measured case study behind them. Treat any such number as a starting estimate for your own pilot, not a benchmark to budget against directly.
Photo: Agiorgio, CC BY-SA 4.0, via Wikimedia Commons.



