Rescripta article
Why Legacy Systems need to be rescripted by AI
AI is changing the economics of modernising legacy software. Established systems preserve valuable business knowledge, but they can also contain hidden defects, inefficient code and weaknesses that routine testing fails to reveal. Drawing on documented examples of AI improving production software and uncovering serious vulnerabilities, this article makes the case for controlled AI rescripting: preserving essential business rules, data and workflows while progressively improving the underlying code. The approach combines AI analysis, implementation and expanded testing with human approval and engineering review. Each change must demonstrate its value through correctness, security and performance checks. RESCRIPTA.AI facilitates this process, enabling organisations to start with one component and modernise incrementally while retaining control over every change.
Legacy software contains years of valuable business knowledge. It can also contain years of shortcuts, hidden defects and inefficient code. Until recently, reviewing and improving all of it was often too expensive.
AI is changing that calculation—and the standard of software quality businesses should accept.
The evidence is already here
Leading AI systems now solve about 95% of the problems in Epoch AI’s FrontierMath tiers 1–3, a demanding mathematical benchmark. More directly relevant to businesses, AI is already improving established software.
Google’s AlphaEvolve made a key calculation in Gemini’s training software 23% faster, reducing overall training time by 1%. Google also reports that it shortened optimisation work from weeks of expert effort to days of automated experiments.
Mozilla provides the security example. AI-assisted analysis uncovered 22 security vulnerabilities in Firefox, including 14 rated high severity, despite decades of testing and security review. Some involved logic errors that existing automated testing had missed.
These examples demonstrate that AI can find both improvements and weaknesses in software already maintained by highly capable engineering teams. That gives business leaders a compelling reason to examine their own systems.
“It still works” is an inadequate assurance
Microsoft’s November 2026 Outlook disruption illustrates the danger. A defect had been deployed worldwide for more than three months before particular operating conditions triggered widespread failures. Microsoft’s load tests had used older hardware with fewer processor cores, making the problem less likely to appear than on newer production machines.
Successful operation had concealed a serious weakness.
AI can help create additional tests, investigate overlooked paths and repeat that work around the clock. With sufficient computing resources, multiple agents can work in parallel. This expands how much scrutiny a development team can apply.
Rescript the implementation. Preserve the business knowledge.
Rescripting means using AI to examine existing software and progressively replace weak implementations while preserving the business rules, data and workflows the company depends on.
Each replacement should earn its place through evidence: correct results, stronger security checks, realistic operating tests and measurable performance. AI-generated code needs that scrutiny too.
The practical approach is to start with one component, establish its required behaviour, approve a plan, and let AI implement and test the changes. Engineers review each change before it reaches production.
Controlled AI rescripting
Preserve knowledge, improve implementation
Preserve
Existing system
Business rules, data and workflows
AI
Analyse and plan
Find weaknesses; propose changes
Human approval
Approve the plan
Agree the scope and required results
AI
Rewrite and test
Work on an isolated branch
Human review
Check the evidence
Behaviour, security and performance
Approved changes
Release one component
Keep business behaviour intact
The business case is clear: once AI can expose overlooked defects and deliver measurable improvements, leaving legacy systems unexamined becomes increasingly difficult to justify. Controlled rescripting provides a way to act on those findings.
RESCRIPTA.AI supports this process through approved plans, isolated development branches, engineer review and traceable changes and costs.
Start with one system. Preserve what makes it valuable. Use AI to improve the code it runs on.