Starting the New Year with a Technical Debt Inventory

In the last week of December, we needed to make a tiny campaign change to an e-commerce platform we've been developing for six years. A single function that calculates the discount rate. Our estimate was two hours; the job took three days. Because that function had been copied into three different places, one of them calculated VAT differently, and the tests weren't running at all because someone had disabled them "temporarily" two years earlier. I didn't feel good sending the client the invoice; the problem wasn't the client's request, it was the debt we had swept under the rug over the years.

That week we made a decision as a team: the first sprint of January would be dedicated to taking a technical debt inventory before writing a single new feature on any client project. To be honest, of all the New Year's resolutions in my sixteen years of agency life, this has been the most useful.

Debt isn't bad; unrecorded debt is

When I explain technical debt to clients, I always use the same analogy: taking out loans is a natural part of doing business. The problem isn't taking out a loan; it's not knowing how many loans you have and what their interest rates are. Writing a deliberate shortcut when a deadline is tight is a legitimate engineering decision. What's not legitimate is that decision not being recorded anywhere, so that two years later nobody on the team even knows the shortcut exists.

That's exactly what an inventory solves. Our format is unglamorous: a debt list for each project, and for each item, what the debt is, where it lives (file, module, service), how much it costs us per month, and the cost of paying it off. The "monthly cost" part is the heart of it. If a debt item causes an average of four hours of debugging every month and paying it off would take twenty hours, it pays for itself in five months. Once you establish that language, negotiating refactoring with a client takes on a whole different character; you're not saying "let's make the code prettier," you're saying "let's pay off the interest you've been paying at four hours a month."

Four fields for each item in a technical debt inventory: what the debt is, where it lives, its monthly cost, and the cost of paying it off.
Monthly cost is the heart of it; we negotiate refactoring in the language of interest.

Where we looked while taking the inventory

As a team that has delivered more than 500 projects, I can say this plainly: the most expensive kind of debt is the kind you can't see in the code. That's why we don't fill the inventory with static analysis output alone. Of course we run analysis tools; but the truly valuable items come out of two-hour sessions with the team. The question we ask is simple: "Where in this project are you afraid to touch?"

The answers always cluster in the same places. That cron script nobody understands. The deploy steps only Ahmet knows. The configuration differences that work in staging and blow up in production. The framework that's three major versions behind. None of these show up in a linter report, but they're exactly the things that make your phone ring in the middle of the night.

Where the inventory lives also matters more than you'd think. On our first attempt it was a separate Excel file, and it was forgotten within two months; nobody opens Excel while writing code. Now we keep it as a file in each project's repository, right next to the code, and every debt-related PR has to touch that file too. A developer who writes a new shortcut adds a line to the inventory in the same commit: what I did, why I did it, when it should be paid off. Debt gets tagged the moment it's born; we don't do archaeology two years later. In code review, a comment like "there's a shortcut here, but it has no line in the inventory" now counts as an objection as serious as a missing test.

The debt recording flow: a shortcut is written, a line is added to the inventory in the same commit, debt-related PRs touch the inventory, and the debt isn't forgotten.
The inventory lives in the same repository as the code; the separate Excel file was forgotten in two months.

Last month, while running this session on one of our vehicle tracking projects, we noticed something interesting: the module the team was "afraid" of was, by code quality metrics, the cleanest-looking part of the project. The problem wasn't in the code but in the undocumented behavior of the external service that module depended on. Without the inventory, that knowledge would have gone on living in one person's head.

AI agents lowered the interest but didn't wipe out the loan

Talking about this topic in 2026 is different. Agentic tools and MCP integrations have made the mechanical part of refactoring dramatically cheaper. Tasks like "merge these three copies into a single function, write the tests, update the call sites," which used to take a week, we now hand to an agent and review the output in the evening. Thanks to the MCP servers we've connected to our own codebases, the agent also sees the project's conventions and past decisions; it works in context, not blindly.

But there's a trap here, and we learned it the hard way.

When the cost of paying off debt drops, an appetite to "pay off everything" is born. In early January we ran a massive refactoring pass on a client's backend with an agent in three days; it was technically flawless, but because we changed the code map in the team's heads overnight, everyone lost their way for two weeks. The lesson was clear: the inventory should tell you not only what to pay off but also how fast. An agent can write code; no tool scales the team's learning speed.

Debts we deliberately don't pay off

Perhaps the most liberating part of an inventory is being able to write "we won't pay this off" next to some items with a clear conscience. A report script that runs once a year can be ugly; we don't care. Increasing test coverage for a module that will be retired within six months is a waste of money. Putting these decisions in writing keeps you from having the same argument all over again at every sprint planning.

On the other hand, some items are indisputably a priority: dependencies with overdue security patches, knowledge silos that depend on a single person, and manual steps in the deploy process. These aren't interest; they're unsecured promissory notes, and when they come due, they make you pay the whole amount at once.

A comparison of debts deliberately left unpaid and debts that are indisputably a priority.
Priority items aren't interest; they're notes that make you pay the whole amount at once when they come due.

Last year one of our clients saw the price of postponing one of these items: because of a vulnerability in an unmaintained image processing library, their site spent a weekend hosting a script that mined cryptocurrency. The cleanup cost roughly forty times what updating that library would have. That line had been sitting in the inventory for months; what was missing was the urgency tag next to it.

The smallest version to do before January is out

If you're reading this and thinking "we have a hundred projects that need an inventory, where do we even start," the most practical starting point I've seen is this: set aside an hour with your team and answer just one question — what were the three problems that ate the most of your time in the last three months, and how many hours did they eat? The three lines that come out of that are the first three items in your inventory. The rest is a matter of habit; we dedicate the last ten minutes of every sprint retro to updating the inventory, and those ten minutes have noticeably shortened our planning meetings.

If you'd like an outside eye to take a snapshot of your own project's debt, get in touch; we've been doing this analysis for years, both on our own projects and on the codebases we take over, and on almost every project we inherit, our first deliverable is an inventory report.

Let me close with a warning: taking an inventory and then never updating it leads to worse results than never taking one at all — because the team now thinks everything is "on record" and stops tracking it mentally altogether. A stale inventory breeds false confidence. So keep the rhythm small but unbroken; ten minutes at the end of every retro instead of a massive update once a month.

In the first weeks of the new year, everyone writes lists of goals. Ours this year was a single line: make the debt visible, and the rest follows on its own. We've been doing it for three months, and our count of midnight phone calls — knock on wood — is zero.