# When Instruction Files Go Stale: Documentation Debt and Hidden Cost in Coding Agents

DevFeed: [When Instruction Files Go Stale: Documentation Debt and Hidden Cost in Coding Agents](<https://devfeed.tech/articles/when-instruction-files-go-stale-documentation-debt-and-hidden-cost-in-coding-agents-124039.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.09802>)

Author: Tural Mehtiyev, Biruk Tadesse, Lawrence Arkoh, Wesley Assun\\c{c}\\~ao

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Tech Debt](<https://devfeed.tech/topics/tech-debt.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>)

Tags: [behavior](<https://devfeed.tech/tags/behavior.md>), [claude-sonnet-5-5](<https://devfeed.tech/tags/claude-sonnet-5-5.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [evaluations](<https://devfeed.tech/tags/evaluations.md>), [instructions](<https://devfeed.tech/tags/instructions.md>), [maintenance](<https://devfeed.tech/tags/maintenance.md>), [open-source](<https://devfeed.tech/tags/open-source.md>)

## AI overview

In experiments on 22 maintenance tasks and 732 tool-call trajectories, coding agents followed stale repository instructions when those instructions were relevant, sometimes despite correct information elsewhere. For a stale test command, Claude Sonnet 5.5 used about two extra tool calls per run--roughly one third more than with the corrected command; researchers detected no difference in the other two cases, involving a code location and a component-adding procedure. Agents generally recovered from immediate failures but did not repair the instruction files. Correcting instructions eliminated operations on obsolete paths, while removing them prevented most. The findings show that task success alone can miss recurring costs from stale guidance.

## Source excerpt

arXiv:2611.09802v1 Announce Type: new Abstract: LLM-based coding agents such as Claude Code are guided by repository instruction files (also called context files or agent configuration files) like AGENTS.md and CLAUDE.md, which are read in every agent session. As any documentation artifact, these files can fall behind the code and become stale (e.g., a test folder moves, but the file still points to the old one). In technical debt terms, such a stale instruction is documentation debt, and its interest is the cost it adds to every later agent session. Evaluations that check only task success can miss this cost, and the stale file can persist. In this study, we ask what leads agents to act on a stale instruction, how it affects their behavior and at what cost, and how they recover. We study three real-world stale instructions from active open-source repositories in depth, each a different kind of guidance: a test command, a code location, and a procedure for adding a component. Agents fix 22 maintenance tasks under three versions of each instruction (left stale, corrected to the current path, and removed), with the code and the task held fixed, and we analyze 732 trajectories of two models at the level of individual tool calls. We find that agents follow stale guidance when it is relevant to their tasks, sometimes even when correct information is available elsewhere. On the stale test command, Claude Sonnet 5.5 needed about two extra tool calls per run, a third more than with the corrected command; in the other cases, we could not detect a difference. Although agents generally recovered from the immediate failures, none repaired the underlying instruction file. Correcting the instructions eliminated operations on obsolete paths, while removing them prevented most. Our findings show that task success alone can hide the costs of documentation debt, highlighting the need to evaluate agent behavior beyond final outcomes.