The hard part is understanding what already exists

The Hard Part is Understanding What Already Exists

AI

The Hard Part is Understanding What Already Exists

3-minute read

Most conversations about AI in software engineering still focus on code generation: can it write a function, fix a bug? Useful, but not where AI is most valuable for experienced teams.

The bigger opportunity is using AI for the work that actually slows modernization down: understanding legacy systems, mapping dependencies, identifying risk, and helping teams move safely to modern platforms without regressions.

In real modernization, the hardest problem is understanding what already exists. Legacy systems carry years of undocumented business logic, old framework decisions, and integrations only a handful of people understand. AI-assisted workflows can help, but only as an accelerator with guardrails, not an autonomous developer.


The real use case: modernization at scale

A typical scenario: a monolithic app, part legacy frontend and part modern React, with a backend evolving toward micro-services. Before touching the code, the team needs answers: which modules are tightly coupled? Which business rules exist only in legacy services? Where are the regression risks?

Five-step flowchart for AI-assisted legacy modernization: 1) Architecture discovery – map the system with evidence, 2) Specialized agents, split work by expertise, 3) Compare options, weigh tradeoffs explicitly, 4) Reduce regression risk, turn flows into test scenarios, 5) Human review gates

Step 1: Use AI for architecture discovery, not just code generation

Instead of asking AI to “modernize the app,” ask it to inspect the repository and produce evidence-backed documentation; file paths, function names, configuration files, not just summaries. This turns AI into a discovery assistant, giving the team a structured architecture map instead of relying on tribal knowledge.

Step 2: Use specialized AI agents for different engineering concerns

Rather than one generic prompt for everything, divide the work into specialized agents; architecture, frontend, backend, security, testing, and a review agent that challenges the others. The value is not one perfect answer, it’s multiple expert perspectives the team can review and refine.

Step 3: Use AI to compare modernization options

AI is especially useful for weighing tradeoffs, for example, comparing a standalone app, a bundled import, or a Module Federation approach in a micro-frontend migration. AI can structure this into a decision record comparing complexity, regression risk, and maintainability – sharpening the architect’s starting point, not replacing it.

Step 4: Use AI to reduce regression risk

Legacy systems encode years of business behavior that often exists only in the code. AI can convert flows into testable scenarios, user journeys, edge cases, failure scenarios, that become QA scripts or acceptance criteria. This is one of AI’s highest-value uses in modernization: making sure the new feature behaves like the old one where it matters.

Step 5: Keep humans in control with review gates

AI should never make large changes without human review. The workflow: analyze, document, identify risks, propose options, generate test scenarios, let engineers review and correct; only then use AI to assist with code, followed by tests and human review. This keeps AI as an accelerator, not a decision-maker.

The future is not AI replacing experienced engineers. The future is experienced engineers using AI to increase the quality and speed of their thinking.

AI helps read faster, compare options faster, and document better – but judgment still belongs to the engineers, who understand architecture, business context, and production risk in ways AI cannot be accountable for.

The teams that benefit most are the ones building disciplined workflows around it; understanding before changing, documenting before migrating, testing before releasing, reviewing before trusting. That’s when AI becomes part of the modernization operating model, not just a productivity tool.

Author
Mohammad Abadi

Senior Software Engineer

More Insights

CME service journey: Tech Strategy, Engineering, and AI Enablement - Modernization and AI, two engines, one journey

OUR TECH PROFILE

Here’s a look at how we approach modernization and AI, the capabilities we bring to every project, and proof of impact through client success across industries.

Get our latest insights delivered straight to your inbox!

Get our latest insights delivered straight to your inbox!

Let’s Reimagine Together!

Take a leap into the future, harness the power of innovation and accelerate your transformation to unlock new opportunities.