agentic coding quality debt

Agentic AI velocity gains vanish within 2 months without code health above 9.5 JFokus
TL;DW
  • AI coding delivers 2-3x task speedup, but initial velocity gains disappear after 2 months due to AI-induced code complexity if code health isn't maintained.
  • Healthy code (code health score 10) reduces AI defect rates dramatically; unhealthy code (below 9) causes AI break rates to escalate beyond acceptable levels and increase defects by 60%.
  • Average enterprise codebase has code health of 5.15—far below the 9.5 minimum needed for AI safety; legacy code will bottleneck agentic adoption without uplift.
  • AI frequently generates code with low modularity, deep nesting, missing error handling, and poor structure—unhealthy code it cannot reliably maintain or extend itself.
  • Use MCP servers integrated with AI assistants to enforce code health checks automatically; with feedback loops, AI fixed 90-100% of code health issues versus only 50-55% without guidance.
  • Require 100% code coverage on new/modified code and existing codebase to prevent AI from deleting failing tests and ensure verification; coverage became one of speaker's most important KPIs.
  • Focus manual code review on tests, not implementation; define specifications as executable test code first, then trust automated safeguards (MCP, linting) for implementation verification.
  • Healthy code reduces token consumption by 29-50% compared to unhealthy code for identical tasks; as token pricing increases, code health becomes a financial imperative.
  • Architectural design principles (CLEAR framework) must complement code health to limit blast radius during evolution and enable safe agentic architecture at scale—still largely unsolved.
  • The majority of software costs (up to 95%) occur after first release during evolution and maintenance, where code quality and architecture determine success with agentic tools.

Adam Tornhill presents research showing 2-3x task speed gains evaporate in weeks as AI-induced complexity accumulates. Covers three mitigations: MCP server health enforcement, mandatory 100% test coverage, and CLEAR architectural principles — plus evidence that healthy code cuts token consumption 29-50%.