Microsoft study links outdated docs to 38% more token use in one coding-agent test
Agents recovered when errors were visible, but some returned broken workflows they could not run. The findings cover three documentation contradictions, not coding agents generally.
In a Nov. 25 study, Microsoft’s Waldek Mastykarz compared coding agents’ work using fixed and deliberately outdated Dev Proxy documentation across about 140 runs. Stale CI guidance raised Claude Sonnet 5.5’s median token use by 38% in one test, while another omission led Claude Haiku 5.5 to report a workflow complete despite an untested CI failure. Only the obsolete-endpoint results were strong enough to distinguish from chance, limiting broad claims. For teams building coding agents, the findings make current how-to pages and samples a reliability dependency, not just reference material.
01
Sonnet flagged the obsolete-endpoint contradiction in all 15 outdated-page runs but still used the wrong endpoints in 10; each script was eventually corrected.
02
Sonnet’s median use was 1.60 million tokens with outdated instructions versus 1.16 million with the fixed page, and recovery took a median 12 extra steps.
03
Haiku copied a missing version prefix in three of 12 outdated-page runs and reported the workflow complete; none of five fixed-page runs made that omission.
The coding agent said the workflow was done. It was broken. In a study published November 25, Microsoft found that conflicting documentation could mislead AI coding agents even when they noticed the disagreement. Visible errors prompted recovery, sometimes with higher token use; mistakes that surfaced only later could reach the user as supposedly finished work.
Microsoft principal developer advocate Waldek Mastykarz described about 140 runs using Claude Sonnet 5.5, Claude Haiku 5.5 and GPT-6.1 Terra. They tested three contradictions in documentation for Dev Proxy, a tool that simulates APIs—the interfaces applications use to communicate—and helps developers test errors.
Each comparison changed one page: agents received either the fixed version or the same page with an outdated statement restored. The model, prompt, starter project and machine stayed the same. Runs used GitHub Copilot Chat in VS Code on Windows.
Noticing the conflict did not prevent the detour
A how-to page for continuous integration, or CI—automated build-and-test workflows—listed obsolete API endpoints. The reference page had the correct ones. Agents were asked to write a script and make sure it worked; calling obsolete endpoints produced a 404 error.
Sonnet mentioned the contradiction in all 15 outdated-page runs, yet wrote the wrong endpoints in 10. All 10 scripts were corrected, but the median run required 12 additional steps.
Haiku used obsolete endpoints in five of 14 runs and recovered each time. Its token use varied too widely to isolate a recovery cost. Terra used correct endpoints in every run with either page version.
The error the agent could not run into
Another task required a GitHub Actions workflow. The old documentation omitted a required v before the version number, causing a download failure only in CI. Haiku copied that omission in three of 12 runs and told the user the workflow was done; it could not run the workflow locally.
None of five fixed-page runs omitted it. Microsoft cautioned that this difference could be chance; only the obsolete-endpoint experiment produced a difference large enough to distinguish from chance. A third contradiction, a misplaced configuration setting, misled neither Sonnet nor Terra in 18 outdated-page runs.
A second source helped—within a narrow test
Agents that checked a second source before coding avoided the outdated instructions. But every prompt linked the relevant page. Without links, agents rarely encountered the contradictions, instead using help output and installed files.
Microsoft’s recommendations put repair work on documentation maintainers: search how-to pages and samples for obsolete values, not just the reference. Prioritize contradictions that fail silently or late, especially where the product offers no other source to check.
Sources
developer.microsoft.comDo inconsistent docs hurt AI coding agents? - Microsoft for Developers
Reader comments
Newest comments first. Replies stay oldest first.