Government organisations could significantly reduce the time needed to understand and modernise legacy IT systems by using AI, according to findings from a series of pilots led by the Government Digital Service (GDS).

The pilots found that activities previously estimated to take weeks could be completed in hours, while AI-assisted testing helped engineers make changes to ageing applications with greater confidence.
Working with organisations including the Student Loans Company (SLC), UK Hydrographic Office (UKHO) and Met Office, alongside delivery partner Kainos, GDS explored how AI could help technical teams analyse unfamiliar systems, identify dependencies and plan modernisation projects.
The findings suggest AI could help address one of the biggest obstacles to tackling legacy technology across government: the time and expertise required simply to understand how existing systems work.
In a blog post, Joe Ward, head of the Firmer Foundations Strategy & Policy Team, and Raj Ram, principal technologist at GDS, explained that incomplete documentation, outdated technologies and knowledge concentrated among a small number of specialists can make assessing legacy systems a lengthy and expensive exercise.
However, the pilots suggest AI could substantially reduce that initial effort, allowing organisations to move more quickly towards planning and delivering improvements.
Five weeks of analysis completed in less than a day
The Student Loans Company used AI-assisted techniques to analyse 33 applications written in the Clojure programming language. The work, which would traditionally have taken an estimated five weeks, was completed in less than a day.
GDS said the analysis provided a clearer understanding of the applications and their dependencies, helping the organisation plan migration activities and work towards supported versions of Java.
If you liked this content…
A separate pilot at the UK Hydrographic Office focused on a 20-year-old desktop application that lacked automated testing. Using AI-assisted techniques, engineers generated automated tests that increased test coverage from zero to 96 percent.
The time required for regression testing, which checks whether software changes have affected existing functionality, also fell dramatically. A process previously requiring approximately 15 days of manual effort was reduced to around 30 minutes.
Tackling the barriers to legacy modernisation
The findings are particularly relevant to government departments and agencies managing large, interconnected technology estates, where modernisation projects can be delayed before development work even begins. Understanding how applications interact, identifying technical dependencies and establishing what can safely be changed often requires considerable specialist effort.
GDS said the strongest finding from the pilots was AI’s ability to accelerate this discovery and assessment phase. Faster analysis could help organisations identify risks earlier, improve technical documentation and make better-informed decisions about where to invest in modernisation.
It could also make projects that previously appeared too complex or resource-intensive more achievable.
However, GDS cautioned that the pilots involved different systems and technical environments, meaning the results should not be assumed to apply equally across all government legacy estates.
The work also highlighted the importance of retaining human expertise and established engineering practices. Successful outcomes depended on organisations having clear ownership of their systems, access to relevant technical information, experienced teams and appropriate delivery processes.
Rather than replacing these foundations, AI amplified their effectiveness. Equally, GDS warned that without appropriate governance and controls, the technology could amplify existing weaknesses and accelerate poor decision-making.







