---
title: "Agent Distraction"
description: "AI coding agents treat inline TODO(bug/…) and FIXME(bug/…) comments as actionable instructions, often chasing bugs that are already closed, fixed, or unrelated to the developer’s original prompt. Among unprompted detours—which account for 83% of actions—41% chase already-closed tickets (32% fixed/verified, 9% obsolete/won’t-fix) and 57% trigger scope creep on open bugs. These distractions add substantial overhead: 70% more steps, 77% more tokens, and 105% more wait time per session, all statistically significant at p<0.0001. The post illustrates two trajectories: investigating long-fixed bugs and unilaterally editing code based on a TODO. Automated cleanup agents now scan the codebase, verify each TODO’s relevance using bug status and history, and delete only obsolete references, achieving 95% acceptance and removing thousands over six months."
---

# Agent Distraction

[Google](https://yomu.fyi/company/google) · Sam Saccone, Madhuri Garikapati · Nov 6, 2026

**Type:** Problem & solution

## Summary

AI coding agents treat inline TODO(bug/…) and FIXME(bug/…) comments as actionable instructions, often chasing bugs that are already closed, fixed, or unrelated to the developer’s original prompt. Among unprompted detours—which account for 83% of actions—41% chase already-closed tickets (32% fixed/verified, 9% obsolete/won’t-fix) and 57% trigger scope creep on open bugs. These distractions add substantial overhead: 70% more steps, 77% more tokens, and 105% more wait time per session, all statistically significant at p<0.0001. The post illustrates two trajectories: investigating long-fixed bugs and unilaterally editing code based on a TODO. Automated cleanup agents now scan the codebase, verify each TODO’s relevance using bug status and history, and delete only obsolete references, achieving 95% acceptance and removing thousands over six months.

## Context

As coding agents gain more autonomy in planning and research, they ingest stale TODO(bug/…) comments from the codebase, which can misdirect them toward irrelevant or already-resolved bugs, wasting time and tokens.

## Approach / What changed

Automated coding agents that scan the entire codebase for TODO(bug/…) and FIXME(bug/…) references, cross-reference the bug status against live bug tickets, and examine file and codebase history to determine whether the TODO is still load-bearing. Only when the agent confirms the TODO is obsolete does it submit a code review to delete it, achieving over 95% human acceptance.

## Takeaways

- 13% of agent sessions encounter inline TODO(bug/…) references; 6% of those exposures trigger follow-up actions, and 83% of such actions are unprompted by the developer.
- Unprompted detours from TODOs fall into two failure modes: 41% chase already-closed bugs (fixed or obsolete), and 57% expand scope on open bugs the developer didn’t ask about, adding 70% more steps, 77% more tokens, and 105% more wait time per session.
- Automated cleanup agents that verify TODO relevance through bug status, file history, and code changes removed thousands of obsolete references over six months with a 95% human review acceptance rate.

## FAQ

### How common are agent distractions from TODOs?

Analysis of millions of sessions shows 13% of file-reading sessions expose agents to TODO(bug/...) comments, and 6% of those exposures lead to subsequent action, with 83% of actions being unprompted. This translates to a significant proportion of sessions experiencing wasted steps, tokens, and time.

### What types of distractions do TODOs cause?

Two main types: obsolete detours, where agents investigate bugs that are already fixed or won't-fix (41% of unprompted detours), and scope creep, where agents work on open bugs outside the original task (57% of detours), often leading to code changes the developer didn't request.

### How did the team fix the TODO distraction problem?

They deployed automated agents that scan the entire codebase for TODO(bug/...) references, cross-reference bug ticket status, and examine code history to confirm each TODO is truly obsolete. Only confirmed stale TODOs are submitted for review, resulting in removal of thousands of references with 95% human review acceptance.

**Tags:** [AI Agents](https://yomu.fyi/topic/ai-agents), [Code Quality](https://yomu.fyi/topic/code-quality), [Debugging](https://yomu.fyi/topic/debugging)

- Source: [Google](https://developers.googleblog.com/agent-distraction)
- Source URL: https://developers.googleblog.com/agent-distraction
- Ingested by Yomu: 2026-11-06T18:00:18.179Z

[Read original post](https://developers.googleblog.com/agent-distraction)
