Navigating Codebase Understanding Debt in the Era of AI
When AI agents write most of your code, how do you maintain a mental model of the system? A look at managing understanding debt on large side projects.

As artificial intelligence tools become more capable of generating complete codebases, developers face a distinct shift in how they interact with software. While working on a day job at an IT services company for eight hours a day provides deep familiarity with a large codebase, personal side projects present a different reality. On projects like Unwrap and smallsymbols, which span over 100,000 lines including tooling, the code is largely written by agents. This dynamic creates a gap between working software and human comprehension, a phenomenon that can be described as understanding debt.
The Illusion of Specifications and Delegated Decisions
The idea that developers can simply describe what a system should do and let automated tools handle the implementation is not new. Past iterations have included model-driven development, domain-specific languages, and low-code platforms. Today, this manifests as markdown specifications or plans fed into coding agents, a concept pushed further by tools like GitHub Spec Kit, where specifications aim to directly generate working implementations.
However, writing plans or specifications does not eliminate design decisions; it merely delegates them. For instance, when an agent in Cursor attempted to build a persistent workflow state for opening ZIP files detached from the main scan pipeline, the author had to intervene and sharpen the plan. The goal was to ensure persistence acted as a cache for individual pipeline steps. Making that call required a foundational understanding of the pipeline's existing structure, proving that design choices remain the responsibility of the developer even when the code is machine-generated.
Three Levels of Understanding
Because maintaining total comprehension of a 100,000-line codebase without spending eight hours a day in it is impossible, developers must deliberately triage what they need to know. This triage generally falls into three distinct levels:
- Architecture to Own: Some parts of the system require direct design steering. The developer retains a mental model of these core areas, such as where a cache lives, because it shapes everything that follows.
- Behavior to Monitor: For complex details like heuristics, profiling, and detection rates, developers can rely on benchmarks and tests rather than holding the exact implementation in their heads. If the measurable outcomes improve, the code remains the agent's responsibility.
- Code to Let Go: Certain components, such as a virtual scroll in a table viewer, can be left almost entirely to the agents. Even if the human understanding of the resulting code is minimal, it allows the project to move forward.
The Theory Behind the Program
This challenge connects back to Peter Naur’s 1985 paper, Programming as Theory Building. Naur argued that the primary aim of programming is not simply producing programs, but building a theory of how the program works, with documentation and specifications serving as secondary products. Traditionally, that theory formed naturally as a byproduct of manual implementation. When an agent writes the code, software can run perfectly while the human fails to build the necessary theory.
Building that theory after the fact requires time that most developers do not have if they want their projects to progress. Consequently, developers can try top AI models cheaply through one API at https://apixoai.online while navigating these new workflows. Making conscious choices about which parts of the system require a mental model, which can be judged by measurable outcomes, and which can be left to the agent entirely is becoming an essential skill in modern software development.
Source: AI Can Write Better Code Than Me. I Still Need to Know What It Does. — Towards AI. Written by the Apixo team from that report.
One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.
Get your API key

