AI Compass / Quick reads
Old notes send agents on detours
Google has measured it: when coding agents come across old hints about bugs in the code, they sometimes follow them up without being asked. Such sessions need 70% more steps and 77% more tokens. Give plans a status, let the code win when something differs, and clear out what is outdated regularly.
In depth: Clearing out outdated plans and notes – so agents don't follow old trails
Google has measured how often coding agents get distracted by old hints in the code. It evaluated millions of sessions from thousands of developers at Google. The measuring point was comments of the form TODO(bug/…) that refer to a ticket. In 13% of sessions, almost one in seven, the agent came across such a comment. Mostly it left it alone. In 6% of cases it followed up the ticket, and in 83% of those nobody had asked it to. Just over two-fifths of these unrequested detours concerned tickets that had long been closed. In more than half, the ticket was still open but not part of the assignment. A session with such a detour needed on average 70% more steps, 77% more tokens and more than twice as much waiting time. Google then built agents that find outdated hints, check their history and only then propose a deletion for review. In six months, thousands of outdated hints disappeared this way, and the reviewers accepted more than 95% of the proposals. AI LABS transfers this to instruction files like the CLAUDE.md, to plans and to memory notes. In its own demo project, the login switched to “email only” in the middle of the build, while the plan still listed sign-in with Google. A later session would have read that as a missing feature. According to the video, Claude Code and Codex followed the outdated file instead of the code in nine out of ten cases in a study. A rule “the code applies, report discrepancies” is said to have reversed that. The video doesn’t name the study.
Tool and alternative
Google’s clean-up agents are internal and not available. AI LABS has its own “sweep” skill built: it compares notes and plans with the code and the project history, only reports, and only moves things into an archive once you agree. A hook then prevents the agent from reading the archive. The finished skill is only available in the channel’s paid community, but it can be described in one sentence. Without extra tools, the rules in the card Clearing out outdated plans and notes are enough. What belongs in a lean CLAUDE.md anyway is covered in Maintaining your Claude Code setup.
Sources
- Google Developers Blog, Sam Saccone and Madhuri Garikapati, “Agent Distraction”, 6 Nov 2026, retrieved 20 Nov 2026
- AI LABS, “Google Just Released Something To Fix Claude Code’s Biggest Problem”, 17 Nov 2026 (4:22, 6:30, 9:12–12:25)
Advertising in the source: the video is sponsored by Firecrawl, plus self-promotion for AI Labs Pro, Autometa and The Roundup. Google’s post contains no advertising.
You can try this with your team in the AI Lab. See the AI Lab