Highlight Report

Stop patching legacy with AI, start regenerating or face code collapse

AI copilots ramp up productivity in code creation but unleash a new layer of technical debt that threatens to spiral exponentially. CTOs must be clear about this threat to their firms’ large code bases or end up in the hot seat when the house of cards comes tumbling down. To avoid the business resilience risk of code collapse, CTOs must lead developers to treat prompts as their source of truth in a new model of AI-led development—placing regeneration, rather than patching, at the heart of its design.

As enterprise developers increasingly work with the likes of GitHub Copilot, Cursor, Claude Code, and Replit Ghostwriter, productivity gains are widely reported. But the threat, as highlighted in the HFS Research report “Smash through tech debt: Why AI is the jackhammer” is that these tools are being applied on top of brittle architectures. They aren’t creating new code; they’re patching it.

Your use of AI copilots piles on new layers of tech debt

When a developer prompts “add that,” “fix this,” or “update that,” they layer new instructions on creaking old foundations, threatening a new and compounding AI complexity that will get out of hand. The volume of code generation, with hundreds of prompts per day from thousands of developers, means debt is now accumulating exponentially. Instead of tearing down legacy tech debt, many enterprises are effectively using AI to extend it, with the risk of embedding bias and brittle logic even deeper into their stack.

The solution, offered by Silicon Valley startup Prompt Driven, is an open-source framework—already piloted at Google, SAP, Intel, IBM, and AWS. It treats prompts as the new programming language itself.

Make prompts the “single source of truth” to regenerate refreshed, coherent software

In this framework, prompts become more than transient commands; they are considered persistent specifications. These are the sources of truth from which clean and complete code is regenerated, rather than patched. Think of the prompts driving AI to regenerate a refreshed and coherent software system, instead of adding edit on edit on edit.

Given that the cost of generating clean code is trending to zero, patching will soon make little sense. PromptDriven founder, Greg Tanaka, draws parallels with our attitude to clothes: as they have become cheaper, few of us patch holes or darn socks; we simply throw them away and get new ones because that is now economically viable. That same shift must happen to software.

Regenerative AI is tech debt-free by design, built to:

  • Eliminate incremental patching, replacing codebases outright
  • Give enterprises explainability by treating prompts as durable, auditable artifacts
  • Offer performance upgrades; simplifying and cleaning code delivers better system performance and lower maintenance costs
  • Close the gap in making the economics of full-stack modernization viable
The bottom line: No time to delay. Audit AI-driven development pipelines for tech debt and pilot a regenerative framework today.

AI must be used to rebuild rather than repair. Patching just adds debt, while regeneration promises performance. CTOs must audit their AI-driven development for tech debt as a matter of urgency and pilot regenerative coding frameworks such as PromptDriven to reduce risk and make real inroads in their legacy modernization projects.

Sign in to view or download this research.

Login

Register

Insight. Inspiration. Impact.

Register now for immediate access of HFS' research, data and forward looking trends.

Get Started

Download Research

    Sign In

    Insight. Inspiration. Impact.

    Register now for immediate access of HFS' research, data and forward looking trends.

    Get Started

      Contact Ask HFS AI Support