AI
Code Only a Model Can Maintain
Falling AI costs don’t solve the complexity problem. They change who owns your product.
Matt Goldman6 min read
The first version of the argument against AI-generated code is about volume, and it’s correct as far as it goes.
AI removed the constraint on producing code. It left every other constraint exactly where it was: review capacity, architectural coherence, agreement about what the domain actually means, and whatever debt was already on the books. Teams under pressure to do more with less are now generating complexity faster than they can absorb it. The code arrives. The understanding doesn’t.
The usual response to this is that it’s a transitional problem. Models are getting cheaper and better. If AI generated the mess, AI can maintain the mess. Why does it matter whether a human can hold the whole system in their head, if a human no longer has to?
That’s a serious argument and I don’t think it’s stupid, and in some cases it’s even right. But it swaps one problem for a different one, and the second problem is much harder to reverse.
The mechanic’s multitool
Imagine you run a vehicle workshop, and someone sells you a machine that does servicing. Oil changes, filters, wiper blades, wheel alignment, the routine work. It’s fast and it’s cheap and it’s good.
There’s one detail in the brochure you don’t think much about. When the machine does a job, it uses its own fittings. Proprietary couplings, its own fastener pattern, its own way of routing things, all of which let it work faster than a person could; which is not a defect, it’s why it’s faster.
So you buy it. The economics are obvious. You let half your servicing staff go, because you don’t need people for routine work anymore, and you focus your remaining team on diagnostics and repairs, which is higher-margin work anyway. For a year, this looks like one of the best decisions you’ve ever made.
Then the questions start arriving.
What happens when it breaks down? Every vehicle that’s been through it now has fittings only it can service.
What happens when the price goes up? You have no alternative supplier, and the vendor knows it.
What happens if you want to switch to a competitor’s machine? Every car you’ve touched in the past year has to be converted first.
What happens if you want to go back to people? Your staff have left, and the ones you hire won’t have the tools for what’s in your workshop now.
None of these are insurmountable problems, but equally, none of them is cheap, and you’ll be solving them at the moment of least leverage, when the tool has failed, or the price has risen, or the vendor has changed direction.
The analogy stretches in places, which all analogies do. But the structure is still right: the tool didn’t just do the work, it changed the thing it worked on into a shape that requires the tool.
This is the same trade as the last one
I’ve written before about what happens when you adopt a platform that doesn’t model your business, bend your process to fit it, and discover later that your process now looks like everyone else’s. The platform didn’t steal your differentiator, you willingly exchanged it for a smoother implementation.
Code that only a model can maintain is the same trade, one level deeper. There, you rented strategic control over your process. Here, you rent strategic control over your product.
And the same question from that post is the litmust test for whether it’s a good trade: is this capability core, or is it commodity?
For commodity capability, a dependency is usually fine, in fact it’s usually the right answer. Nobody runs their own mail server for example, and nobody should build a payroll engine. If what the model is generating is scaffolding, integration glue, the fortieth CRUD endpoint — code that is necessary but not differentiating — then a dependency on the tool that generates it is a reasonable thing to accept.
For core capability, it’s a different calculation entirely. If your code is your product — if the way your system works is the thing customers are paying for — then the question of who can maintain it is a question about who controls your roadmap. A codebase that your team cannot reason about is a codebase your team cannot change on your schedule. You can still change it, you just can’t change it without the tool.
The failure isn’t the decision. It’s the decision being invisible.
None of this is to say that letting AI generate your code is a universally incorrect decision. Like most things, it’s not a technology argument.
Plenty of businesses should make this trade. Some should make it deliberately and permanently, because the capability genuinely is commodity. Some should make it deliberately and temporarily — accept the dependency now to get to market, with a clear intention to pay it back later, which is a perfectly respectable position and precisely the kind of thing that belongs in an adaptive debt budget rather than a vague intention.
The problem is when the decision is invisible.
The decision to accept this dependency is being made at the keyboard, by developers under delivery pressure, one pull request at a time. It is not being made in a room where someone says: we are choosing to make this part of the product maintainable only with vendor X’s models, we think that’s worth it because Y, and here is what it would cost us to reverse. It’s being made by default, and the accumulated effect is discovered later, usually by someone who had no idea the choice was being made at all.
That’s the actual problem. Not the dependency, but the invisibility of it.
And the reason it stays invisible is the same reason technical debt usually stays invisible: it has no vocabulary that a product owner can act on. “The code is hard to read” is not a business statement. “Approximately this proportion of our core system can only be modified with tooling we don’t control, and re-establishing in-house capability would cost roughly this much” is a business statement. One gets nodded at, the other gets decided.
Translating between those two sentences is most of the job.
What to do about it
Not “use AI less”. That advice is both unrealistic and, in most cases, wrong.
Decide which parts of your system are core, explicitly, and write it down. The answer is almost always smaller than people assume. Most of a codebase is commodity. The differentiating part is usually a minority of it, and it’s the part where comprehension is non-negotiable.
Define your model. Any software consultant worth their salt will ask for, or help you produce, your domain model. Whether building bespoke software, or buying commercial-off-the-shelf (COTS), understanding your domain model, your core capability, is essential to delivering a solution that meets your needs. This is not a technology document, it’s a business document, and if any part of your process is a differentiator, you should be worried if you don’t have one.
Set a different bar for the core. AI-generated code in commodity areas can be reviewed for correctness. AI-generated code in the differentiating parts needs to be reviewed for comprehension — meaning someone on your team can explain why it works, not merely observe that it does. And it should be measurable against your domain model. If nobody can, it isn’t finished.
Make deletion the default question. This is the constraint I find most effective with coding agents, and it works against the grain of what they’re built to do. Models produce. Deletion is the one operation with no output to show for itself, so it will never be the path of least resistance — it has to be imposed. What can be removed? asked before what can be added? doesn’t solve code proliferation, but it meaningfully slows it, and the recursive version of that question is the highest-leverage thing you can do to a codebase regardless of who or what wrote it.
Put reversal cost on the record. Once a year, answer the question: if we had to maintain this without these tools, what would it take? You don’t have to like the answer, you just have to know it. The moment you need that number is the moment you can least afford to go looking for it.
The short version
AI getting cheaper doesn’t make this go away. It makes it easier to ignore, which is not the same thing.
You can absolutely choose to hand the maintenance of your product to a tool. For plenty of systems that’s the right call, and for plenty more it’s a reasonable temporary one.
Just make sure it’s a choice someone made, rather than a position you discovered you were in.