iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
📖

re:Invent 2025: Modernizing COBOL Legacy Systems with Mphasis' Agentic AI Framework

に公開
2025/12/10

Introduction

By transcribing various overseas lectures into Japanese articles, we aim to make hidden, high-quality information more accessible. In this project, which proceeds under that concept, here is the presentation we are covering this time!

For transcription articles of re:Invent 2025, information is summarized in this Spreadsheet. Please check it as well.

📖re:Invent 2025: AWS re:Invent 2025 - Driving modernization using Mphasis’ Agentic AI framework (MAM219)

In this video, Anup Nair, CTO of Mphasis.ai, and Bharat, Senior Partner, introduce an Agentic AI framework for legacy modernization. Traditional COBOL mainframe systems create technical debt and hinder innovation. Mphasis has adopted an approach that does not simply convert code, but extracts intelligence from legacy systems and transforms it into data. They have built four autonomous and semi-autonomous agents—NeoZeta, NeoSaba, NeoRena, and NeoCrux—along with an enterprise knowledge graph called Ontosphere. NeoZeta extracts knowledge from code, NeoSaba generates user stories, NeoRena defines target architecture, and NeoCrux generates code. In the actual demo, they demonstrate converting post-trade processing COBOL code into a Java Flink architecture, achieving a significant performance improvement through GPU utilization. They have achieved results that drastically shorten the duration of a modernization program with 50 million lines of code from 7 years.

https://www.youtube.com/watch?v=6Udbsg4uPeU

  • Please note that this article was automatically generated while maintaining the content of the existing lecture to the maximum extent possible. Please be aware that there may be typos, omissions, or incorrect information.

Main Body

Thumbnail 0

Thumbnail 20

Challenges of Legacy Systems and Mphasis' Approach: Converting Intelligence into Data

My name is Anup Nair. I am the CTO of Mphasis.ai. And I am Bharat, a Senior Partner at Mphasis.ai. Today, we will talk about legacy modernization and Mphasis' Agentic AI framework for legacy modernization. That is the theme for today. As part of this presentation, we also have some exciting demos prepared, and I hope you will like them. If you have any questions, please feel free to reach out to us offline. I don't think we are taking questions here, but, well, that's fine, isn't it?

Thumbnail 70

Thumbnail 80

First, let me provide some background. Let's start by posing the problem. For the past 25 years, every CIO I have met has had this problem: the inability to innovate fast enough because touching legacy platforms is too risky. Are you all in a similar situation? In fact, one CIO told me: 'We have 49 core systems built on a COBOL mainframe, and if I touch one of them, I have to touch all 48 others as well.' This is the problem we decided to solve.

Thumbnail 100

Mphasis.ai has built various Agentic AI solutions to solve these problems. Mphasis has years of experience in building and modernizing legacy applications. I will talk about this, but more importantly, to really understand the origin of our solutions, and to really explain the solutions themselves, I want to delve a little deeper into the problem.

Thumbnail 140

Thumbnail 160

The problem with legacy systems is that companies have been tied to these systems for years. These systems have had code and business logic embedded within the code for years. Every time you want to do something, you need an engineer. This might be written in COBOL, it might be written in Java, or it might be Natural, Adabas, or even Assembler; it could be any kind of system, but you need a specialized engineer to handle this.

Thumbnail 180

Thumbnail 190

These types of engineers are not easy to find. They are not in the market. They are now out of the workforce. Therefore, you end up reinventing the wheel, continuously reinventing the wheel, and start generating massive amounts of technical debt. And now, any change is too costly, because you are doing the same thing in 10 places. And because you don't actually know what is happening, you keep building layer after layer after layer to solve the problem.

Thumbnail 210

Now, think about this and decide to put AI on top of it. Agentic AI, right? To drive innovation, you need to place agents, right? Whether that is an agent for insurance claims, an agent for underwriting, or whatever kind of agent you want to put on top, think about what happens. Because all these legacy systems are so deep and monolithic, it is extremely difficult for any agent to provide productivity. So, your Agentic AI objectives and goals are ruined just by having this. This is the reason modernization is necessary and why every innovation is so slow. Because you have to touch everything that is there.

Thumbnail 250

Thumbnail 270

At Mphasis, we thought about this and said: 'This is not just a technical modernization problem.' It is not just about modernizing COBOL to Java, Natural to Java, or C or C++ to something new. That is not the point. The goal should be to extract intelligence from legacy systems and convert it into data, rather than just modernizing code from A to B. That is exactly the approach we have taken.

Thumbnail 290

Overview of the Agentic AI Framework: Five Agents from NeoZeta to Ontosphere

