Why CLAUDE.md Keeps Growing? Paper Reveals 'Catastrophic Remembering' in Agents
rohanpaul_ai · x · 2026-08-14
A study analyzing 1,867 GitHub repositories highlights a ratchet problem in agentic instruction files (like CLAUDE.md): instructions are easily added but hard to delete.
- The Phenomenon: Instruction files tripled in size on average (growing 226%), with older instructions becoming less likely to be removed. The paper coins this "catastrophic remembering," where instructions survive long after their original reasoning is forgotten.
- The Fix: Researchers propose a classic software engineering practice: attach comments documenting the failure, hypothesis, and outcome behind each instruction, then hide these comments from the model.
- Results: In a 51-step controlled eval, informative comments slashed excess prompt size growth from +211.3% down to +1.4% without degrading constraint satisfaction.
Related event: Study Reveals 'Ratchet Effect' Causing Infinite Growth in CLAUDE.md(2 posts)→
More from coding & agent
- Dev shows agents auto-verifying and sending SAFE fundraising docs in parallel — Scobleizer · 2026-11-30
- Ex-Citadel MD: AI will automate equity long-short workflows within 3 years; job seekers should build eval suites — _AustinCalvert_ · 2026-11-30
- Why Google bans users: wrapping Gemini CLI in Claude Code violates consumer ToS — thomasahle · 2026-11-30
- After two Claude account bans, a dev switches to Google AI and moves his Anthropic stock bets to Google — yangyi · 2026-11-30
- Antigravity remote control may not be enabled for enterprise accounts — gharik · 2026-11-30
- How Much Agent Swarm Hype Is Just Distributed Systems Rediscovered? — edgarpavlovsky · 2026-11-30