A context file is a behavioral contract, not documentation. Claude Code reads CLAUDE.md at the start of every session and treats it as ground truth for that session the CLAUDE.md guide. Cursor's rules work the same way: contents of an applied rule are included at the start of the model context, giving the agent persistent guidance across completions Cursor rules documentation. AGENTS.md sits at the top of the conversation history, right below the system prompt, and gets loaded on every single request A Complete Guide To AGENTS.md.
That always-loaded property is the whole problem. A path written six months ago is still being injected into every prompt, and nothing in the toolchain complains when the target disappears. Practitioners who write about this describe stale information as actively poisoning the context: file paths change constantly, and an agent that reads the old path on every request will keep building on a structure that no longer exists A Complete Guide To AGENTS.md.
The research picture is consistent. An empirical study of over 3,000 GitHub projects found that 28.9% of the most popular projects currently contain at least one outdated code element reference, and 82.3% were outdated at least once during their history, with references typically stale for years before anyone noticed Detecting Outdated Code Element References. Outdated documentation also carries measurable cost: new hires take two to three months longer to become productive when docs are not current, and developers spend three to ten hours a week searching for answers that should already be documented How to Catch Documentation Drift.
Two forces make context files drift faster than ordinary docs. First, they are edited by agents themselves, so /init style generation dumps a directory tree into the file, and that tree is wrong the moment anyone moves a module. Auto-generated context files were found to reduce task success by 2 to 3% while raising cost by over 20%, largely because they duplicate discoverable information Stop Using /init for AGENTS.md. Second, context is a finite attention budget: every token spent on a dead path is a token not spent on the task, and recall degrades as context grows Effective context engineering for AI agents.



