Each day, we get flooded with posts and news items about how AI is transforming the industry and how, if you’re missing the boat, you’ll be rendered useless. Or worse, without a job. Then, others react and say it’s all hype. So which is it? Hype or a real gamechanger? And what does that mean for those working in legacy code or with technical debt?
Is AI Just Hype?
In his great book “Facts and Fallacies of Software Engineering”, Robert L. Glass states:
“Hype is the plague on the house of software. Most software tool and technique improvements account for about a 5 to 35 percent increase in productivity and quality. But at one time or another, most of those same improvements have been claimed by someone to have “order of magnitude” benefits.”
But in my opinion AI is a breakthrough just like the internet was. Already, millions of people are using it, many of them daily. When something new comes along and that many people use it regularly that fast, you know it’s something of a shift.
What Does This Mean For Technical Debt?
The current state of AI is nothing short of a technical masterpiece. And even though it isn’t human, I think we should approach it (in part) as a human. Humans make mistakes, so AI can as well. For developers, this means we have a very good developer to help us, but we still need to be critical of any code that is produced. This is true regardless of who or what produced it. But that has been elaborated on by many authors.
Let’s take a look at what AI will mean for technical debt. On the one hand, for the code it produces and on the other hand, how it will handle existing projects.
AI As A Producer Of Technical Debt
We need to make an important distinction between what AI can do now, and what it will be able to do.
At the moment (Jan 2026), I think the code that AI agents produce is good enough. Ask it small tasks and it will do a good job. Larger tasks are still a bit hit-or-miss, in particular complex algorithms or logic. And it seems to produce longer pieces of code instead of splitting it up in readable, maintainable and coherent classes or functions.
So the output currently still requires some oversight of a senior developer and some tweaking. A bit like the output of a junior developer maybe. And that’s what I believe some senior developers miss. Just like a junior developer can become better over time, our AI agents can as well (let’s hope they do).
Also, I still see senior developers writing code that isn’t modular, or omitting tests. AI will only help them do the same faster. AI amplifies our current abilities.
If AI companies can train their models to produce better and better code, many of the objections people have currently will disappear. I believe that is possible, though I don’t know in which timeframe.
But it will never be perfect. Because technical debt can be found in many places or can emerge after some time. Schedule pressure has been identified as the main cause of technical debt in the past and you won’t be immune to that with or without the use of AI.
So inevitably, AI will produce technical debt. And it’s too early to tell how that will pan out. There currently aren’t any products older than 5 or 10 years that were built with AI. I’m sure that in the future, we’ll read about big refactoring projects of AI-built products where engineers say: “now we know how we should have and should not have used AI to build this.”
AI As A Solution To Technical Debt
Any software project ends up with technical debt. What’s important is how we deal with that.
AI offers an enormous potential here, because the mental model it can make of large pieces of spaghetti code will be larger than we can make in our heads. Which is why I believe AI and AI agents are a great tool to understand and refactor complex code.
But again, all is not perfect. Legacy systems contain a lot of history. A powerful AI assistant will be able to tell you what the code does and might even provide some valuable guesses as to why things were written that way. More so if it could check out the version control logs. But then again, that assumes the original developers wrote meaningful messages in the logs, which isn’t always the case.
Maintaining and modifying legacy systems often includes work that is still, at the moment, pure human work:
- Contacting the original developers to ask them about their reasoning.
- Running the system manually to test code paths that can’t be tested automatically.
- Convincing stakeholders that certain pieces of the system need to be modified.
- Thinking of brand new ideas to improve the lives of developers or end-users.
And so we come to a fact of software development that too many hypesters and vendors seem to conveniently forget. Software development is a very human and social undertaking, not just technical. In fact, the technical part is probably the easiest part. But that doesn’t sell as well.
Where Will AI Lead Us?
So let’s not get carried away with the newest hype. It will change the way we work, and you should definitely make sure you don’t miss the ride. But the train isn’t speeding up as fast as they make you think.
Here are some things I think will pan out in the future:
- Companies firing large amounts of people to replace them with AI will rehire them.
- But not all of them.
- AI will get better and become trusted companions of developers, enabling (but not guaranteeing) higher productivity (though not as much as vendors will claim).
Will it replace developers? No. But maybe the world will need less developers in the far future. That may not be a bad thing.
But in the near future, I’m pretty sure that sloppy developers will use AI to produce code that makes companies look for profiles like myself: people who don’t shy away from technical debt, complex code, and a lengthy refactoring project. For which I will use AI of course.