2 min Devops

Pega Surveyor uses AI agents to analyze outdated legacy code

Pega Surveyor uses AI agents to analyze outdated legacy code

Pega Surveyor deploys AI agents, built on AWS Transform, to analyze outdated code. It sends insights directly to Pega Blueprint and Infinity Studio, where teams design and build new applications.

Many organizations still run on systems whose original architects have long since left. The code is difficult to decipher and risky to modify. According to Pega, this code is also becoming increasingly easy for attackers, who use AI themselves, to exploit. A “lift-and-shift” approach, the company says, merely moves the same problems to a different platform. And what about vibe coding? According to Pega, that primarily creates new legacy debt.

Surveyor is the starting point of a broader workflow. The analysis goes directly to Pega Blueprint, where design agents create a new application design that users can immediately test as a prototype. Pega Infinity Studio then builds, configures, and deploys the application.

From COBOL to Lotus Notes

The agents focus on a wide range of environments. Think of extracting processes from COBOL on mainframes, uncovering years of ABAP customizations in SAP ECC to facilitate a clean-core S/4HANA migration, or phasing out in-house Lotus Notes, Java, and .NET applications, including their databases. In doing so, they map out business logic, process flows, dependencies, and data structures. The framework is open, allowing agents for proprietary or niche technologies to be added later.

But it doesn’t stop there. Surveyor also searches for duplicate functionality and unusual edge cases that have gone unnoticed and are scattered across different systems. It flags these as candidates for consolidation. In addition, Pega records a complete audit trail, from the modernized application back to the original source code. This allows IT teams to see which rules and processes were included, what was omitted, and why. This should also help with meeting compliance requirements.

Pega Surveyor is now available to early adopters as part of legacy transformation projects with Pega and its partners. General availability is scheduled for Q1 2027.

Tip: From token maxxing to tokenomics: Pega keeps AI in check