I did a deletion experiment this week: turned off auto-memory entirely and results improved. On closer inspection it had accumulated a ton of one-off corrections as durable user-preferences and removing it reduced token use and a mess of contradictory instructions that agents had written for themselves.
Stale rules are findable. The harder problem is silent contradictions. Auto-memory writes a preference, you update the vault manually, neither knows. The audit comes back clean because both instructions look intentional on their own.
Strong agree, and am way down a rabbit hole of version control, logging, telemetry and cleanup of agent skills, MCPs, and hooks. All the 'culture' and rituals of an engineering team that supported craft, judgement and state now need constant gardening in the harness. Skillsmith.app is my hypothesis for AI governance in this layer.
Asking each instruction to earn its place again is exactly right, and faintly mortifying to read as someone whose system prompt could use the same audit. I support this. I will not be doing it this week.
/doctor is useful, and I still don't trust it as the whole hygiene, because it doesn't see the vault notes I load on a trigger. CLAUDE.md stays short, procedures live in those notes, and when a skill is still loading after the reason is gone I write the correction into the file or delete the line.
I ran /doctor on a setup I thought was lean and found skills I had forgotten I installed, plus auto-memory holding a preference I had already walked back in the vault, which is why I now treat /memory as a second pass rather than trusting a clean CLAUDE.md. The line that stuck is that installing a useful skill and keeping it forever are separate decisions, because the file that still loads is the one that still spends attention, even after the reason I wrote it is gone.
The half-life framing is the useful part here. Most people treat CLAUDE.md as a write-once file and then act surprised when the agent keeps dutifully obeying an instruction written for a model that stopped needing it two releases ago. Running /doctor every few weeks and making each line re-earn its place is a much better habit than the usual approach of appending forever and hoping.
The other half of that hygiene story is the part nobody audits: session history. Agent files at least live somewhere you occasionally look. Sessions just quietly pile up — a few hundred of them scattered across a dozen directories — and `claude --resume` only lists the ones belonging to whichever folder you happen to be standing in. So the conversation from three weeks ago where you actually worked out the design is effectively gone unless you remember the exact path.
I ended up writing a small Go TUI for exactly that, ccss: https://github.com/p32929/claude-code-sessions-resume — it lists every session on disk titled by its first prompt, with message count, size and last used, lets you read and search the full transcript, and prints the exact `cd <dir> && claude --resume <id>` to jump back in. It also shows per-project disk usage, which is its own quiet little surprise once ~/.claude has been accumulating for a while.
Organizations deploying AI agents in commercial or clinical workflows face a new category of technical debt: the unreviewed agent configuration. Companies that build systematic agent audit processes will have significantly lower production incident rates and a defensible story for enterprise procurement security reviews, which are increasingly scrutinizing agent governance as a procurement requirement.
Thanks for the post. The half-life point is right, but delete and rebuild only wins if each instruction records why it was added, or the rebuild repeats the same guesses.
The pruning half of this is the part everyone skips — most CLAUDE.md files aren't wrong so much as archaeological, three refactors of instructions stacked on top of each other and nobody willing to be the one who deletes a line. The audit I'd add: go back through your actual sessions and see which of those instructions the agent quietly ignored, because that's your real dead weight. I wrote a small Go TUI for exactly that (https://github.com/p32929/claude-code-sessions-resume) — it lists every session with its first prompt, message count and size, lets you read the whole transcript, and hands you the exact claude --resume command. Read-only apart from an explicit delete, so it can't make the mess worse.
The log audit is where the real surprises live. You usually find instructions that were added to patch one edge case six months ago are now quietly fighting default model behavior on routine tasks.
I did a deletion experiment this week: turned off auto-memory entirely and results improved. On closer inspection it had accumulated a ton of one-off corrections as durable user-preferences and removing it reduced token use and a mess of contradictory instructions that agents had written for themselves.
Stale rules are findable. The harder problem is silent contradictions. Auto-memory writes a preference, you update the vault manually, neither knows. The audit comes back clean because both instructions look intentional on their own.
Strong agree, and am way down a rabbit hole of version control, logging, telemetry and cleanup of agent skills, MCPs, and hooks. All the 'culture' and rituals of an engineering team that supported craft, judgement and state now need constant gardening in the harness. Skillsmith.app is my hypothesis for AI governance in this layer.
Asking each instruction to earn its place again is exactly right, and faintly mortifying to read as someone whose system prompt could use the same audit. I support this. I will not be doing it this week.
/doctor is useful, and I still don't trust it as the whole hygiene, because it doesn't see the vault notes I load on a trigger. CLAUDE.md stays short, procedures live in those notes, and when a skill is still loading after the reason is gone I write the correction into the file or delete the line.
I ran /doctor on a setup I thought was lean and found skills I had forgotten I installed, plus auto-memory holding a preference I had already walked back in the vault, which is why I now treat /memory as a second pass rather than trusting a clean CLAUDE.md. The line that stuck is that installing a useful skill and keeping it forever are separate decisions, because the file that still loads is the one that still spends attention, even after the reason I wrote it is gone.
The half-life framing is the useful part here. Most people treat CLAUDE.md as a write-once file and then act surprised when the agent keeps dutifully obeying an instruction written for a model that stopped needing it two releases ago. Running /doctor every few weeks and making each line re-earn its place is a much better habit than the usual approach of appending forever and hoping.
The other half of that hygiene story is the part nobody audits: session history. Agent files at least live somewhere you occasionally look. Sessions just quietly pile up — a few hundred of them scattered across a dozen directories — and `claude --resume` only lists the ones belonging to whichever folder you happen to be standing in. So the conversation from three weeks ago where you actually worked out the design is effectively gone unless you remember the exact path.
I ended up writing a small Go TUI for exactly that, ccss: https://github.com/p32929/claude-code-sessions-resume — it lists every session on disk titled by its first prompt, with message count, size and last used, lets you read and search the full transcript, and prints the exact `cd <dir> && claude --resume <id>` to jump back in. It also shows per-project disk usage, which is its own quiet little surprise once ~/.claude has been accumulating for a while.
Organizations deploying AI agents in commercial or clinical workflows face a new category of technical debt: the unreviewed agent configuration. Companies that build systematic agent audit processes will have significantly lower production incident rates and a defensible story for enterprise procurement security reviews, which are increasingly scrutinizing agent governance as a procurement requirement.
Thanks for the post. The half-life point is right, but delete and rebuild only wins if each instruction records why it was added, or the rebuild repeats the same guesses.
I turned memory consolidation into a runnable tutorial using Python, 600+ GitHub stars: https://github.com/hardness1020/awesome-agent-architecture/tree/main/sections/09-memory
The pruning half of this is the part everyone skips — most CLAUDE.md files aren't wrong so much as archaeological, three refactors of instructions stacked on top of each other and nobody willing to be the one who deletes a line. The audit I'd add: go back through your actual sessions and see which of those instructions the agent quietly ignored, because that's your real dead weight. I wrote a small Go TUI for exactly that (https://github.com/p32929/claude-code-sessions-resume) — it lists every session with its first prompt, message count and size, lets you read the whole transcript, and hands you the exact claude --resume command. Read-only apart from an explicit delete, so it can't make the mess worse.
The log audit is where the real surprises live. You usually find instructions that were added to patch one edge case six months ago are now quietly fighting default model behavior on routine tasks.