For decades, the entire software industry has taken one equation on faith: code = asset.
The bigger the repository, the more valuable it looks. The more lines of code, the more capable the team seems. The more code an engineer ships, the more productive they’re assumed to be. This equation has shaped how we hire, how we value companies, how we design architecture, how we promote people — even how engineers see themselves. An engineer who “writes a lot of code” is automatically treated as someone who’s “accumulated wealth.”
This equation held up in the past because it rested on an implicit premise: code was scarce. Writing it took real human effort and real time, so every line carried a sunk cost. That’s why code was an asset — and why more was always better.
AI just knocked that premise out from under us.
When the marginal cost of generating a line of code drops from “an engineer, several hours” to “an API call, a few cents,” scarcity disappears. And once something stops being scarce, the sign on its value starts to wobble. Under the new conditions, writing one more line of code usually isn’t accumulating another asset — it’s taking on another unpaid debt.
This is a real rewrite of the balance sheet. The industry just hasn’t swapped out its ledger yet.
1. Back to Accounting: What Decides Whether Something Is an Asset or a Liability
To make this argument properly, we need to borrow some basic accounting logic first, because “asset” and “liability” have precise definitions in accounting — they aren’t just emotionally loaded words.
Whether something is an asset or a liability doesn’t depend on whether it’s “good,” and it doesn’t depend on whether it’s “expensive.” It depends on one thing:
Whether the value it generates in the future consistently exceeds the cost of keeping it running.
Something that keeps producing more value than it costs to maintain is an asset. Something whose maintenance cost keeps exceeding the value it produces is a liability.
Here’s the part people miss: the same thing can be an asset under one set of conditions and a liability under another.
A house bought with a mortgage is an asset if the rent covers the mortgage payment and upkeep. If the rent doesn’t cover it, and you have to keep topping it up out of pocket every month, it’s a liability in accounting terms — no matter how impressive it looks, no matter how much you paid for it. What determines its nature isn’t its appearance or its purchase price. It’s the direction of its future cash flow.
Code follows exactly the same logic. Whether a piece of code is an asset isn’t determined by how well it’s written, and it isn’t determined by how much it cost to produce. It’s determined by one thing:
Whether the business value it keeps generating exceeds what the team has to spend to understand it, maintain it, and stay accountable for it.
Produces more than it costs to maintain: it’s an asset. Costs more to maintain than it produces: it’s a liability — no matter how beautifully it’s written, no matter how reliably it runs every day, no matter how expensive the model that generated it was.
Hold onto that test. Everything that follows is built on it.
2. Why Code Used to Be an Asset: A Forgotten Premise
Code really was an asset, once. But to understand why it’s turning into a liability now, we first have to see clearly why it was an asset back then — because that reason is exactly what AI is erasing.
In the past, code was an asset because three conditions held at once:
Condition one: code was scarce. Writing code took a lot of human time, so every line carried a real sunk cost. Scarce things are naturally valuable, so every additional line was one more piece of accumulated wealth for the team. This is the most basic source of the “code = asset” belief.
Condition two: comprehension density was high. The people who wrote the code and the people who later changed it were usually the same people — or at least worked closely together on the same team. Code wasn’t just logic frozen in place; it was the team’s understanding frozen in place. Whoever wrote it understood it, and whoever understood it could maintain it cheaply. Maintenance costs stayed manageable because the most expensive step — understanding — had already been paid for at the time of writing.
Condition three: maintenance costs were controllable. Systems were limited in scale, module boundaries were relatively clear, and the ripple effects of any given change were predictable. Maintenance cost did rise as code accumulated, but it rose slowly — far more slowly than the business value the code kept producing.
With all three conditions stacked together, the sign on code’s net value was positive: output > maintenance. Under that sign, hoarding code was hoarding wealth, and “write more code” and “accumulate assets” were the same thing. The entire industry’s incentive structure — lines of code, commit counts, PR counts, repository size — was built around that sign.
But notice: none of those three conditions was a property of the code itself. They were all external conditions — scarcity came from production cost, comprehension density came from how teams collaborated, and controllable maintenance came from system scale. Code was never an asset because code is inherently an asset. It was an asset because the external conditions of the time made its net-value sign positive.
So what happens when AI rewrites those external conditions?
3. How AI Precisely Flipped All Three Conditions
AI’s effect on code’s asset status isn’t the vague “there’s more code now.” It precisely, one by one, knocked out the three conditions from the previous section.
Scarcity disappeared. The marginal cost of generating code is approaching zero. A single agent task can sweep across an entire monorepo and produce thousands of lines of change in a few hours. When code can be mass-produced at nearly no cost, it stops being a scarce resource, and the logic of “one more line, one more unit of wealth” simply stops working. It’s like what happened to manuscripts once the printing press spread: hand-copied texts stopped being scarce assets. Not because they got worse — because they stopped being scarce.
Comprehension density collapsed. This is the most lethal of the three conditions, and the easiest to overlook. Code used to have high comprehension density because the person writing it paid down the cost of understanding as they wrote. But with AI-generated code, nobody on the team ever goes through that process of understanding. The code can look clean — sometimes cleaner than what a person would write — but what it carries isn’t the team’s understanding. It’s a one-time output from a model. Code has gone from “the team’s knowledge, solidified” to “external knowledge, injected once.” And knowledge injected once can’t be inherited. The next time someone needs to change that code, they have to understand it from scratch, all over again.
Maintenance costs went up, not down. A surge in code volume means a matching surge in the surface area that has to be understood, reviewed, and regression-tested. And AI-generated code carries its own particular maintenance burden: implicit assumptions, implicit coupling to context, implementations that look right but don’t survive close inspection. None of this is the old-fashioned technical debt of “badly written code.” It’s a harder-to-spot burden — precisely because it looks polished, it slips past review, and it only surfaces once something breaks.
Flip all three conditions at once and the sign on net value flips with them: output approaches zero, maintenance stays flat or rises, so maintenance > output.
By the test from the first section, once a piece of code’s maintenance cost persistently exceeds the value it produces, it has, in the strict accounting sense, formally changed from an asset into a liability.
This isn’t alarmism. It’s the necessary conclusion once the conditions change. Change the ledger, and the sign changes with it.
4. The Precise Shape of This Debt: Not Technical Debt, but “Comprehension Debt”
At this point I need to draw a crucial distinction, or this whole argument gets blurred together with “technical debt” and loses its edge.
Traditional technical debt assumes the code “wasn’t written well enough.” Poor quality, messy structure, no tests — so it needs refactoring to pay it down. Technical debt is quality debt. You can see it. You consciously queue it up and pay it down, and the way you pay it down is by rewriting.
The liability code turns into in the AI era is a different animal. Its premise isn’t “the code is bad.” Quite the opposite — AI-written code is often clean, syntactically elegant, well-structured, even commented. Its burden isn’t in quality. It’s in cognition:
The code might be written very well, and still nobody on the team actually understands it.
This is an entirely new form of debt. I call it comprehension debt.
The essence of comprehension debt is this: the “cost of understanding” the code was never paid up front. In the past, when a person wrote code, the act of writing was the act of understanding — understanding got paid down into the code as it was written. Now, when AI writes the code, that act gets skipped. The understanding never happens, so the full cost of it is left unpaid, owed in full to whoever has to touch that code in the future.
Comprehension debt has a few properties that make it hard to notice:
It looks good. Technical debt looks like a mess, so it’s visibly ugly. Comprehension debt looks like good code, so it never trips the “time to pay this down” alarm. Teams pile it up with a clear conscience — until, one day, a single change sets off a chain of failures, and it turns out nobody can explain what this code actually does, or why it does it that way.
Its interest compounds. Every time someone stacks new code on top of comprehension debt — because they never really understood the layer underneath, so all they can do is copy the pattern and build on top — the debt grows another layer. AI makes this kind of stacking extraordinarily easy: you don’t need to understand something to keep generating more of it. So comprehension debt doesn’t grow linearly the way technical debt does. It compounds exponentially.
It can’t be paid down by rewriting. You can refactor your way out of technical debt, because you know what quality you’re aiming for. You can’t rewrite your way out of comprehension debt, because the rewrite still depends on AI, and the new AI-generated code still isn’t understood by anyone. You’ve just swapped an old debt for a new one. The only way to pay down comprehension debt is to have an actual person go read and understand it — and that’s precisely the step the AI era skips most.
Here’s a genuinely useful test for deciding whether a piece of code in your repository is an asset or a liability:
If we deleted this code entirely tomorrow, could the team rebuild it in a reasonable amount of time?
If yes — it’s not an asset. It’s a liability taking up space. Whatever it carries, whether logic or implementation, can be regenerated cheaply, so holding onto it just means paying ongoing maintenance costs for nothing.
If no — it’s a real asset. It carries knowledge that can’t be quickly regenerated. Delete it, and it’s genuinely gone. Keep it, and it keeps cashing out value.
This test is counterintuitive but precise: code that’s easy to delete is a liability; code that would hurt to delete is an asset. And the biggest problem in the AI era is exactly this — more and more of the code in our repositories is the kind you could delete and feel nothing.
5. So What Becomes the New Asset
If code is turning into a liability, where did the asset go?
The answer is hiding inside the question of why some code would hurt to delete. What hurts, when you delete that code, isn’t the code itself — it’s whatever it was carrying that can’t be quickly regenerated. That’s the real asset.
It’s this:
Intent. Why does this code exist? What business problem is it solving? What would happen if it didn’t exist? Intent is business understanding projected into the world of code. AI can’t generate it automatically, because it carries a human judgment about the real world.
Constraints. What boundaries does this code have to respect? Security floors, performance requirements, compliance rules, compatibility promises, resource limits. Constraints are a contract about what you can’t do — and AI doesn’t know your constraints unless you tell it.
Acceptance criteria. What counts as “done right”? Inputs and outputs, error handling, edge-case behavior, observability requirements. Acceptance criteria define what “correct” means, and defining that takes judgment about the business and the system.
Contextual contracts. How does this code cooperate with the rest of the system? What does it depend on, what depends on it, under what sequencing does it run, and how do its failures propagate downstream? This is the code’s map of its own ecosystem.
Decision records. Why did we choose option A over option B? What did we try and abandon along the way? Decision records are the fossilized record of lessons already paid for — they keep the team from relearning them the hard way.
All of these share one trait: they can’t be auto-generated by AI, but they’re exactly what lets code be cheaply regenerated by AI. As long as intent, constraints, acceptance criteria, and contracts are all clear, the code itself can be rewritten by AI at any time. In other words, the existence of these assets is what downgrades code from “an asset you must keep” to “an implementation detail you can regenerate.”
And with that, a complete flip of the coordinate system happens:
In the past, code was an asset and documentation was a liability — documentation took effort to maintain and never paid for itself, so nobody wanted to write it.
Now, code is a liability and intent and constraints are the assets — code can be regenerated anytime, but once intent is lost, it’s really gone.
This flip explains a strange phenomenon: a lot of teams that adopted AI see their code output explode while their engineering capability actually declines. They’re hoarding nothing but liabilities (code), and they’ve emptied out exactly the thing that was an asset (nobody writes down intent, constraints, or acceptance criteria anymore — why bother, when AI will write the code anyway). They’re trading assets for liabilities and congratulating themselves on the profit.
6. Stress Test: Is This Judgment Too Extreme
Objection one: code is actually running. It produces business value every single day. How can you call that a liability?
Something can produce business value and still be a liability at the same time. This is extremely common in accounting: a piece of production equipment bought on credit runs every day and produces output, but if the loan interest and maintenance cost exceed what it produces, it’s a liability. Producing something ≠ being an asset.
Code is no different. It really is running, it really is supporting the business, but if the ongoing cost of understanding it, maintaining it, and firefighting it exceeds its ability to keep producing value, it’s a liability. And here’s the crucial part: for code that nobody truly understands, its maintenance cost rises over time (the business changes, dependencies change, and the landmines left by AI hallucinations surface slowly), while the marginal value it produces falls over time (the business keeps iterating, and old code can contribute less and less new value). One curve rises, the other falls, and once they cross, it’s pure liability. Many teams’ code repositories are crossing that point en masse right now.
Objection two: so is all code a liability? Obviously not. Is the Linux kernel a liability too? What about great open-source projects?
Of course not all code is a liability. The test is the sign of net value, not the category “code.”
The Linux kernel is an asset: it’s deeply understood by an enormous number of developers worldwide (comprehension density is extremely high), it keeps producing enormous value, and its maintenance cost is spread across the entire world. “Maintenance > output” can’t happen to it, because the way the cost is distributed holds it up.
AI-generated business code inside a single team is a liability: only a handful of people understand it, and only shallowly; the maintenance cost falls entirely on that one team; and its output value decays fast as the business iterates. Its sign is negative.
The two variables that decide which way something goes are comprehension density and how the maintenance cost is distributed. Open-source assets score well on both dimensions; internal AI-generated code scores poorly on both. So this argument isn’t nihilism — it isn’t “all code is a liability.” It’s a precise claim: “once AI changes the underlying conditions, the net-value sign of internal business code has systematically flipped negative.”
Objection three: isn’t this just technical debt with a new name?
No. This objection deserves one more pass beyond sections three and four, because it’s the easiest way for this argument to lose its focus.
Technical debt assumes a quality problem: the code isn’t written well enough and needs refactoring. Comprehension debt assumes a cognition problem: the code might be written very well, and still nobody understands it.
Technical debt can be paid down by rewriting: you know what quality you’re aiming for, and you rewrite to that bar. Comprehension debt can’t: whatever you rewrite is still AI-generated code that nobody understands. You’ve just swapped an old debt for a new one.
Technical debt trips an alarm: the code is ugly, and it gets caught in review. Comprehension debt doesn’t: the code is beautiful, and it sails through review.
These are two fundamentally different kinds of debt. Misdiagnose comprehension debt as technical debt, and you’ll apply the wrong fix. You’ll think a refactor solved it, and after the refactor, still nobody understands it.
Objection four: if the cost of generating code is approaching zero, won’t AI also drive down the cost of maintaining it? Doesn’t the sign flip back?
Partly. AI genuinely can help people understand code, generate comments, and assist with review. But maintenance cost has a floor that AI can’t push below: accountability.
The real cost of maintenance isn’t “changing the code.” It’s “being accountable for the consequences of the change.” AI can help you make the change, but it can’t shoulder the outage, the compensation, the rollback, or the lost trust that follows a bad one. Accountability can’t be outsourced, so maintenance cost always has a floor AI can’t reach. And the surface area of accountability is genuinely expanding as code volume explodes. So even if AI pushes down some parts of maintenance cost, the net-value sign is unlikely to flip back positive — because the output side is also approaching zero. Both sides approach zero, but the accountability surface keeps growing, so the sign stays negative.
Having absorbed all four objections, the claim comes out sharper, not weaker: this isn’t “code is useless.” It’s “once AI changes production cost and comprehension density, the net-value sign of internal business code has systematically flipped negative — and the industry is still making decisions off the old sign.”
7. So What Do We Do: Reorganizing Engineering in a World of Liabilities
If code is a liability, the goal of engineering isn’t “produce more code.” It’s “take on the least liability for the most asset.” That requires rethinking how we work, from the ground up.
Principle one: make intent, constraints, and acceptance criteria first-class citizens, and demote code to an implementation detail.
Documentation used to be an appendage to code; code was the main thing. Now it’s the reverse: intent, constraints, and acceptance criteria are the main thing, and code is just one temporary implementation of them. The primary object of PR review shouldn’t be the code — it should be whether the intent and constraints behind that code have been clearly recorded. Get the code wrong, and AI can fix it. Lose the intent, and nothing can save you. Assets have to be explicitly held. Liabilities can be borrowed again anytime.
Principle two: aim for “regenerable code,” not “code worth keeping.”
The standard for valuing a piece of code has changed. It used to be “can it run reliably?” Now it’s “if we deleted it, could we regenerate it cheaply?” Regenerable code is light liability — keeping it around doesn’t add much maintenance burden. Code that can’t be regenerated, the kind that would hurt to delete, is the real heavy asset, and it deserves real protection. When you’re reviewing code, ask one more question: “If we deleted this, how fast could we rebuild it?” The slower the answer, the more it’s an asset, and the more it’s worth investing time to understand. The faster the answer, the more it’s a liability, and the more it should stay light and replaceable.
Principle three: shift what review checks, from “is the code correct” to “was the asset recorded.”
AI can fix whether the code is correct on its own. What’s genuinely scarce is whether the intent and constraints behind that code got written down. So the center of gravity in code review has to shift: not combing line by line for mistakes in the code (that’s liability-level work, and it never ends), but confirming whether the asset behind the code has been captured — whether it’s clear why this was done, where the boundaries are, and how to verify it. Reviewing liabilities gets you lost in details. Reviewing assets is what actually protects value.
Principle four: put a “depreciation schedule” on code, and pay it down on a regular cadence.
Assets depreciate; liabilities need to even more so. Every piece of code should be assumed to lose value over time. The business changes, dependencies change, and the older it gets, the more likely it’s drifted from what’s actually needed. Regularly audit whether the code in your repository still produces value: keep what’s still producing value, and keep investing in understanding it; and for whatever no longer produces value but still costs maintenance, delete it without hesitation. Hold your assets. Pay down your liabilities. Hoarding code that doesn’t produce anything is hoarding debt that doesn’t earn you a cent.
Principle five: redefine what “engineer output” means.
If code is a liability, then “how much code did you write” isn’t output — it’s “how much debt did you take on.” Real output should be: how much regenerable asset you built (intent, constraints, contracts, decision records), and how much liability you paid down (how much code other people never understood did you make understood, how much code that no longer produces value did you delete).
This redefinition hits promotion and performance systems directly. An engineer who writes fifty thousand lines of AI-generated code in a year looks highly productive on the old ledger. On the new one, they might have “saddled the team with fifty thousand lines of comprehension debt.” An engineer who writes only ten thousand lines in a year, but clearly documents the intent and constraints of every module and aggressively cleans out stale code, looks unproductive on the old ledger. On the new one, they’re the one actually accumulating assets.
8. Conclusion: When the Ledger Is Wrong, Every Decision Goes Wrong
Back to the equation we started with: code = asset.
That equation held up in the past because it depended on three conditions — scarcity, high comprehension density, controllable maintenance. AI didn’t change code itself. It changed those three external conditions, and the sign on the equation flipped.
Code is turning from an asset into a liability. That’s not pessimism. It’s a recognition that’s overdue.
And the cost of catching up on that recognition is this: every decision based on the old ledger is going to be systematically wrong:
- Hiring will be wrong: still recruiting people who “can write a lot of code,” instead of people who can “define assets and pay down liabilities.”
- Valuation will be wrong: still valuing companies by lines of code, repository size, or feature count, instead of by regenerable assets.
- Architecture will be wrong: still hoarding code, treating “the system is huge” as strength, instead of treating “intent is clear and code is deletable” as health.
- Promotion will be wrong: still rewarding the people who produce the most code, while ignoring that they’re also the biggest producers of liability.
The biggest gift AI gives this industry might not be faster code production. It might be that it forces us to finally ask a question we should have asked long ago — a question the inertia of “code = asset” has kept buried:
What are we actually accumulating?
If we keep using the old ledger — hoarding liabilities as if they were assets, rewarding the biggest producers of liability as if they were the most productive — what AI hands us won’t be prosperity. It’ll be a debt crisis waiting to detonate.
Except this time, the creditor isn’t a bank, and it isn’t an investor. It’s us, in the future. The engineers who, down the line, will have no choice but to understand, maintain, and answer for this code.
They’ll look at the millions of lines of “assets” we piled up today and realize it was actually one enormous IOU. And the interest on that IOU compounds every single day.
