Beratung vereinbaren
|
Beratung vereinbaren

Why AI-powered code migration doesn't scale without agent-based systems

Portrait von Dennis Stolp, Partner Manager bei HMS
Dennis Stolp

Veröffentlicht am 25. Juni 2026

Why AI-Powered Code Migration Fails to Scale Without Agent Systems

Today, AI is remarkably adept at migrating individual code components. However, a single prompt is insufficient for large-scale systems. AI-powered code migration only becomes scalable when analysis, prioritization, code generation, testing, quality assurance, and governance work together within a controlled process.

For companies with complex, organically grown IT landscapes, this is the decisive factor. Modernization efforts often fail due to unclear dependencies, a lack of transparency, undefined priorities, inadequate testing, and the challenge of maintaining a traceable record of changes.

Executive Summary

AI-powered code migration can significantly accelerate modernization initiatives—provided it is viewed as more than just simple prompting and code translation.

Individual LLMs are well-suited for clearly defined tasks. However, in large-scale system landscapes, the absence of an overarching control mechanism leads to a loss of visibility regarding dependencies, priorities, testing, and approvals.

Agent systems help bridge this gap. They handle specialized tasks such as analysis, classification, code generation, test validation, error handling, and documentation.

The primary benefit lies in creating a migration process that is more predictable, verifiable, and controllable.

Regulated sectors—such as banking, insurance, pharmaceuticals, and public sector organizations—have a particular need for traceability and auditable systems. Every technical change must be explainable, verifiable, and documented.

Why Traditional Prompt Engineering Falls Short in Legacy Migrations

Simple prompts work well when the task is clearly defined: understanding a module, translating a class, creating a test file, or applying a known pattern.

In a large-scale migration, however, tasks are rarely isolated. Programs access shared data structures and a wide variety of heterogeneous data sources. Business logic is distributed across scripts, workflows, data flows, and manual processes. Added to this is the fact that documentation is typically incomplete or outdated.

Consequently, code cannot simply be translated from A to B. First, one must understand:

  • Which systems are business-critical?
  • Which applications have functional or technical interdependencies?
  • Which components can be migrated automatically?
  • Where is human assessment required?
  • Which tests verify that business logic is preserved?
  • Which changes must be documented for audit, governance, and change management purposes?

A single LLM can assist with these tasks. However, it cannot reliably manage them, as outputs can vary from user to user given the same input.

Migration is not a standard software engineering project.

In large-scale modernization initiatives, code translation itself is only part of the work. The greater effort lies in analysis, classification, prioritization, quality assurance, business alignment, and risk management.

This is particularly true in regulated industries. There, it is not enough for the result to be correct; the process used to achieve it must also be transparent and traceable. Companies must be able to explain what was changed, why it was changed, which risks were assessed, and who authorized the decision.

A "prompt-only" approach reaches its limits here.

Typical weaknesses include:

Weakness Impact on migration programs
Lack of orchestration Individual migration results do not fit together seamlessly from a technical or business perspective.
Lack of traceability hanges, decisions, and risks are difficult to substantiate for governance and audit purposes.
Lack of testing strategy It remains unclear whether the new solution is functionally equivalent.
Lack of prioritization Teams invest effort in less critical areas while key dependencies remain unaddressed.
Lack of scalability Manual management becomes a bottleneck itself when dealing with thousands of objects.
Lack of target architecture Without a modern, agent-compatible target architecture, the result is merely "old wine in new wineskins."

What sets agent systems apart

Agent systems do not view AI merely as a tool for isolated tasks. Instead, they operate within a managed workflow where various agents handle specialized tasks throughout the migration process.

One agent might analyze source code, while another classifies risks and dependencies. A third generates target code. Additional agents create tests, verify results, document decisions, or flag cases for human approval.

Naturally, agents do not fully automate the migration process. Their advantage lies in structuring repetitive tasks, making results verifiable, and enabling more targeted involvement from human experts.

This leads to a different approach to modernization for companies.

  • Migrations become more predictable because systems and artifacts are systematically classified.
  • Risks become apparent earlier because dependencies and testing gaps are documented.
  • Quality becomes easier to verify because testing and validation are part of the process.
  • Decisions and results are recorded in a traceable manner, making the entire project more controllable and transparent.
  • Subject matter experts are involved where human judgment is truly required.

