AI & ML
Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Coding
arXiv cs.SE0 views
arXiv:2608.11095v2 Announce Type: replace-cross Abstract: Agentic prompts like CLAUDE.md grow without bound in real repositories, stopping only when history ends or someone rewrites the file wholesale. We trace this to imperfect recall: appending an instruction is always cheap, but once an instruction's latent reasoning is gone, deleting it without risking a regression costs O(2^|D|) in a prompt of |D| instructions. Successive edits destroy that latent reasoning, additions outrun deletions and prompts grow until agents become non-functional -- catastrophic remembering. First, we characterize this phenomenon across 247,694 instruction lifetimes in 1,867 repositories: agentic prompts grow nearly monotonically, more than tripling over their lifetime (+226%) at +4.7 net instructions per commit. Deletion hazard decays geometrically with instruction age, consistent with imperfect recall and with no other rival we test. Then, we show that prompt comments can halt the growth: in verifiable worlds built by inverting IFEval, comments encoding latent reasoning remove 99.3% of excess size (+211.3% to +1.4%). Finally, we show comments yield smaller real-world and coding-convention prompts than existing context maintainers, grow more effective with model capability and, at small scale, improve instruction-following in real repositories by 17.7%. If English is the new code, why don't we have comments yet?
Source:https://arxiv.org/abs/2608.11095PreviousDeclarative Skills for AI Agents in Knowledge-Grounded Tool-Use WorkflowsNextScopeAct: Scoping Decision Models for Reliable Multi-Step Execution in Mobile GUI Agents
Related posts
Your Cloudflare settings are hiding your site from ChatGPT. Here's how to check.
0dev.to
Cockpit gauges and a cleaner documents layout
0dev.to
How to detect eval-set contamination (data leakage) in your LLM tests
0dev.to Testing
HTML to Markdown, and the heading anchors GitHub makes
0dev.to Testing
Why did my Kubernetes change disappear? Argo CD Self-heal explained
0dev.to Kubernetes
SwiftLing: a WPML, Polylang and TranslatePress alternative with a different architecture (WP-CLI + your own API keys)
0dev.to OpenSource