← Back to feed
2026-08-11agentsreasoningalignment

Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Coding

Kushal Chakrabarti

PDF preview for Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Coding
Read on arXiv →

Key claim

Prompt comments can significantly reduce excess instructions.

In plain English

Imagine you're developing an AI that learns from user interactions, like a personal assistant that adapts over time. As you add more instructions to guide its behavior, you might find that it becomes increasingly difficult to manage these instructions without losing track of their original intent. This leads to a situation where the AI accumulates unnecessary instructions, making it harder to maintain accuracy and relevance — a phenomenon known as catastrophic remembering. Essentially, while adding new instructions is easy, removing old ones without risking errors becomes exponentially complex as the number of instructions grows. This is a significant challenge for anyone building long-term, adaptive AI systems. To address this, the paper introduces a method where prompt comments can help clarify the rationale behind instructions, effectively reducing the clutter. By applying techniques like IFEval, they show that these comments can drastically cut down on excess instructions and improve the AI's performance in real-world tasks. This approach not only helps in managing the instruction set but also enhances the overall effectiveness of the AI, suggesting that incorporating comments could be a vital step in developing more reliable agentic systems.

Novelty
8.0/10

The concept of catastrophic remembering introduces a new perspective on instruction management in agentic coding.

Reliability
7.5/10

The analysis of 247,694 instruction lifetimes provides a solid empirical foundation for the claims made.

Deep reliability assessment

The methodology supports the claim that agentic README files grow due to imperfect recall, but the extent of improvement from prompt comments may be overclaimed without broader validation.

Reproducibility

No open source code or dataset is mentioned in the paper.

Key figure

Figure 1 illustrates that prompts without comments grow without bound, while those with informative comments stabilize near the optimal size.