An Empirical Study on Self-Admitted Technical Debt in AI Agents
This research provides an empirical analysis of Self-Admitted Technical Debt (SATD) across 137 open-source AI agent projects. It highlights maintenance risks in agentic AI systems, specifically the dominance of requirement debt and the concentration of debt within action components.
This study analyzed 137 open-source AI agent projects to investigate the prevalence and characteristics of Self-Admitted Technical Debt (SATD) explicitly stated by developers in code comments. The results show that requirement debt is the most frequent type, with technical debt accumulating most heavily in Action components.
Introduction
Recently, LLM-based AI agents have been rapidly adopted into corporate workflows and decision-making processes. However, many projects suffer from technical debt—design flaws or temporary fixes left in the code—due to tight release schedules and varying levels of developer expertise.
In particular, Self-Admitted Technical Debt (SATD), where developers leave markers such as ‘TODO’ or ‘FIXME’ in code comments, serves as a critical indicator of potential system vulnerabilities. If left unaddressed, such debt can lead to degraded reasoning capabilities, reduced execution efficiency, and eventually, unexpected system failures in production environments.
This research briefing covers the results of a comprehensive survey of 137 open-source AI agent projects, empirically analyzing where and in what form debt occurs within agent systems. This shifts the perspective of AI agent projects beyond simple benchmark performance metrics toward ‘maintainability.’
For enterprise AI leaders and MLOps engineers, this study provides foundational data to understand the technical costs that rapid prototyping at the PoC stage incurs during actual operation and to establish governance strategies for building sustainable AI systems.
Core Findings of the Original Research
This study was conducted to analyze Self-Admitted Technical Debt (SATD) occurring in LLM-based AI agent systems such as AutoGPT and graphrag. From 976 projects searched on GitHub using keywords like ‘AI agent,’ ‘GPT agent,’ and ‘LLM based agent,’ the researchers selected 137 open-source projects for analysis after applying strict filtering criteria.
During the data collection process, a total of 465,833 code comments were extracted, and a text-mining-based SATD detection tool identified 8,415 instances of SATD. Subsequently, 368 samples were randomly selected and manually coded to categorize them into 7 major categories and 15 subcategories.
The analysis revealed that 1.96% of comments in AI agent projects were SATD, which is relatively lower than traditional software (2%) or machine learning projects (3.5%). By debt type, Requirement Debt was the highest at 36.57%, followed by Code Debt (19.4%), Documentation Debt (13.3%), and Defect Debt (9.5%).
Regarding component distribution, Action components held the most debt at 39.7%, followed by Brain (23.7%), Testing (16.4%), Configuration (15.6%), and Perception (4.6%). Furthermore, Survival Analysis proved that SATD is introduced very quickly after file creation (median 2 days) but takes significant time to be removed (median 423 days).
Executive Key Takeaways
- 1 1. [Core Debt Types] During AI agent development, there is a strong tendency to postpone requirement implementation or use workarounds for rapid functional deployment, which is particularly concentrated in Action components where tool integration is frequent.
- 2 2. [Component-Specific Risk] Enterprise AI leaders must recognize that technical debt accumulated in the agent's execution module (Action) and test code can hinder long-term maintenance costs and system stability, and should establish regular refactoring cycles.
- 3 3. [Managerial Implications] Further research is needed to determine the quantitative impact of implicit technical debt—not explicitly stated in code comments—on the actual reasoning accuracy and execution efficiency of AI agents.
Analysis of Technical Debt Distribution and Survival Cycle by AI Agent Architecture
First, technical debt in AI agent systems is dominated by Requirement Debt, which stems from rapid changes in functional requirements and implementation delays. According to the researchers’ analysis (Figure 4 of the source paper), 36.57% of all SATD consists of requirement debt. This is because, as agents evolve from text-centric to multimodal or from single-tool calls to complex tool collaboration, developers tend to introduce temporary measures and postpone full implementation rather than fully realizing new features.
Second, the Action module is the primary point of debt accumulation among architectural components. The analysis (refer to Figure 5 of the source paper) shows that Action components account for the highest share of debt at 39.7%. Unlike the Perception module, where data preprocessing is relatively standardized, the Action module lacks standardized design patterns for external API calls, tool integration, and environment interaction. Specifically, as LLM capabilities evolve rapidly, the pressure to continuously modify existing action logic leads to a proliferation of code-level workarounds.
Third, a severe temporal imbalance between the introduction and removal of technical debt is observed. Notably, debt in the Testing component recorded the highest values for both survival duration and commit count. This suggests that while developers prioritize fixing functional debt visible to users in the Brain or Action modules, they tend to neglect debt in test code, perceiving it as having lower impact.
Code Debt and Requirement Debt accumulated in the Action component of AI agents can lead to critical system failures beyond simple degradation of code quality. For example, a workaround that hardcodes the binding between an LLM and a toolkit may work quickly in an initial demo, but in a production environment, introducing multiple LLM instances or changes to the toolkit interface can cause mapping errors that disrupt the entire workflow.
Specifically, the fact that debt in the testing component persists the longest is a warning sign. If the complexity of the Action module increases while test coverage is insufficient or inappropriate test cases are neglected, it means there is no safety net to detect regression bugs during the refactoring process.
Analysis of AI Agent-Specific SATD Taxonomy
The researchers proposed a taxonomy consisting of 7 major categories and 15 subcategories based on an analysis of SATD identified in 137 open-source AI agent projects. This system is based on traditional software engineering debt classification models but expanded to reflect the unique architectural characteristics and development patterns of LLM-based agents. In particular, specialized debt types arising from the dynamic decision-making structures and external tool integration of AI agents are clearly distinguished.
Requirement Debt, which accounted for the largest share (36.57%), vividly demonstrates the rapid pace of functional evolution in AI agent development. This refers to temporary solutions introduced to meet immediate functional requirements at the expense of performance or completeness. It is further divided into ‘Enhancing Existing Features’ and ‘Adding New Features.’ For example, comments stating the intention to extend support for custom types or implement session-based state filtering fall into this category, suggesting that agents are rapidly evolving from simple text interactions to complex tool collaboration systems.
Code Debt was the second highest at 19.4%. This refers to low-quality implementation methods that hinder code readability and increase maintenance difficulty, divided into ‘Low Internal Quality’ and ‘Workaround.’ This includes logic temporarily applied before streaming features are implemented or dependency issues resulting from a failure to update to the latest library versions. According to the analysis, such workaround approaches account for a significant portion of all SATD, reflecting a development culture focused on rapid prototyping.
The area where the unique characteristics of AI agent systems are most evident is Configuration Debt. Accounting for 4.2% of the total, this debt addresses optimization delays related to LLM parameter tuning, system settings, or model replacement. Specific examples include delays in introducing ‘Flexible Quantization Config’ for efficient LLM fine-tuning or strategic modifications to use GPT-3.5 instead of GPT-4 for summary generation to ensure cost-efficiency during mass task processing. This shows that configuration deficiencies can directly impact operational performance, such as inference efficiency, API call costs, and system response time, beyond simple coding errors.
Other debt types include Documentation Debt, which recorded 13.3%. Notably, there was a high proportion of ‘Inconsistent Comments’ where the actual code was modified but the related comments were not updated. Additionally, Defect Debt (9.5%), where known defects were recognized but not immediately fixed, and Test Debt (6.8%), referring to a lack of test cases or verification, were identified. In the case of test debt, specific omissions such as the lack of verification cases for return values were reported.
Finally, there is Design Debt (6.5), which involves violating object-oriented design principles or the need to simplify complex logic. Major examples include modularization tasks such as splitting large methods into smaller units or separating UI logic into a distinct class, and the introduction of design patterns using specific templates. Thus, the SATD taxonomy for AI agents has shifted from the design-centric debt of traditional software to a form reflecting practical demands for rapidly changing requirements and LLM operational optimization.
Structural Cause Analysis of Debt Distribution by Component
AI agent architecture is broadly divided into three core modules—Perception, Brain, and Action—along with Configuration and Testing areas that manage the overall system. The Action component’s 39.7% share of debt noted above suggests that the most significant technical compromises occur at the execution stage, where the agent’s decisions are converted into actual results.
The fundamental reason for the concentration of debt in the Action component is the absence of standardized design patterns. In the case of the Perception module, the preprocessing and transformation of input data are relatively standardized, resulting in the lowest debt share at 4.6%. In contrast, the Action module varies by agent in terms of toolsets used, interaction strategies, and external API integration mechanisms; moreover, there is strong pressure to continuously modify execution logic as LLM capabilities evolve. This environment drives developers to produce workarounds for rapid functional implementation rather than robust architectural design.
The Brain component (23.7%), which has the next highest share of debt, performs core cognitive functions such as reasoning, planning, and memory management. Cross-analysis (refer to Figure 6 of the source paper) shows that the Brain and Configuration modules have a higher proportion of Code Debt compared to other components. Since the Brain module includes complex LLM reasoning logic and sophisticated planning algorithms, there is a high likelihood that complex logic or temporary code sacrificing readability is inserted during performance optimization.
The Configuration component (15.6%) also showed a high proportion of code debt, as decisions on settings—such as LLM parameter tuning or task scheduling strategy adjustments—are often delayed until late in development or fixed as temporary values. An example is applying temporary settings tailored to specific hardware without securing flexibility in Quantization Config. Such configuration debt can lead directly to operational risks, such as inference timeouts or increased LLM call costs, in the long term.
In the case of the Testing component (16.4%), while the volume of debt may be lower than other modules, it shows the most severe pattern in terms of debt persistence. The analysis shows that SATD in the testing area recorded the highest values for survival duration (77 days) and commit count (274 times). This proves that developers prioritize fixing functional defects in the Brain or Action modules that are directly visible to the user, while neglecting deficiencies in test code, judging that they do not immediately affect system performance.
Consequently, technical debt in AI agents accumulates differently depending on the nature of the component. Perception has little debt due to stable standard technologies; Brain and Configuration generate code-level debt due to algorithmic complexity; and Action carries the most extensive debt due to the non-standardized nature of integration environments. In particular, long-term debt found in the testing area acts as a structural vulnerability, removing the safety net for verifying the system when Action module complexity increases, thereby exacerbating the risk of regression bugs across the entire system.
Empirical Consideration of SATD Survival Cycle and Removal Patterns
To understand the dynamics of technical debt in AI agent projects, the researchers performed Kaplan-Meier Survival Analysis. The results showed that the median time from file creation to the first introduction of SATD was only 2 days, and that the median commit count was 0. This suggests that the majority of technical debt is intentionally inserted from the initial functional implementation stage, simultaneous with file creation.
Conversely, the time taken to actually remove such debt is very long. According to the analysis (refer to Figure 8 of the source paper), the median time to remove SATD is approximately 423 days (1.2 years), and the commit count reaches 804. This pattern—immediate introduction but highly delayed resolution—proves that developers strongly tend to choose short-term technical compromises for rapid prototyping and functional implementation, then neglect them long-term.
Examining the removal patterns over time, two concentrated removal phases are observed. The first occurs within a few hundred days of introduction; by day 365, the survival probability drops to 0.52, meaning approximately 48% of debt is resolved within one year. This is analyzed as being driven by the urgency of developers to prioritize requirement debt that immediately affects system consistency.
The second concentrated removal phase appears between 600 and 800 days after introduction. Manual review of removal cases during this period confirmed that many debts were removed not through simple bug fixes, but during comprehensive functional enhancements and code refactoring. This implies that movement to repay accumulated debt only occurs once the system reaches a certain level of maturity.
Notably, these debt removal activities have a significant correlation with project release milestones. Analysis via Git tags showed that some removed SATD were processed intensively within a 7-day window around releases. In the 600–800 day interval, the proportion of release-related removals rose to 11.7%. This is interpreted as developers shifting work priority from new feature development to code stabilization and quality improvement before a major milestone like an official launch.
When analyzed by component, debt survival duration showed distinct differences based on role and importance. The Brain component, responsible for core reasoning and decision-making, had the shortest median removal time at 25 days. The Action component also recorded a relatively short survival period of 44 days, as it affects visible behavior. This demonstrates that developers perceive debt directly linked to system intelligence and behavior as the highest priority for repayment.
The most critical point is the survival cycle of debt in the Testing component. According to the data (refer to Table 2 of the source paper), the median survival duration for debt in the testing area was 77 days and 274 commits, the highest among all components. This reveals a structural problem where debt in test code is continuously pushed down the priority list and neglected for long periods, as it is judged not to have an immediate impact on functional implementation or user experience.
Correlation Between AI Agent Project Scale and Debt
To define the quantitative relationship between the physical scale of AI agent projects and technical debt, the researchers performed a Spearman correlation test. The results confirmed a correlation coefficient of 0.6 and statistical significance of p < 0.001 between the number of code files and the occurrence of SATD. This proves a positive monotonic relationship where the amount of explicitly admitted technical debt increases as the codebase scale expands.
These results align with general software engineering principles and suggest that increased code complexity is a key driver for debt introduction in AI agent systems. As project scale grows, the number of modules and interfaces to manage increases exponentially, making it difficult for developers to fully control all design details. Ultimately, under tight schedules, developers choose to introduce workarounds for specific modules rather than maintaining overall system consistency, which acts as a mechanism leading to the increase of SATD alongside the increase in the number of code files.
Analysis of the results (refer to Table 1 of the source paper) shows a clear deviation in debt occurrence based on project scale. For example, AutoGPT, a large-scale project with approximately 820,000 lines of code (LOC), had 96 identified SATD instances, while private-gpt, a small-scale project of about 8,000 lines, had 19 instances. While larger projects have a higher absolute number of debt instances, there is no extreme gap in the ratio of SATD relative to total comments between large-scale projects (AutoGPT 2.02%) and small-scale projects (private-gpt 2.69%).
The researchers attributed the relatively low overall SATD ratio of AI agent projects, noted above, to the proliferation of mature open-source frameworks and pre-trained models. By utilizing deep learning frameworks like PyTorch and TensorFlow, agent-specific libraries like LangChain, and powerful models like GPT or LLaMA, the burden on developers to implement complex low-level functions from scratch has been greatly reduced.
Nevertheless, the discovery of a significant correlation between the number of code files and debt shows that in areas involving the design of agent-specific business logic or complex workflows—beyond the standardized functions provided by external frameworks—economies of scale still act as a trap for technical debt. In particular, as the number of files increases, dependencies between modules become complex, and the hardcoding or temporary bindings introduced to connect them quickly tend to accumulate as SATD.
In conclusion, AI agent development teams must recognize that technical debt tends to increase naturally as project scale expands and establish proactive refactoring strategies. As scale grows, the visibility of code for individual developers decreases; therefore, without MLOps governance that systematically tracks and manages SATD left in comments, there is a high risk that system maintainability will rapidly deteriorate alongside the external growth of the project.
Engineering Checklist for AI Agent Technical Debt Management
- Review Action Module Design Patterns: Are external API and tool integration logics implemented through abstracted interfaces without hardcoded workarounds?
- Explicitly Track Requirement Debt: Are ‘TODO’ or ‘FIXME’ comments in code converted into and managed as backlog tickets rather than simple notes?
- Prioritize Test Debt: Is there a scheduled window to resolve missing test code or insufficient assertions over new feature implementation?
- Ensure Configuration Flexibility: Are LLM parameters, quantization settings, and task scheduling strategies separated into configuration files or environment variables rather than being fixed in code?
- Refactor Brain Module Reasoning Logic: Is there redundant code causing low internal quality within complex reasoning chains or memory management logic?
- Verify Comment-Code Consistency: Are there inconsistent comments that remain in the code despite the debt already being resolved?
- Monitor Debt Density by Component: Is the debt resolution rate relative to the frequency of code changes in Action and Testing modules measured regularly?
- Establish Pre-release Debt Repayment Cycles: Is a ‘Debt Repayment Period’ operated to intensively remove accumulated SATD within 7 days prior to major milestones and releases?
The ‘Agent Debt’ Trap Created by PoC-Centric Development Culture
The results of this study clearly illustrate the side effects of the typical ‘speed-first’ approach in modern AI agent development. Specifically, the high prevalence of requirement debt suggests that developers focus on producing rapid results by modifying LLM prompts or adding simple wrapper functions rather than focusing on sophisticated architectural design.
From an enterprise perspective, the long survival cycle of ‘test debt’ is critical. Since AI agents are stochastic, they require far more robust testing frameworks than deterministic software, yet in actual development, test code is pushed to the lowest priority. This leads to a ‘debugging hell’ where the cause cannot be found when agent behavior changes unpredictably in a production environment.
Furthermore, the high debt density in the Action component proves that even if an AI agent has a ‘smart brain (LLM),’ if its ‘hands and feet (Action Module)’ are poorly designed, the reliability of the entire system converges to the level of its lowest component.
Ultimately, the key to building a successful agentic AI system lies not in LLM performance optimization, but in the fundamentals of software engineering surrounding it—namely, rigorous MLOps governance to manage and repay technical debt.
5 Principles for Sustainable AI Agent Development
Engineering principles to ensure long-term system viability beyond the temptation of short-term functional implementation.
- Principle of Execution Module Abstraction: All external tool integrations in Action components must avoid direct binding and be implemented through standardized interfaces.
- Principle of Debt Visualization and Assetization: All SATD comments in code must be immediately registered in the issue tracker for quantitative management and repayment planning.
- Principle of Test-First Repayment: Prioritize resolving missing test code and inappropriate verification logic over adding new features.
- Principle of Configuration Externalization: All settings affecting operational efficiency—such as LLM model selection, hyperparameters, and quantization settings—must be completely separated from the code.
- Introduction of Regular Repayment Cycles: Establish a mandatory technical debt repayment period before major releases to suppress the increase of system entropy.
References and Original Analysis Materials
An empirical study of self-admitted technical debt in AI agents
Authors: Suqi Fang, Zhipeng Gao, Tingting Bi, Haoye Wang, Fangcheng Qiu, Guanlin Chen, Xinyu Wang
Venue / Publisher: Journal of Systems and Software
This research briefing was written from the source paper with the help of AI tools (AI Research Agent · MLOps, AI Research Agent · Strategy). Reviewed by Jay PARK, who is responsible for it.
Read more

Papers & Reports ·
Working with AI: AI Adoption Strategies and Organizational Restructuring Based on Anthropic Enterprise Customer Interviews

Papers & Reports ·
How to Outcompete Your Client's AI

Papers & Reports ·
Risks of Governance Absence: Lessons from AI Adoption at the U.S. Small Business Administration (SBA)

Papers & Reports ·
Data and Methods for Identifying Artificial Intelligence-Related Patents