The file every session reads

Coding agents are steered by repository instruction files — the context or agent configuration files a tool reads at the start of every session. Like any documentation, they fall behind the code. A test folder moves; the file still points at the old path.

A paper posted to arXiv on 6 November treats that as documentation debt and asks what the interest payment is: the cost a stale instruction adds to every later agent session. The framing matters because evaluations that check only whether the task succeeded will not see it. The agent still finishes, the file still looks fine, and the debt keeps accruing.

An open notebook and pen on a desk
The authors studied three real stale instructions from active open-source repositories. Illustrative image. https://kaboompics.com/ · pexels · Pexels License

How they measured it

The authors took three real stale instructions from active open-source repositories, each a different kind of guidance: a test command, a code location, and a procedure for adding a component. Agents then fixed 22 maintenance tasks under three versions of each instruction — left stale, corrected to the current path, or removed entirely — with the code and the task held fixed.

That gives 732 trajectories across two models, analysed at the level of individual tool calls rather than at the level of pass or fail.

What they found

Agents follow stale guidance when it is relevant to the task in front of them, and the paper reports they sometimes do so even when correct information is available elsewhere in the repository. The instruction file is read first and trusted accordingly.

The cost is measurable. On the stale test command, Claude Sonnet 5.5 needed about two extra tool calls per run — a third more than it needed with the corrected command. Two calls is small in isolation. Multiplied by every session that touches the affected area, for as long as the line stays wrong, it is the interest the authors set out to measure.

A round wall clock mounted on red-painted wooden boards
The cost is paid by every later session that touches the affected area. Illustrative image. Wayne Jackson · pexels · Pexels License

Why it matters

Teams increasingly write these files deliberately, as a way of making agents useful in a large codebase, and then treat them as set-and-forget. This paper puts a number on the half of the maintenance problem that nobody is watching, and it suggests a cheap practice: when a path or a command in an instruction file changes, correcting it is worth roughly the same as deleting it is not. Removal was one of the study’s three conditions precisely because an absent instruction is better than a confidently wrong one.

What to watch

The study covers three instructions in three repositories, which is enough to establish the effect and not enough to size it across a codebase. The replication package is published, so the next useful result is someone running the same design over a repository’s full instruction file and reporting what fraction of it has gone stale.