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

How to watch Lucy Worsley's Keys to the Castle online from anywhere
0TechRadar

Nvidia confirms it is investigating possible third-party data breach, says it will 'continue to monitor the situation'
0TechRadar

We tested the best cordless vacuums against each other – here are our current winners
0TechRadar

Get a 15-inch Dell laptop for just $399 in this Black Friday deal — data centers may have stolen all the RAM, but with an Intel Core 3 CPU and a massive 512GB SSD nothing else comes close
0TechRadar

Threads app for iPad launching ‘very soon’
09to5Mac

AI Mode adding Google Drive, Wallet, & Gemini app integration
09to5Google