Insights from Real-World Examples

Recent real-world examples demonstrate that LLM-assisted migrations within large software portfolios can succeed when supported by automation, testing, and human oversight.

Airbnb migrated approximately 3,500 React test files from Enzyme to React Testing Library. The manual effort involved was initially estimated at around 1.5 years; however, with the help of LLM-assisted automation, the migration was completed in six weeks.

In a research report, Google details 39 internal code migrations carried out over a twelve-month period, involving the submission of 595 code changes comprising 93,574 edits. A significant portion of these changes was generated by LLMs and subsequently verified within an automated workflow.

Slack describes its transition of more than 15,000 Enzyme test cases to React Testing Library. Here, too, success hinged not on a single prompt, but on a combination of traditional code analysis, automation, LLM support, and human oversight.

While these examples are significant, they must be viewed in the proper context. They demonstrate that LLMs can be effective for large-scale migrations when integrated into a controlled process.

The Business Value

The added value of AI-supported code migration lies in the ability to better manage the entire modernization initiative.

For companies, this means:

  • less manual routine work on repetitive transformation tasks
  • better predictability through systematic analysis and classification
  • reduced implementation risk thanks to automated testing and validation
  • greater transparency for governance, audit, and change management
  • more targeted use of internal business and IT resources

This can be the deciding factor in the success of a modernization program, especially given large and complex legacy landscapes. Without structure, AI can quickly become a tool that offers no added value within an already complex project.

What companies should consider before getting started

The most important question is whether the prerequisites for a scalable migration are in place.

Five points should be clarified before getting started:

  1. Which systems and applications are business-critical?
  2. Which dependencies must be understood prior to migration?
  3. Which target architecture is mandatory?
  4. Which testing strategy demonstrates functional equivalence?
  5. Which decisions need to be documented and approved?

A sensible starting point is to conduct an assessment before beginning the actual migration. An assessment analyzes the existing application landscape, source code complexity, dependencies, and business-critical processes to establish a solid foundation for modernization and migration.

The Role of HMS

HMS supports companies in the structured planning, technical implementation, and functional validation of complex migration projects. The focus is on the entire journey—from initial analysis to the validated target environment.

Particularly in regulated industries, an approach that combines technical efficiency with traceability is essential. This entails a clear assessment of the initial situation, a robust target state, appropriate automation, quality assurance, and documented decision-making.

 

It is the process that scales migration, not the prompt.

AI-supported code migration works particularly well when it is not viewed merely as an isolated task. While a language model can boost developer productivity, a managed process utilizing specialized agent systems can make a migration program more predictable, verifiable, and scalable.

For companies with extensive legacy landscapes, this makes all the difference.

The next logical step, therefore, is not a broad AI rollout, but rather a structured assessment aimed at establishing a clear baseline—including representative artifacts, a defined target architecture, and measurable quality criteria—upon which a structured migration can be built, true to the motto:

Better to do it right once than quickly three times.

Are you facing a migration and want to get off to a solid start?

You can find more information about our approach in our Code2X white paper.

Request Download
Name
Information on data processing can be found in our Privacy Policy.
=

Sources and further reading

FAQ: AI-Powered Code Migration


AI-powered code migration uses large language models and automation to transfer existing code, scripts, tests, or data processing logic to a new technological environment.
Agent systems handle specialized tasks such as analysis, classification, code generation, test validation, error handling, and documentation. This results in a structured migration process rather than isolated AI outputs.
It is particularly relevant for companies with extensive legacy landscapes, complex data flows, and stringent traceability requirements. These include banks, insurance companies, pharmaceutical firms, public sector organizations, and large industrial enterprises.
It is particularly relevant for companies with extensive legacy landscapes, complex data flows, and stringent traceability requirements. These include banks, insurance companies, pharmaceutical firms, public sector organizations, and large industrial enterprises.
Dennis Stolp
Partner Manager

Fragen zum Artikel?

Wir geben gerne Antworten.
Kontaktieren Sie uns
© 2024 – 2026 HMS Analytical Software
chevron-down