Audit your Agent files

AddyOsmani.com ยท rss ยท 2026-08-27 source โ†— Reader ๐Ÿ–ฅ๏ธ

Agent Config DecayAgent HarnessAgent MemoryAgent SkillsAgent Context Files (CLAUDE.md / AGENTS.md)HooksMCP (Model Context Protocol)Progressive Disclosure
Coding-agent configuration (CLAUDE.md/AGENTS.md, skills, hooks, MCP servers, memory) has a half-life because models and harnesses keep improving past what the rules were written for, so instead of accumulating it indefinitely or purging it wholesale, developers should audit it on a recurring cadence โ€” using tools like /doctor, questioning whether each item's original reason still holds, and testing removal before committing to it.

practical ยท mixed โ€” Argumentative-practical guide (you should audit your agent configuration on a cadence) built on cited empirical research and reinforced by personal-experience narrative and expository walkthroughs of tooling (/doctor vs claude doctor, skill loading budget).

Structure

PartRole
Opening framing: skill/CLAUDE.md fatigue in developer discourse, and the tension between official 'delete periodically' guidance and the fear that deleting will silently degrade qualitycontext
Why agent configuration rots: the four-step ratchet cycle (error -> add rule -> file grows -> adherence drops), illustrated with the author's own CLAUDE.md failure modesevidence / mechanism
Cited empirical research: the June 2026 100-repo config-smell study, the 288-run/17-task context-file study, the personalized-vs-generic-skill study, the source-vs-summary study, and Anthropic's 80%+ system-prompt cutevidence
What the author found auditing his own setup with /doctor, including the forgotten 'anti-slop' skills and the 250-to-25 anecdotenarrative evidence
Clarifying what an installed skill actually costs (discovery budget vs. invocation-time body load) and distinguishing /doctor from claude doctorconceptual clarification
Prescribed workflow: audit on a cadence, then test removal (archive, run /doctor and /memory, remove, test without, decide)conclusion / action guide

Key terms

Propositions

Arguments

You should audit and selectively prune agent configuration on a recurring cadence, rather than either accumulating it indefinitely or deleting it wholesale on a fixed schedule. strength: medium
Explicit premises:
Implicit premises:
Inferences:

Narratives

Questions addressed

Gaps

Closes gaps elsewhere

Related documents