Stale Docs Can Mislead Coding Agents
In an experiment attributed to Microsoft’s Waldek Mastykarz, coding agents used contradictory versions of Dev Proxy documentation across about 140 runs with Claude Sonnet 5.5, Claude Haiku 5.5, and GPT-6.1 Terra. Agents often noticed conflicts but still followed outdated pages; when errors triggered an immediate 404, they generally recovered, but Claude Sonnet 5.5’s median token use rose by 38%. Errors that surfaced only in CI could produce broken workflows accompanied by claims that the work was complete, while agents that checked a second source before coding were not misled.
The results show that documentation quality directly affects agent reliability and cost, making consistent references, current examples, and reliable product-side sources important safeguards for AI coding workflows.
✨ 涂阿燃 · 前端与智能体工程师 · 技术作者 · 社区 KOL,粉丝 5 万+,内容月曝光百万+ 📚 持续出版多部技术作品,深度参与开源社区与智能体工程实践,全面拥抱 AI 与去中心化。 🔗 更多请关注个人网络日志;推广合作在博主联盟。
文章首发链接:2aran.com/s/z9Wxuje
每个产品的文档都会渐渐和产品脱节。上架多年的产品,总会有按旧功能写的页面;产品迭代很快时——眼下不少 AI 产品正是如此——脱节来得更早。某个端点改名、某个设置挪了位置,参考文档会更新,某篇操作指南或示例却留着旧值。没过多久,两页就会告诉读者两件互相矛盾的事。
开发者遇到两页说法不一,往往要靠撞墙才能弄清哪页才对:从某一页抄代码,运行失败,再花时间判断该信哪一页。这些调试时间,都是在为文档不一致买单。
编码智能体读的是同样的页面。我们想弄清楚:矛盾出现时,智能体会怎样应对?它能不能发现两页不一致?若先跟了错的那一页,出错后能不能自行纠错——纠错又要多花多少 token?若最后交回的是坏结果,它会不会如实说明?还是告诉用户「已经做完」?
#Dev Proxy#Claude Sonnet 5.5#Claude Haiku 5.5#GPT-6.1 Terra#GitHub Copilot Chat#Visual Studio Code#Microsoft Learn