mlsanityData to 7 Oct 2026

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

arXiv 2608.11095 ↗First posted 11 Aug 2026cs.AI cs.LG cs.SEcited by 2

On the map: LLM agents and tool use → Agent memory systems

Abstract (arXiv)

Agentic coding READMEs like CLAUDE.md grow without bound in real repositories, stopping only when the repository retires or someone rewrites the file wholesale. We trace this to imperfect recall: appending an instruction is always cheap, but once an instruction's rationale is gone, deleting it without risking a correctness regression costs O(2^|D|) in a prompt of |D| instructions. We name the resulting divergence catastrophic remembering, the inverse of catastrophic forgetting around which continual learning is organized. First, we characterize this phenomenon across 247,694 instruction lifetimes in 1,867 repositories: agentic prompts grow without bound, more than tripling over their lifetime (+226%), gaining +4.9 net instructions every commit; further, the older an instruction gets, the less likely it is to be deleted (log-hazard -0.032/commit). Then, we show that prompt comments can halt the growth: inverting IFEval yields verifiable worlds whose optimal prompts are known, and there comments encoding latent reasoning remove 99.3% of excess instructions (+211.3% to +1.4%). Finally, applying the same inversion to WildIFEval, we show that prompt comments can improve real-world agentic instruction-following by up to 23.1%. If English is the new code, why don't we have comments yet?

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 15 of its 43 references that are in the map. First posted on arXiv 11 Aug 2026.

Builds on

15 of 43 references.

Closest ancestors · 2

Same direction, newest first

  1. 2026FSFM: A Biologically-Inspired Framework for Selective Forgetting of Agent Memory22 Apr
  2. 2025Zep: A Temporal Knowledge Graph Architecture for Agent Memory20 Jan

Other references · 13

  1. 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
  2. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
  3. 2021Learning to Prompt for Continual Learningcited by 938
  4. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  5. 2022DualPrompt: Complementary Prompting for Rehearsal-free Continual Learningcited by 635
  6. 2022CODA-Prompt: COntinual Decomposed Attention-based Prompting for Rehearsal-Free Continual Learningcited by 446
  7. 2020Learning to Update Natural Language Comments Based on Code Changescited by 30
  8. 2025Agent READMEs: An Empirical Study of Context Files for Agentic Codingcited by 21
  9. 2020Deep Just-In-Time Inconsistency Detection Between Comments and Source Codecited by 20
  10. 2022What Makes a Good Commit Message?cited by 19
  11. 2024Prompting in the Wild: An Empirical Study of Prompt Evolution in Software Repositoriescited by 16
  12. 2026On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agentscited by 16
1 more
  1. 2025WildIFEval: Instruction Following in the Wildcited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026The Epistemics of Agent Memory: Measuring, and Governing, the Consolidation Decision in Long-Horizon LLM Agents
  2. 2026Blast Radius
  3. 2026Useful Memories Become Faulty When Continuously Updated by LLMs
  4. 2026What to Keep, What to Forget: A Rate--Distortion View of Memory Compaction in LLMs and Agents
  5. 2026Compiled Memory: Not More Information, but More Precise Instructions for Language Agents
  6. 2026When Retrieval Fails Before It Begins: Structurally Indirect Prerequisite Eviction as a Retention Failure in Agentic Memory
  7. 2026Memory as Infrastructure: Reliability Engineering for Persistent Agent Memory in Months-Long LLM-Assisted Development
  8. 2026When Does Continual Learning Require Learning