
TL;DR
A study of 247,694 instruction lifetimes in 1,867 repositories shows agentic prompt files grow +226% on average because the reasoning behind each rule decays. Comments encoding that reasoning remove 99.3% of the excess.
Every AGENTS.md, CLAUDE.md, or copilot-instructions.md you have ever maintained has the same lifecycle: it grows, someone rewrites it from scratch, and then it grows again. A paper posted August 11 (arXiv:2608.11095) gives the phenomenon a name and, for the first time, identifies the root cause: "catastrophic remembering," the mirror image of the catastrophic forgetting studied in continual learning.
The claim is not that agentic prompt files grow. That has been known. The contribution is showing why: maintainers cannot delete instructions because the reasoning behind each one decays, so the only safe operation is appending. The author, Kushal Chakrabarti, tracks 247,694 individual instruction lifetimes across 1,867 GitHub repositories and then runs controlled maintenance experiments with a known-optimal prompt to prove the mechanism and test a fix.
Across 1,801 multi-version files, the average prompt more than triples its instruction count over its own lifetime (+226%), with total size up +140%. Each commit adds a net +4.9 instructions across 19,267 commits tracked. The median file ends its life at 39 instructions, and the 90th percentile sits at 131 - well past the range where instruction-following measurably degrades.
Growth is not gentle, either. 77.3% of instruction "deaths" arrive in a single commit that bulldozes the file wholesale or migrates it to a sibling file, not in careful pruning. And the ratchet survives the bulldoze: a file drops to 59.5% of its pre-rewrite count, then recovers to 91.5% within 10 commits. It regrows faster afterward, at 4.9% per commit versus 4.1% before.
The paper frames prompt maintenance as estimating an unobservable constraint set from censored feedback. Deleting an instruction safely requires proving it is excess, which means probing every subset of the remaining instructions - O(2^|D|) for a prompt of |D| instructions - because two instructions can each look free alone while both are needed together.
The one thing that collapses that cost to O(1) is knowing why an instruction was added. That latent reasoning decays. The empirical signature is a deletion hazard that falls with instruction age at -0.032 per commit (95% CI [-0.047, -0.019]) - the opposite of what instruction staleness predicts. And the multi-author interaction confirms the mechanism: hazard decays faster the more authors touch a file (beta -0.021, z = -11.7). More authors means more undocumented handoffs, meaning less surviving rationale.
This connects directly to what we already know about agent config files. A SCAM 2026 study found 91% of popular repos carry at least one of six configuration smells, with Context Bloat (files over 200 lines) second most common - see our AGENTS.md Configuration Smells write-up. It also squares with Anthropic's own finding that cutting 80% of Claude Code's system prompt produced zero regression, which we covered in Anthropic Removed 80% of Claude Code's System Prompt. Both papers show the same underlying truth: prompts carry more instructions than they need, and nobody can tell which ones are excess.
From the archive
Aug 12, 2026 • 7 min read
Aug 11, 2026 • 7 min read
Aug 11, 2026 • 6 min read
Aug 11, 2026 • 7 min read
Software engineering solved this problem decades ago with the comment. The paper's intervention is the same move applied to agentic prompts: annotate each instruction with the failure that motivated it, a hypothesis, and how it has fared. Comments are stripped before the prompt reaches the model, so they cost nothing at inference time and are visible only to the next maintainer.
In the controlled testbed (552 maintenance histories over an inverted IFEval, where the optimal prompt is known), the effect is dramatic:
| Arm | Excess size at T=15 | Excess size at T=51 |
|---|---|---|
| No comments | +60.4% | +211.3% |
| Comment-shaped noise | +53.2% | +147.9% |
| Informative comments | -5.8% | +1.4% |
Informative comments remove 99.3% of the excess size (+211.3% to +1.4% at 51 steps) at parity constraint satisfaction. Two controls matter here. Comment-shaped noise lands within noise of the no-comment arm, so the mechanism is the content, not the annotation itself. And the ablation on comment payloads shows a narrative of attempts without outcomes is the worst arm of all (+70.0%), worse than no comments: an unvalidated premise handed to the next maintainer is worse than none.
The effect compounds as maintainers get more capable. Across three maintainer tiers, the uncommented arm's excess rises from +67.7% to +571.9% - stronger agents ratchet harder - while commented prompts hold near their cover.
The WildIFEval replication moves from synthetic worlds to real prompts. Seeding a prompt with 16 noisy instructions drawn from other tasks costs 24.1pp of correctness on the true instructions already present (satisfaction drops from 65.6% to 41.5%). Comments recover most of it: satisfaction rises from 50.4% to 62.0% over three maintenance rounds, an 11.6pp gain. The magnitude is judge-dependent - a second judge measures 7.8pp - so treat the exact number as approximate, but the direction is consistent.
This is the missing half of the context-file ablation story we covered in July, where adding context files did not move correctness. That study tested presence versus absence; this one shows that the content and maintenance of those files is what matters. A bloated, uncommented prompt actively degrades instruction-following, and the degradation is recoverable.
The practical takeaway is cheap and immediate: when you add a rule to your agent config file, write the why next to it. One line naming the failure it prevents and the outcome it produced. The paper's closing question is the whole argument: "If English is the new code, why don't we have comments yet?"
Three things worth doing this week:
For more on keeping agent context lean, see our 98% Context Reduction Pattern, the case for skills over prompts, and the production checklist for agent skills. The pattern across all of them is the same: keep the always-loaded file small, and push task-specific knowledge into structures that load on demand.
Read next
A SCAM 2026 study of 100 top-starred repos catalogs six configuration smells in AGENTS.md and CLAUDE.md files: Lint Leakage in 62%, Context Bloat in 42%, Skill Leakage in 35%. Only 9 of 100 files were smell-free.
6 min readA controlled ablation across Claude Code and Codex, 17 real tasks, and 288 evaluated runs finds context-injection strategy does not measurably change correctness (bounded to under 10-15pp). The failures are implementation skill, not missing repository knowledge.
7 min readDatabricks measured the same model through different coding harnesses and found cost per task varied more than 2x at identical quality. Pi's minimalism explains why: roughly 1k tokens of system prompt and 3x less context per turn.
6 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
AI coding platform built for large, complex codebases. Context Engine indexes 500K+ files across repos with 100ms retrie...
View ToolLocally-scoped CSS for component-based apps. Plain CSS files with hashed class names, no runtime overhead, no learning c...
View ToolPersistent project instructions loaded every session; supports nested dirs.
Claude CodeFire when settings or CLAUDE.md files change during a session.
Claude CodeConfigure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI Agents
A SCAM 2026 study of 100 top-starred repos catalogs six configuration smells in AGENTS.md and CLAUDE.md files: Lint Leak...

A controlled ablation across Claude Code and Codex, 17 real tasks, and 288 evaluated runs finds context-injection strate...

Databricks measured the same model through different coding harnesses and found cost per task varied more than 2x at ide...

A new 106-issue benchmark across 49 repositories finds frontier coding agents rarely retrieve AI contribution rules on t...

A new paper wraps code into an OWL2 ontology with SPARQL property paths to answer multi-hop structural queries for codin...

Anthropic cut 80% of Claude Code's system prompt for Opus 5 and Fable 5 with zero regression on coding evals. The post l...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.