Let me talk a little more about how we can solve this. But before that, how do we usually modernize? Do you all agree with this? First, relearn from the legacy system, then reimagine, then redesign, then recode, and then start execution. That is how it is done. Take COBOL and convert it to Java.

Thumbnail 320

And then you start managing it again. About 3 years later, it becomes legacy again. That is the usual way, right? So, what we did is a slightly different approach. We built autonomous and semi-autonomous agentic AI agents. We keep humans in the loop because if anyone says everything is 100% autonomous, they are joking. It is not like that.

So we took the documents and code and built an agent called NeoZeta. This agent actually reads everything and converts everything into knowledge that humans can understand. How do we do that? We focus on domain knowledge, domain knowledge, and realize it. Because we encoded them. We created a knowledge graph. And we thought: 'Now that we have a knowledge graph, how do we use this to create a new system? What should we do?' We generate user stories from there.

Thumbnail 380

So we created another agent. We call it NeoSaba. This agent takes in everything learned, converts it into user stories, and focuses on governance, focuses on compliance, and focuses on processes—business processes. SABA stands for Semi-Autonomous Business Analyst. We have business analysts work using this. And then, we convert everything created from here and return it to the knowledge graph.

Thumbnail 420

So what is the next step? Re-imagine how to re-architect. We created another agent and named it NeoRena. This is an agent that helps define the target state architecture by taking in everything learned. This target state architecture is customizable for customers and clients. And everything we create from here complies with enterprise standards. The reason it is customizable is because it must be ensured to comply with enterprise standards.

Thumbnail 460

Thumbnail 470

Once that is created, all architecture is complete. We take that and rewrite it. We created an agent called NeoCrux. This takes everything in, enables prompts, and starts writing code from there using coding agents available within the company. You continue to operation, right? Why wouldn't you? We built everything, deployed it to production, and tested it through Crux and others. Now, you deploy to production and will also run operations.

Thumbnail 490

Thumbnail 510

However, throughout all of this, we built connective tissue. We extracted intelligence from the whole and created an enterprise knowledge graph. This enterprise knowledge graph is not just a database. A knowledge graph is a database, but this is not just a database. It has meaning. Because it is connected to your domain, it has enterprise meaning. We call this Ontosphere. And we used a layer on top of that to orchestrate the whole thing, making it as autonomous as possible. This is Mphasis' approach to modernization.

Now, you will see that some of those are autonomous and some are semi-autonomous. As AI advances and context capability grows, this will become increasingly autonomous, essentially creating live intelligence for the enterprise. So, what you will see in the demo today: you will see NeoZeta extracting intelligence from code. You will see NeoSaba allowing business users to create user stories. You will see NeoRena and NeoCrux. And although we didn't have enough time for AI Ops, you will see a little bit of Ontosphere as well. In other words, you will see five things: Zeta, Saba, Rena, Crux, and Ontosphere.

Let's switch to the demo, and I will have Bharat explain the entire sequence of functions. First, let me talk about Ontosphere. Because this is the core place for information. All knowledge within the system, whether it is code or documents, will be ingested into the data on this Ontosphere.

Thumbnail 610

Thumbnail 620

Currently, we are using several domain ontologies built for the financial industry, insurance industry, and other industries. We have also introduced several engineering ontologies that function through agents. This will be the foundation where much of the modeling for the system is done.

Let's move on to the first agent, NeoZeta. As you can see, I have selected a program and selected capabilities. We took up a very complex capability called post-trade processing. Because there is a process here that stops at 4 o'clock. We have to process millions of trades and send files to federal authorities. We took this problem, and we thought the only way to solve it is to get a lot of intelligence from each of these processes coded in legacy COBOL. This is an example of the COBOL we are showing. And we reverse-engineer it and use agents to support modernization into a FIBO-based architecture. We will show how it runs on both CPU and GPU and how performance changes.

Thumbnail 710

Thumbnail 720

Thumbnail 730

Continuing the demo. We selected a capability. We have the ability to upload files that are documents or different assets. We uploaded COBOL copybooks, and as you can see, we also uploaded domain models here. These are the programs being displayed, and this is the domain model we uploaded using the Relearn agent. We are actually relearning the entire program or capability. As you can see, we actually selected a program called QUANTILES along with the copybooks, and we are reverse-engineering it. We have the ability to generate data dictionaries. Well, we haven't entered any information, but we are pulling a significant amount of information from the system and can see that we are starting to map it to actual functional attributes.

Thumbnail 740

Thumbnail 750

Thumbnail 760

We are also showing the documents being generated. The documents have a specific format. We generate a summary, and then for each business rule, we start providing a lot of data elements. As you can see. We provide the logic, inputs, affected data, and many other processing elements required when relearning specific code.

Thumbnail 800

