Google Finds that Technical Debt Can Derail Coding Agents Through "Agent Distraction"
Google researchers found that stale technical debt—like outdated TODO comments, obsolete bug references, and lagging documentation—causes AI coding agents to waste tokens and time on unrequested side-quests, a phenomenon they call 'agent distraction.' Analyzing distributed traces from thousands of engineers and hundreds of millions of agent steps, they discovered that 13% of sessions exposed agents to inline TODO/FIXME references, leading to unprompted detours in 6% of cases, with 41% targeting already-closed tickets and 57% causing scope creep on unrelated open bugs. These detours added 70% more steps, 77% more tokens, and 105% more wait time per session, prompting Google to deploy scanner agents that cleaned thousands of obsolete references with over 95% human reviewer acceptance.