Google tests TODO comment cleanup for agents
Google engineers Sam Saccone and Madhuri Garikapati highlighted the issue of 'agent distraction,' where AI coding agents get derailed by stale technical debt such as obsolete TODO comments. An investigation across thousands of engineers found that exposure to these references led agents into unrequested side-quests and scope creep, substantially increasing token consumption, steps, and wait time. To mitigate this, Google developed scanner agents that analyze git history and safely remove obsolete TODO references with high human acceptance. Open article →
- Google Finds that Technical Debt Can Derail Coding Agents Through "Agent Distraction"
- Google: Old TODO comments send coding agents chasing bugs fixed years ago
- Agent Distraction - Google Developers Blog
- Those inline TODO bug comments you hope to get to later? Yeah, you're distracting the heck out of...
- Agent Distraction