Artificial Intelligence1 min read

Legacy Modernization with LLMs: is a large translation consistent with itself?

By · Published by Everything Blog

In short

To assess automated modernization reliability, an experiment employed Claude Code with Opus 5.5 alongside a dependency plan to translate legacy RPG, DDS, and CL systems into Java. The resulting 5,737 files demonstrated strong structural uniformity, characterized by standardized naming conventions and shared runtime abstractions. Notably, the artificial intelligence agent authored deterministic generators to ensure 1,353 program classes accessed databases through an identical interface. Despite this coherence, the process exhibited an absence of continuous refactoring across the phased pipeline.

Key points

  • Multi-phase artificial intelligence workflows can successfully maintain architectural and…: Multi-phase artificial intelligence workflows can successfully maintain architectural and naming consistency across massive enterprise code conversions.
  • Incorporating deterministic code generators within the model's workflow helps enforce uni…: Incorporating deterministic code generators within the model's workflow helps enforce uniform patterns across large subsets of software.
  • Sequential agent pipelines risk accumulating technical debt because 97.9 percent of the g…: Sequential agent pipelines risk accumulating technical debt because 97.9 percent of the generated files were never revisited or refactored.

Sources checked by our analysis pipeline: 1

When we translate 600,000 lines of RPG, DDS, and CL into more than one million lines of Java code using LLMs, we want to know whether the resulting Java application will be consistent or it will look like a collection of incoherent code. We answer this question in this article.

We describe the experiment setup in article 1. We have seen that an application of this size does not fit in one agent session, so we divided the work into 49 phases following a plan of the dependencies, and each phase was a separate session that could only see the files already written by the previous ones.

This raises a question that does not exist for a small application: are all those sessions writing the same kind of code? In article 2 we saw that three independent translations of the same code take different design decisions, and 49 sessions working on the same codebase are, in a way, 49 translators who never talk to each other. Is this an additional issue to consider? To answer our question, we measured the…

Artificial Intelligence