这条论文用24万条指令数据告诉你CLAUDE.md为什么越写越长,还给了注释法这个解法,提升多到23%。
一项研究追踪了1,867个仓库中247,694条指令的生命周期,发现CLAUDE.md等指令文件会无限增长。追加一条指令无需成本,而删除一条需付出指数级验证成本,因此无人删除。文件中的提示词在生命周期内增长超过三倍,每次提交净增4.9条指令。研究者提出用注释记录指令理由,在可验证环境中消除了99.3%的多余指令,并将真实智能体指令遵循度提升至多23.1%。
Why does CLAUDE.MD keep growing? If you maintain a CLAUDE.md or an AGENTS.md, this one is worth you...
Why does CLAUDE.MD keep growing? If you maintain a CLAUDE.md or an AGENTS.md, this one is worth your time. (bookmark it) This work traces why these files grow without bound. Appending an instruction is free. Deleting one after its rationale is gone costs exponential verification, so nobody removes anything. Across 247,694 instruction lifetimes in 1,867 repositories, prompts more than tripled over their lifetime and gained 4.9 net instructions per commit. The older an instruction gets, the less likely anyone is to delete it. The proposed fix is comments. Writing down the reasoning behind an instruction removed 99.3% of excess instructions in verifiable settings and improved real agentic instruction-following by up to 23.1%. Paper: arxiv.org/abs/2608.11095 Track more trending AI papers in our academy: academy.dair.ai 💬 2 🔄 0 ❤️ 6 👀 936 📊 3 ⚡