2026-10-13

LLMs Are Changing the Economics of Legacy Modernization

LLMs shift legacy modernization from rewriting code to understanding systems—and make each step toward modularity cheaper.


First posted on LinkedIn, October 13, 2026.

---

## The Legacy Was Never the Code

For years, companies assumed the hard part of modernizing old software was rewriting it.

It wasn't.

The hard part was figuring out what the software did.

Code tells you what a system does mechanically. It rarely tells you why it does it. Why is this transaction processed before that one? Why does the system permit an exception for one type of customer? Why does a field that appears obsolete still get populated?

Sometimes the answer is buried in a comment. More often, it is buried in the memory of someone who retired eight years ago.

This is where LLMs change things. Not because they can write code faster—that is the obvious change, and probably the least important one. They change modernization because they can read.

## The Old Way

Five years ago, if you wanted to break up a monolith, you usually started with diagrams and meetings. Architects studied dependency reports. Domain experts attended event-storming workshops. Teams used domain-driven design to identify bounded contexts.

This was sensible. But it had an awkward dependency: before you could redesign the system, a small group of people had to understand it. That group was usually smaller than admitted.

A company might have 200 developers working on an application, while only five people understood why its most important rules existed. The rest understood the pieces. One person knew the billing jobs. Another knew the database. Another knew the strange exceptions in the renewal process.

Modernization consisted largely of transferring knowledge from those people into diagrams, documents, backlogs, and eventually new code.

## The New Reader

An LLM can read a million lines of unfamiliar code without becoming bored. More importantly, it can move between levels of abstraction.

It can inspect a method, summarize a class, trace a workflow, infer a business rule, compare that rule with a requirements document, and explain the result in business terms.

It will not always be right. But it can produce a useful first draft at a scale that would have been uneconomical before.

The first useful artifact from an AI modernization project is not modern code. It is a map.

The map connects programs to business capabilities, tables to business entities, jobs to operational processes, and conditional branches to rules.

## DDD Did Not Disappear

It is tempting to think LLMs make domain-driven design obsolete. They do the opposite.

DDD becomes more useful because the cost of producing a domain hypothesis falls dramatically.

An agent can scan code, database schemas, UI labels, documentation, tickets, and incident reports. It can extract recurring nouns and verbs. It can propose aggregates, business capabilities, domain events, and bounded contexts.

But these are still proposals.

No model can, from code alone, discover that two business units are about to merge. It cannot know that a transaction must remain synchronous because a regulator expects an immediate decision.

These are not code questions. They are organizational and economic questions.

## The New Bottleneck

When code becomes cheaper to generate, verification becomes more valuable.

This is especially true in legacy systems because there are two kinds of correctness:

1. Behavioral correctness: Does the new system produce the same result as the old one?
2. Intentional correctness: Is that result still what the business wants?

An agent can help with the first. Only the organization can settle the second.

If the old system has incorrectly calculated a fee for 15 years, matching its output may be technically impressive and commercially wrong.

This is why the most valuable AI modernization platforms may turn out to be verification systems rather than translation systems.

## What Becomes Scarce

Modernization used to be constrained by how quickly engineers could understand and rewrite code. Now it will increasingly be constrained by three things:

1. Evidence. Does the organization have source code, build instructions, data lineage, production traces, representative test data, and access to the people who understand the business?

2. Decision-making. Can the organization decide who owns a domain, which behavior should be preserved, and which compromises are acceptable?

3. Courage. Is anyone willing to move real traffic to the new system?

LLMs help greatly with the first. They help somewhat with the second. They cannot supply the third.

## The Real Change

The usual description of AI modernization is that it makes old code new. That is too narrow.

The real change is that software estates are becoming legible.

For decades, large companies accumulated systems faster than they could understand them. Each acquisition, product launch, regulation, and emergency fix added another layer. Eventually, the codebase became a compressed history of the company.

No one understood the whole thing because no one could read it all.

Now a machine can.

Not perfectly. Not without deterministic tools. Not without experts. And not without tests.

But well enough to change the economics.

LLMs do not eliminate DDD. They give it evidence. They do not eliminate the Strangler Fig. They make each strangler step smaller and cheaper. They do not eliminate architects or domain experts. They move them away from code archaeology and toward judgment.

And they do not make modernization automatic. They make it possible to discover, much earlier, what should be modernized—and what should not.

---

Related: For a worked example of COBOL rule mining, see the ESRD pricer artifacts.