# Technical debt

> Technical debt is the future cost created when a system is built quickly or carelessly, such as missing tests, tangled code or undocumented shortcuts, which makes every later change slower, riskier and more expensive.

Also called: tech debt, code debt, design debt, legacy code. Category: Delivery and quality. Source: https://aibuildindex.com/glossary/technical-debt

## In the index

- Fix an AI-built app: median $2,900, middle half $500 to $8,400, 552 priced briefs (https://aibuildindex.com/cost/vibe-coded-app-rescue)
- AI SaaS MVP: median $4,000, middle half $870 to $10,000, 7,123 priced briefs (https://aibuildindex.com/cost/ai-saas-mvp)

Every shortcut in a build is a loan against the future. Skipping tests, hard-coding settings, copying code instead of structuring it, or leaving decisions undocumented saves time now and costs time later, with interest. Technical debt is the name for that accumulated cost. A little is normal and sometimes wise, for example to get a [prototype](https://aibuildindex.com/glossary/prototype) in front of users quickly. Too much makes a system so fragile that each change breaks something else, and eventually it is cheaper to rebuild than to fix.

## How it works

Debt builds up in recognisable ways:

- **No tests.** Without [regression testing](https://aibuildindex.com/glossary/regression-testing), nobody can change code with confidence.
- **Unclear structure.** Logic spread across many places, so a small change needs edits everywhere.
- **Hidden configuration.** Keys, prompts and settings buried in code rather than managed in one place.
- **Outdated dependencies.** Libraries and model versions left to age until upgrading becomes a project.
- **No documentation.** Only the original builder knows how things fit together.

AI-assisted building has added a new source. [Vibe coding](https://aibuildindex.com/glossary/vibe-coding), where most code is generated by AI tools with little review, can produce a working product fast, but often with duplicated logic, weak security and no tests. That is why "app rescue" work, taking over and stabilising such a system, has become a distinct type of brief, with its own [cost page](https://aibuildindex.com/cost/vibe-coded-app-rescue).

## What it means for cost

Technical debt rarely appears in the first quote; it appears in every quote after. A cheap build with heavy debt can cost more over its life than a dearer, cleaner one, because each feature request, fix and upgrade takes longer. It also raises the cost of changing builders, since a new team must first learn and often repair the existing code.

When taking over an existing system, expect the new builder to spend time assessing it before quoting with confidence. When commissioning a new one, ask:

- Will the system have automated tests and a [CI/CD](https://aibuildindex.com/glossary/ci-cd) pipeline?
- How will the code be reviewed? See [code review](https://aibuildindex.com/glossary/code-review).
- Which shortcuts are you taking to meet the budget or deadline, and what would it cost to repay them later?
- What documentation will we receive at [handover](https://aibuildindex.com/glossary/handover)?

A builder who names the trade-offs openly is giving the buyer a choice. Debt taken on knowingly, for a clear reason, is manageable; debt nobody mentioned is the expensive kind.

## Common questions

### Is technical debt always bad?

No. Taking a shortcut to test an idea quickly can be the right call, especially for a proof of concept. It becomes a problem when the shortcut is forgotten and the prototype quietly becomes the production system.

### How do I know if my system has a lot of technical debt?

Common signs are small changes taking a long time, fixes that break unrelated features, builders reluctant to touch certain parts, and no automated tests. An independent code review gives a clearer picture.

### Should I rebuild or repair a system with heavy debt?

It depends on how much of the system is sound. If the core logic and data model are reasonable, repairing in stages is usually cheaper. If the foundations are wrong, a rebuild can cost less than endless repairs. A short assessment by an experienced builder should come before either decision.

## Related terms

- [Vibe coding](https://aibuildindex.com/glossary/vibe-coding): Vibe coding is building software mainly by describing what you want to an AI tool and accepting the code it produces, judging the result by whether it seems to work rather than by reading the code.
- [Code review](https://aibuildindex.com/glossary/code-review): Code review is the practice of having a second developer read and check code changes before they are merged, to catch bugs, security problems and unclear design, and to keep the codebase understandable to more than one person.
- [Regression testing](https://aibuildindex.com/glossary/regression-testing): Regression testing is re-running a system's existing tests after every change to confirm that features which already worked still work, catching new bugs or quality drops before they reach users.
- [Maintenance and support](https://aibuildindex.com/glossary/maintenance-and-support): Maintenance and support is the ongoing work of keeping a live system running correctly, including fixing faults, applying updates, adapting to changes in connected services, monitoring and answering users' problems.
- [Handover and documentation](https://aibuildindex.com/glossary/handover): Handover and documentation is the final stage of a build in which the builder transfers code, accounts, credentials and written explanations to the buyer, so the system can be run, changed and supported without them.
- [CI/CD](https://aibuildindex.com/glossary/ci-cd): CI/CD, short for continuous integration and continuous delivery, is an automated pipeline that tests every code change as it is made and prepares or releases it, so updates reach production quickly and safely.