Now, the most important part is how do we verify that the system did it very accurately? We have introduced something called 'LLM as a Judge,' which provides a confidence score for all reverse-engineered rules. As you can see, you can see that one of the rules has achieved an average coverage of 85 percent. For us, 85 percent is average. Anything above 95 percent counts as better. We have a human-in-the-loop interface here. You can make corrections here. The first 100,000 lines of code usually require such corrections, but for the subsequent 1 million lines of code, it becomes an automated method that provides 95 percent accuracy from the Relearn agent.

Thumbnail 840

Thumbnail 850

Thumbnail 860

We created a data dictionary, created business rules, and you also saw the verification of business rules. The third part is converting everything to Ontosphere. This is a knowledge graph, but let me demonstrate that. This is just showing you some attributes from LLM as a Judge. Now I will move to the knowledge graph. Actually, before going to the knowledge graph, information about the entire function is also generated. We have models that handle each program or the entire function. Usually, if you have a large job running that contains multiple programs and multiple processes, you would want to see a view like this from the perspective of extracting all intelligence.

Thumbnail 890

Thumbnail 900

Finally, the third step is to convert it into a knowledge graph. If you look, we have selected one of the reverse-engineered programs, and the associated domain model is displayed. You can double-click on functions, attributes, and information, and this is something SMEs can use for validation purposes. Basically, everything you saw earlier was the first agent. This is where information comes to the second agent.

Thumbnail 910

Thumbnail 920

All information is placed as part of a business process. This is exactly the same graph as you saw earlier. Now, it is displayed as a business workflow item, which you can leverage to view, and you can start re-imagining the application displayed in the top section. You can select business rules, combine multiple business rules, and create new rules. We provide such capabilities.

Thumbnail 930

Thumbnail 950

Thumbnail 960

What is displayed at the top is basically an overall agile remodeling of the application. It is completely reimagined. What we have is not a lift-and-shift model. We are defining it and supporting BSAs in defining epics, features, and user stories. And for every user story, quality evaluation of the user story is performed through INVEST scores, and there is a prompt mechanism that can generate acceptance criteria and generate more information. You see Gherkin output here. We are actually creating BDD at this point, so quality basically starts from this point. This is a prompt that can generate information in a format that can be further broken down into various rules if INVEST criteria are not met.

Thumbnail 990

Thumbnail 1000

Thumbnail 1020

Thumbnail 1030

Thumbnail 1040

So, due to time constraints, I will move to the third agent. From the perspective of the third agent, what is necessary here is to redesign or re-architect. Two things are needed: first is the playbook for steps to take from the perspective of reverse engineering, and second is the standards to use. I provided both as inputs, and I will show you how to do this. Whether it is a logical model or a physical model, sequence diagrams, or observability patterns to leverage, we have started providing all the information. Everything entered as a standard is drawn out by the third agent, Raina, the agent Anoop was talking about. Right.

Thumbnail 1050

Thumbnail 1080

Thumbnail 1090

Thumbnail 1100

The job of this specific agent is to build the overall context and prepare prompts for the next agent from the perspective of development. As you can see, it is generating now. I entered information that it needs to generate using the Java Flink model. Due to time constraints, I showed you the steps of how fast we can actually do it. We are trying to create a new design and have provided both the playbook and the standards to use. We are using data engineering architecture. We provided a standard playbook for Flink to generate the overall context. In other words, all information is generated almost from that perspective.

Thumbnail 1120

Next, let's move on to the fourth agent, the code generation agent. This agent takes all the information and generates code from the perspective of the Java Flink architecture. What you are looking at is an example of when this is executed on a GPU versus when it is executed on a CPU. You can see there is a big difference in terms of timing. When modeled against multiple trade sets, for example, if increased from 20,000 trades to 100,000 trades, we show how costs look from the CPU perspective versus the GPU perspective to help with job-by-job decision-making. This is one of the things I wanted to show you. Let's go back to the deck.

Thumbnail 1160

Thumbnail 1190

Everyone, this is what we have seen so far. In terms of results, we have achieved this. A typical modernization program with about 50 million lines of code takes about 7 years. We have achieved such progress. The infinity sign at the end, do you know what that is? It is the fact that all intelligence has moved to data and will remain with you forever. You will never have legacy again. That is what it means. This is how we summarized what makes us different from everyone else. There are many who migrate from A to B, but few who can extract intelligence and provide a state where you no longer have legacy. That is what we wanted to cover.

Thumbnail 1220

Our agents are actually running on Databricks. So, a fairly high level of scale-up is possible. We have always measured and monitored it from that perspective. Thank you very much. That was our content. We have run out of time. Thank you very much.


  • This article was automatically created using Amazon Bedrock while maintaining the information of the original video to the maximum extent possible.

Discussion