
How to Implement AI to Modernize Your Systems

Key Takeaways
AI makes discovery cheaper and legacy modernization viable for more workloads, but path choice, readiness, and governance still decide whether a program succeeds.
- Choose the modernization path before the tool. AI makes Refactor viable for projects that would previously have forced a Rebuild, because it takes over the code archaeology.
- When code is undocumented and the original team has left, run AI-assisted discovery first and decide the path only after the estate is mapped.
- Readiness gates the budget. If more than three technical or organizational checks return "no", the first project is foundation work such as data classification, access control, or a test environment.
- Arbisoft's planning ranges run from $25,000 for a contained pilot to $50M or more for an enterprise transformation, depending on scope, team size, and regulatory load.
- AI tooling and model usage is a small share of mid-to-large program budgets, at 5 to 15%, while engineering time remains the largest line at 40 to 55%.
- Ship a thin vertical slice with evaluation built in from day one, using offline datasets and a working non-AI path behind a feature flag.
- Programs fail in five recurring ways, including data gaps found mid-build and late security review. Several fixes start in week one, such as a real data audit and early security involvement.
Before funding a pilot, pick one workflow, write a one-page scorecard, and run the readiness checks against it.
Why AI legacy modernization is urgent in 2026
Teams running legacy systems face two linked decisions: which modernization path to take, and where AI fits in it. In a February 2026 blog post, Anthropic said Claude Code can automate the exploration and analysis phases that consume most of the effort in COBOL modernization.
AI makes discovery cheaper, so modernization is now economically possible for more workloads. Path choice and governance still decide whether a program succeeds, and AI adds its own failure modes, such as prompt injection, retrieval leaks, and hallucinated business logic.
This guide helps you evaluate the path, the implementation steps, the tools, the cost, and the governance a program needs.
What "AI modernization" actually means (and what it doesn't)
AI-powered system modernization is the use of AI tools, including LLMs, coding copilots, retrieval systems, and agents, to speed up moving legacy applications toward modern, cloud-ready architectures. Legacy components are replaced incrementally, and each replaced piece is validated against the old behavior before the next one moves. In most 2026 projects, AI handles code analysis, documentation, translation, test generation, and migration scaffolding. Humans make architecture decisions, validate business rules, and own anything that touches compliance.
AI changes the economics of the phases that used to be expensive. Reconstructing business rules and writing tests now cost less than they did. Architecture decisions remain a judgment call, and a poor one can still sink a project.
Why waiting another year to modernize no longer works
Three drivers make the case for starting now.
The talent pool is shrinking. Anthropic notes that the developers who built these systems have largely retired and taken institutional knowledge with them. That gap sits under critical infrastructure: according to Anthropic, COBOL handles an estimated 95% of ATM transactions in the US.
AI changed the cost curve for the expensive parts. Thoughtworks (2026) wrote, "In practice, modernization is rarely about preserving the past in a new syntax." AI handles the translation, and humans handle the alignment with what the business needs today.
Regulatory pressure is rising. Gartner's top strategic predictions for 2026, published in 2025, forecast that by the end of 2026, "death by AI" legal claims will exceed 2,000 due to insufficient AI risk guardrails. The EU AI Act became applicable on 2 August 2026, with some exceptions, and since December 2023 the SEC's cybersecurity disclosure rules have required US public companies to report a material cybersecurity incident on Form 8-K within four business days of determining it is material. When a modernized system uses AI anywhere near customer decisions, deferring governance is hard to defend.
Is your organization ready for AI modernization?
Many organizations are not ready yet, and "not yet" is a valid answer to "should we modernize with AI?" Pilots often fail because the foundations are missing.
Before green-lighting a budget, run the situation through the checks below. When more than three items return "no," the first project is building the foundation that AI modernization needs.
Technical readiness checks
- Can the team access legacy code and data without a ticket that takes three weeks to approve?
- Does at least one integration surface exist (APIs, message queues, database replicas) that AI tooling can route through safely?
- Is there a non-production environment that mirrors production closely enough to test against?
- Is the data classified so the team knows which fields are PII, PHI or regulated?
- Can role-based access be enforced at the data layer?
Organizational readiness checks
- Is there a named owner for this program with authority to say no?
- Have security and privacy been invited in from day one?
- Is there a baseline measurement (current cycle time, error rate, cost) that improvement can be proven against?
- Can the team handle a pilot that doesn't work without political fallout?
- Is the organization prepared to pay for governance tooling (evaluation, observability, guardrails) that won't produce a single user-visible feature?
How to choose a modernization path before picking a tool
The 7 R's of application modernization have been around for over a decade. They still apply in the age of AI. What changed is which R is economically viable for a given situation. Refactoring used to require months of human code archaeology. Now AI can do the archaeology, so Refactor is available to projects that would have forced a Rebuild two years ago.
Here's a quick reference for what each option means:
The R | What it means | When it fits |
| Encapsulate | Wrap legacy functionality in APIs without touching the inside. | New capabilities are needed around a stable core. |
| Rehost (lift-and-shift) | Move the application as-is to new infrastructure, usually cloud. | Hardware end-of-life pressure with no appetite for code changes. Quick payback, modest long-term value. |
| Replatform | Move to a new runtime or container with minimal code change. | Cloud-native operational benefits are wanted without a rewrite. Sweet spot for many mid-market projects. |
| Refactor | Restructure the code without changing its behavior. | Technical debt is strangling the system, but the logic is still correct. |
| Rearchitect | Redesign the architecture, typically monolith to microservices. | The original design has been outgrown. Requires strong engineering maturity. |
| Rebuild | Rewrite from scratch, preserving specs. | The code is genuinely unsalvageable. The most expensive and riskiest R. |
| Replace | Throw it out, buy or build something new. | A better commercial option exists and switching cost is bearable. |
Most real projects end up using two or three R's together. A single bank might Encapsulate its mainframe core, Replatform its middleware, and Refactor the customer-facing apps all at once.
Decision matrix for choosing the right R
There's no algorithm that spits out the right R. These are the signals that narrow the field fast.
If this is true... | Lean toward... | Why |
| Core logic is correct, code is a mess | Refactor with AI assist | 2026's cheapest path for good logic trapped in bad code |
| Hardware is end-of-life, budget is tight | Rehost then revisit | Buys time, defers the hard work |
| Multiple apps need the same capability | Encapsulate first, then Rearchitect | API layer becomes the stepping stone |
| COBOL, talent retiring, regulator watching | Refactor to Java or C# with AI | AI-assisted translation with human validation of behavior |
| The business wants features the current system can't support | Rearchitect in parallel | The Strangler Fig pattern: keep the old running while the new grows |
| A vendor has solved the problem | Replace and redirect engineering | Don't build what can be bought |
| Code is undocumented, team has left | AI-assisted discovery first, decision after | Decide the R after the AI has mapped the estate |
The last row is the one most teams miss. It's hard to pick the right modernization path for a system that hasn't been understood. In 2026, AI-assisted discovery is fast enough and cheap enough that it should almost always come first.
The 8-step implementation playbook
1. Define outcomes and guardrails before touching a model
Pick one workflow and write a one-page scorecard covering baseline metrics, numeric targets, unacceptable failure modes, latency and cost ceilings with alerting, and escalation paths that separate AI suggestions from human decisions. The scorecard should exist before model selection turns into a political fight.
2. Map the system, the data and the actual work
Org charts rarely show where work happens, which is often in shadow spreadsheets, Slack DMs, and a senior engineer's head. Build a workflow map with exception paths, a system map with owners, and data lineage for each key field. Clarify the system of record (where the truth lives) versus the system of action (where people work). Skipping this produces a bug that reads correctly on every screen and is wrong in the database.
3. Choose the right first use case
Feasibility comes down to data access, integration surface, risk profile, and evaluability. Good first picks include RAG-based Q&A, grounded summarization, classification, developer assistance, and assistive drafting with human approval. High-stakes automated decisions and regulator-facing outputs with immature evaluation are poor first choices. A quick test: if the team cannot build a golden set of 50 correct examples in under a week, the use case is a research project dressed up as a product.
4. Build the data and access foundations
RAG ingestion must clean content, attach metadata, and preserve lineage. Stale retrieval is worse than none because it looks authoritative. Access control belongs at retrieval time, because UI-level controls alone will leak. Minimize PII in prompts, redact where possible, and isolate AI services on the network.
5. Decide the architecture pattern
Three patterns, chosen by how many teams will use the capability:
Pattern | Best when | Main risks |
| Embedded AI | One app owns the workflow | Tight coupling |
| Sidecar service | Several apps share capability | Network hops, API discipline |
| Shared platform | Multiple teams over 12+ months | Upfront cost, multi-tenancy |
Start with Embedded or Sidecar and earn the way to a platform. Our view is that a platform built first absorbs budget before any user-facing feature ships. RAG deserves treatment as its own subsystem with dedicated SLOs, evaluation, and a threat model.
6. Ship a thin vertical slice
A thin vertical slice runs end to end through every layer: UI, business logic, data access, AI service, and back to the user. It surfaces real risks before the architecture gets locked in. Evaluation belongs in the slice from day one, with offline datasets, regression across prompts and model versions, and human review for ambiguous outputs. Keep a working non-AI path behind a feature flag.
7. Productionize with LLMOps and MLOps discipline
Prompts, retrieval indexes, and model versions are first-class artifacts that get versioned, reviewed, and deployed like application code. Run CI/CD with staged environments and monitor latency, error rates, cost, and quality. Canary releases and shadow mode reduce the risk of model changes, and red teaming should cover prompt injection, jailbreaks, and data extraction.
8. Roll out, drive adoption and scale
Phased rollout cuts organizational risk. A narrow cohort goes first, scope expands when metrics hold steady, and governance gates are tied to artifacts rather than opinions. Adoption is the usual bottleneck, because trust, workflow mismatch, and UI friction kill more features than model quality does. Shipping the AI into tools people already use helps. Track cycle time, rework, error rates, and escalations against a baseline.
AI modernization tools for legacy code in 2026
The table compares each tool's strengths, weaknesses, and fit for legacy code.
Tool | Best at | Mainframe / COBOL? | On-prem / air-gapped | Enterprise compliance | Rough price tier |
GitHub Copilot | Broad developer productivity, IDE-embedded | Limited, stronger on Java than on COBOL | No (cloud) | SOC 2 Type 2 and ISO/IEC 27001 cover Copilot Business and Enterprise (GitHub, 2024) | Individual plans $10 to $100/month (as of October 2026); Business and Enterprise via sales |
Claude Code (Anthropic) | Large-context analysis, code exploration, COBOL discovery | Yes, for COBOL exploration and analysis (Anthropic, February 2026) | API-based | Check current Anthropic compliance documentation | Usage-based |
Amazon Q Developer | AWS-native modernization, Java upgrades | Moderate, stronger on Java than on mainframe | No (AWS cloud) | AWS compliance inheritance | Free tier; Pro $19/user/month |
IBM watsonx Code Assistant for Z | COBOL to Java transformation for IBM Z | Yes, built for IBM Z | Check with IBM | IBM compliance portfolio | Enterprise pricing |
Cursor | Multi-file refactoring, large-scale changes | Weak on mainframe | No (cloud) | SOC 2 Type II attestation, report on request (Cursor, as of October 2026) | Individual plans $8 to $200/month; Teams from $30/user/month (as of October 2026) |
Tabnine | Privacy-sensitive environments, on-prem deployment | Moderate | Yes (VPC, on-premises or fully air-gapped) | SOC 2, ISO/IEC 27001, ISO 9001 and GDPR listed on its trust center (as of October 2026) | Enterprise pricing |
TCS MasterCraft / TransformPlus | Large-scale COBOL modernization with services wrap | Yes | Check with TCS | Check with TCS | Project-based |
The right tool is usually two or three tools. Successful enterprise programs pair a discovery-focused tool (Claude Code, watsonx Code Assistant for Z) with an IDE-embedded coding assistant (Copilot, Cursor, Tabnine) and a testing-focused tool in the CI/CD pipeline.
Build versus buy is a real choice. When IP is sensitive enough or the domain knowledge niche enough, fine-tuning an open-weight model on an internal codebase can be worth the engineering investment, though most organizations should not do this in year one.
How much does AI legacy modernization cost in 2026?
AI legacy modernization costs anywhere from $25,000 for a contained pilot to $50M or more for an enterprise transformation, based on Arbisoft's planning ranges. Scope, team size, and regulatory load decide where a program lands.
SMB contained pilot
In our experience, a contained pilot costs $25,000 to $75,000. It covers one workflow and one team using off-the-shelf tooling, and it typically takes 8 to 12 weeks to reach a working thin vertical slice. Most of the budget goes to engineering hours, since tool licensing is cheap at this scale and cloud costs are small. Good candidates include a support-team knowledge assistant or an internal Q&A tool over a documentation corpus.
Mid-market modernization program
In our experience, a mid-market program runs $200,000 to $1.2M per year. It covers multiple workflows over 6 to 18 months, with 2 to 5 dedicated engineers, a product manager, and part-time security and data owners. Spending shifts toward governance tooling such as evaluation platforms, observability, vector databases, and prompt versioning, and cloud costs become visible. Expect 30 to 40% of the budget to go to governance, testing, and operations rather than model usage.
Enterprise transformation
Enterprise transformations sit at the top of the cost range. These programs involve multiple teams and domains, a regulated environment, and mainframe or near-mainframe workloads. McKinsey's "Seizing the agentic AI advantage" (2025) describes the outer edge: a large bank whose legacy core system of 400 pieces of software was a modernization budgeted at more than $600 million, with human workers moved into supervisory roles overseeing squads of AI agents.
The main cost lines to budget for in mid-to-large programs:
- Engineering time, usually the biggest line, because AI makes engineers faster without making them free.
- Governance, evaluation and observability, which are easy to underbudget because they are spread across teams.
- Cloud infrastructure, mostly on hybrid architectures during the transition.
- AI tooling and model usage.
- Change management, training and communication, which decide whether people use the new system.
For ROI timelines, an IDC study sponsored by Microsoft (2025) found that organizations using agentic AI report a 2.3x ROI, with average payback of about 13 months. That figure is an average, and in our experience governance and adoption discipline decide which side of it a program lands on.
Treat percentage time-reduction figures in vendor case studies with some skepticism. They are often accurate for the narrow phase being measured, such as code translation, and misleading when applied to the whole project. End-to-end savings are smaller than single-phase figures because validation, integration, testing, and change management still take human time.
SMB versus enterprise playbooks for AI modernization
Most content on this topic reads like it was written for a Fortune 500 CIO. For a 40-person or 300-person company, advice to "build an AI center of excellence" and "appoint an AI Ethics Officer" is unrealistic and points the team toward the wrong strategy.
For SMBs (under ~500 employees)
- Use off-the-shelf tools such as GitHub Copilot, Claude via API, and a standard RAG framework. Platforms that won't get reused are a poor investment at this size.
- Pick one workflow with clear ROI, such as support automation, document intelligence, developer productivity, or sales research.
- In our experience, a first pilot needs $25K to $75K. Without that budget, look for a workflow that will pay for itself in 90 days.
- Keep the governance document to one page covering classifications, access rules, and escalation paths. A short document that people follow is better than a long one they ignore.
For enterprises (1,000+ employees, regulated, global)
- Centralize the platform and decentralize the use cases. Retrieval, evaluation, and observability are shared, and domain teams ship their own features on top.
- Get legal and compliance into the first design review. With the "death by AI" legal claims forecast covered above, retroactive compliance is no longer a viable strategy.
- Map to NIST AI RMF and the relevant EU AI Act risk category; the Act became applicable on 2 August 2026, with some exceptions. An internal framework invented from scratch rarely holds up under audit.
- Expect agentic AI to force operating-model change. Roles shift as AI embeds across workflows, so HR needs to be part of the plan.
How AI modernization looks in banking and healthcare
Banking and financial services
The COBOL talent gap is sharpest here. CLPS announced an AI-driven COBOL-to-Java migration solution in March 2026 and reports completing a proof of concept for an unnamed major bank in Hong Kong. The pattern that works uses AI for discovery and translation, and humans for behavioral equivalence validation and regulatory reporting. The validation step is never optional, because a credit system that produces "mostly correct" answers is a credit system that produces fines.
Healthcare
EHR modernization carries a regulatory overlay that changes the calculus, covering HIPAA audit trails, PHI handling, and interoperability standards. In our experience, healthcare pilots stall when evaluation data cannot leave the compliant environment, so the evaluation setup has to be designed in from week one.
Retail and logistics
Retail and logistics have less regulation and more room to experiment. Common work includes demand forecasting, dynamic pricing, and inventory AI over legacy ERP systems, often starting as RAG over product catalogs and operational documents and expanding as trust builds.
A good first project is a high-volume, low-stakes task the team already struggles with, such as product category classification, before customer-facing work like personalization.
Manufacturing
Manufacturing modernization usually covers PLC modernization, predictive maintenance, and shop-floor documentation over legacy systems. Asset lifecycles measured in decades make this space distinctive, so AI work often starts with documenting existing control logic and connecting legacy equipment data to maintenance models before any control code changes.
The failure modes that sink AI modernization programs
Failed modernization programs tend to follow five recurring patterns, and each one has a fix.
1. Teams discover data gaps mid-build because they committed to a timeline based on a data estate that doesn't exist. Fix: run a real data audit in week one, sample actual production data, and ask the security team what they would block before designing around it.
2. Fragile legacy integrations break under load, so the pilot works and production doesn't. Fix: load-test the integration surface before the AI feature ships, and assume the legacy system will behave unpredictably under 10x traffic.
3. Evaluation is missing or only for show, which makes value unprovable and regressions invisible. Fix: build a golden set of at least 50 examples before building the feature, and refresh it monthly.
4. Security review starts too late, and launch gets blocked in month five when someone finally asks about data residency. Fix: invite security in week one.
5. The feature fits the workflow poorly, so nobody uses it. Fix: spend real time with users before designing the AI behavior.
What "modernized" actually looks like in production
The best sign of a successful AI modernization is a boring system: one that is observable, auditable, and recoverable. The drama of the pilot has been replaced by dashboards, runbooks, and a change process that treats prompts like production code.
Artifacts to show on demand
- Architecture diagrams showing where the AI service sits relative to legacy and modern components
- Data lineage and RAG flow diagrams, including ingestion, indexing, and retrieval boundaries
- Evaluation reports with datasets, rubrics, thresholds, results, and regression history
- Dashboards for latency, error rates, cost, and quality indicators
- Runbooks for AI incidents, including rollback steps and stakeholder communication
Production signals to track
- SLO attainment, including error budgets for the AI service
- Quality indicators: evaluation scores, override rates, escalation frequency, safety filter trigger rates
- Retrieval health: hit rates, retrieval latency, drift in corpus composition
- Change traceability: what changed (prompt, model, index, data), when, who approved it
Before expanding scope, verify four things work: evaluation is real and repeatable, security boundaries hold end-to-end (including at retrieval time), monitoring catches regressions quickly, and rollback has been practiced under load.
Frequently asked questions
How long does it take to modernize a legacy system with AI?
Based on our planning ranges, an SMB pilot ships a working thin vertical slice in 8 to 12 weeks. Mid-market programs run 6 to 18 months across multiple workflows. Enterprise transformations are multi-year programs because they span several domains, regulated environments, and mainframe workloads. AI-assisted discovery shortens the early phases, while validation and adoption set the overall pace.
Can AI translate COBOL to Java accurately?
AI handles discovery, documentation, and first-pass translation well. IBM positions watsonx Code Assistant for Z as using generative AI to accelerate COBOL to Java transformations, and CLPS reports a COBOL-to-Java proof of concept for a Hong Kong bank. Behavioral equivalence testing, validation, and mainframe-specific non-functional requirements still need experienced engineers.
How do regulated industries audit AI-generated code?
Teams version prompts, model versions, and retrieval indexes like production code. Every AI-assisted change and its approval gets logged, regulated workflows keep a human in the loop, and controls map to NIST AI RMF or the EU AI Act. Because the requirements are legal as well as technical, compliance and legal specialists should review the setup.
How do AI agents fit into legacy modernization?
Agents take on the repetitive work of documenting legacy code, writing new code, reviewing changes, and generating tests, and humans supervise them. In the bank case McKinsey described, human workers moved into supervisory roles overseeing squads of AI agents. The supervisors decide architecture, validate business rules, and approve anything that reaches production.
Should we fine-tune our own model for modernization?
Usually not in the first year. Off-the-shelf models with retrieval over the codebase cover most discovery and translation work at lower cost. Fine-tuning an open-weight model on an internal codebase becomes worth the engineering investment when the IP is sensitive enough, or the domain knowledge niche enough, that general models fall short.
Where to start with AI modernization this week
Before next Monday, pick a single workflow, write the one-page outcome scorecard, and produce a first-draft system, data, and access map for that workflow. These three artifacts say more about readiness than any vendor demo, and they cost nothing but time.
Then run the readiness checks against that workflow. A pilot is worth funding only if they mostly pass. If more than three return "no", the first project is foundation work, such as data classification, access control, or a test environment.
For a second opinion on the scorecard and map, book a modernization readiness conversation with Arbisoft. We can help choose the right path and scope the first slice of legacy application modernization.
...Loading Related Blogs









