Skip to content

NewsDevView as Markdown

Google finds coding agents detour on stale TODO comments

On November 6, Google published an analysis of coding agents following TODO bug comments in code into work nobody asked for. In 6% of sessions that exposed a reference the agent acted on that bug, and 83% of that action was unprompted.

Source Google Developers Blog

On November 6, Google published "Agent Distraction" on its developers blog. It analyzes coding agents that read TODO(bug/...) and FIXME(bug/...) comments left in code and then investigate or fix bugs the developer never asked about. The central point is that what a person skims past in code, an agent reads as a call to action.

Google cross-referenced each comment an agent met in its session traces against the live status of the linked bug and against the user's prompt. In 13% of sessions that read files, the agent was exposed to such a bug reference, and in 94% of encounters it ignored the comment. In the remaining 6% it acted on that bug, and 83% of that action was unprompted.

Image: Google Developers Blog

Of the detours nobody asked for, 41% followed tickets that were already closed, and more than half involved bugs that were still open. In some of those open cases the agent edited code. Google reports that sessions with such a detour took 70% more steps, 77% more tokens and 105% more waiting time. Those figures come from a regression model that controls for developer, codebase complexity, task type and similar factors, and because they are estimated from trace data they should not be read as the result of an experiment.

Google addressed the problem on the code side. It built agents that find references to bugs marked fixed or obsolete, and because bug status alone was not enough, those agents also reviewed the bug history, the file history and sometimes years of code changes. They sent a deletion for review only when they could confirm that the intent behind the TODO was obsolete. Over six months they removed thousands of stale references, and human reviewers accepted more than 95% of them.

The signal the article measures is limited to TODO(bug/...) and FIXME(bug/...) references, and the models, agent products and time window behind the study are not stated in the article as read. Read plainly, the practical takeaway of this announcement is that teams using coding agents have one more reason to clear out TODOs that point at closed bugs.