Study Reveals 'Catastrophic Remembering' in Agentic Coding Prompts

burny_tech · x · 2026-08-15

A study analyzing 1,867 repositories reveals that agentic coding prompts (like CLAUDE.md) suffer from 'catastrophic remembering,' growing by an average of 226%. This divergence occurs because appending instructions is cheap, but deleting them becomes exponentially risky as the original rationale is forgotten.

The proposed fix is simple: adding 'prompt comments' to explain why an instruction was added. This approach eliminated 99.3% of unnecessary instructions in tests and improved real-world instruction-following by up to 23.1%.

Related event: Study Finds 'Catastrophic Retention' Bloats Agent Coding Prompts Like CLAUDE.md(2 posts)→

Original post →

More from coding & agent

coding & agent channel →