In detail
Where AI is good
Legacy modernization is mostly archaeology, and that’s exactly where models help. They can read a sprawling, undocumented codebase and explain what a module does, map dependencies, translate from an old language to a modern one, and draft the first version of a migration. The work that used to take an engineer days of careful reading, AI can compress into a reviewable draft.
MongoDB’s Rachelle Palmer, who leads a forward-deployed AI engineering team, put a ratio on it in episode 14 at 9:05: “the eighty twenty rule applies here,” with LLMs assisting on 80% of the work and the remaining 20% “purely manual effort,” though the 80% runs in minutes, hours or days rather than on a human time scale. Google reports something similar from its own codebase: an experience report on LLM-assisted code migrations finds evidence that LLMs can significantly reduce the time migrations take, while presenting itself as practitioner experience rather than a controlled study.
Where it breaks
The danger is the knowledge that isn’t in the code’s syntax: the business rules, the edge cases, the weird exception that exists because of, say, a contract signed in 2011. A model reads the code, not the intent, so it can fluently reproduce structure while getting a critical behavior wrong — and a subtly wrong migration is more dangerous than an obviously broken one, because it ships.
Generated code can also end up with no owner. OutSystems co-founder Rodrigo Coutinho said in episode 19 at 12:51, published in April 2025, that some OutSystems partners using AI helpers to generate traditional code went as far as turning them off, because of the question of who owns that code. He describes an accountability issue at 13:18: a lot of generated code that nobody understood, which worked until it stopped, with nobody responsible for maintaining or fixing it. He calls that “kind of a limit situation.” You still need the expertise to read the code, he says, and to make sure it fits your architecture and compliance requirements (13:47). His remedy is low code, which OutSystems sells, so read that part as a vendor position. The episode aired in season two, which Galileo sponsored while Conor worked there; Galileo CTO Atindriyo Sanyal co-hosted (0:30).
The pattern that works
Treat AI as an accelerator, not an autonomous rewriter. Let it do the reading, explaining, and drafting; keep engineers on verification and the decisions that require understanding why the old system does what it does. Above all, lean on tests: characterize the legacy behavior first, then prove the modernized code matches it. Palmer describes the same step in episode 14 at 8:39: to prove equivalence between a legacy application and its replacement, “you actually need to generate effectively equivalent tests” for both, and LLMs can help write the tests a legacy codebase never had. Episode 14 is co-hosted by Galileo CTO Atindriyo Sanyal (0:22).
Hear it from the guest
“I do believe the eighty twenty rule applies here, which is that you can get LLMs to assist with 80, but you still have this remaining 20% that's like purely manual effort.”
“In order to prove equivalence between a legacy application and a replacement application, you actually need to generate effectively equivalent tests between your legacy app and your new modernized app.”
“You end up building so much tech debt tech debt that is like a cancer in every organization you go to.”
“If we were to rewrite it, it's like six people over six months and 2 million in hardware.”
“An accountability issue where they had a lot of generated code that nobody understood or knew exactly what it was doing”
Quotes lightly edited to remove filler words.
From the conversation
This explainer is drawn from these episodes — each carries its full transcript.
-
Using AI to Modernize Your Legacy Applications | MongoDB’s Rachelle Palmer -
AI in 2025: Agents & The Rise of Evaluation-Driven Development | Galileo's Yash Sheth & Atindriyo Sanyal -
250,000 Lines of Code/Week: Inside an AMD VP's Agent-First Workflow | Anush Elangovan -
Low-Code AI: From Requirements to Apps in Minutes | OutSystems' Rodrigo Coutinho