AI辅助软件开发中的上下文腐烂:将文档一致性技术用于AI配置工件
Context Rot in AI-Assisted Software Development: Repurposing Documentation Consistency for AI Configuration Artifacts
AI总结:
针对AI编码助手的配置文件(如CLAUDE.md)随软件演化而变得陈旧的问题,提出利用现有文档一致性工具检测上下文腐烂,并在356个仓库中发现23.0%存在过时代码引用。
摘要:
开发者越来越多地通过配置文件(如CLAUDE.md、AGENTS.md和.cursorrules)为AI编码助手提供持久上下文。这些文件描述代码元素、架构和开发约定,形成指导AI工具跨会话行为的上下文。随着软件演化,这种上下文可能变得陈旧,我们称之为上下文腐烂。虽然AI配置工件是新的,但底层的一致性问题与数十年的软件文档研究相关。研究人员已构建工具来检查文档与代码之间的一致性,涵盖README文件、代码注释、API文档、架构描述和安装说明。我们认为,这个现有工具箱是检测上下文腐烂的直接起点,并提出了一个研究路线图,将文档一致性方法映射到这一新环境中的相应问题。作为初步证据,将现有的README/wiki一致性检查器应用于356个仓库的统计代表性样本,发现23.0%的仓库中存在过时代码元素引用,表明传统的文档一致性工具已经能够发现上下文腐烂。
英文摘要:
Developers increasingly provide AI coding assistants with persistent context through configuration files such as CLAUDE.md, AGENTS.md, and .cursorrules. These files describe code elements, architecture, and development conventions, forming the context that guides AI tool behavior across sessions. As software evolves, this context can become stale, a phenomenon we call context rot. While AI configuration artifacts are new, the underlying consistency problem connects to decades of software documentation research. Researchers have built tools to check consistency between documentation and code, spanning README files, code comments, API documentation, architecture descriptions, and installation instructions. We argue that this existing toolbox is an immediate starting point for detecting context rot, and we present a research roadmap mapping documentation consistency approaches to corresponding problems in this new setting. As preliminary evidence, applying an existing README/wiki consistency checker to a statistically representative sample of 356 repositories identifies stale code element references in 23.0% of repositories, showing that traditional documentation consistency tools can already surface context rot.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。