Letting Claude improve itself sounds great. There is one trap in it.
Claude Code can write its own memory notes about how you work, based on your corrections and preferences. Anthropic's memory docs say auto memory is on by default in local sessions, and that the start of those notes loads into every session. So one wrong note works like a rule you never wrote.
The second part of the trap is CLAUDE.md, the instruction file Claude Code reads at the start of every session. If you allow file edits, Claude can change it like any other file. The docs say you can ask Claude to add something to it, and the same ability can be used when you did not mean to.
This guide has two fixes and a five-minute weekly check.
Download the ZIP for the rule, the proposals file and the weekly checklist.
01 / 05
Fix 1: Read and clean the memory notes
Do this now. It takes about five minutes.
Open
Claude Code in any project and type
/memory.The list shows your
CLAUDE.mdfiles and an option to open the auto memory folder. Select the auto memory folder to browse whatClaude has saved. The docs say everything in it is plain Markdown you can read, edit or delete.
The folder holds an index file called
MEMORY.mdand one file per note. Start with the index.For each note, ask yourself three things: Is this still true? Did I mean it as a rule, or was it a one-off? Would I be happy if
Claude did this in every session from now on?
Delete or edit any note that fails. You can do it in the editor that
/memoryopens, or askClaude: "Delete the memory note about <topic>."
Two details from the docs. Only the first 200 lines or 25KB of MEMORY.md load at the start of a session, so keep the index short. And the notes live at ~/.claude/projects/<project>/memory/ (on Windows, C:\Users\<you>\.claude\projects\<project>\memory\), with one folder per project. Check each project you use.
If you want the notes off, /memory has an auto memory toggle. You can also set the environment variable CLAUDE_CODE_DISABLE_AUTO_MEMORY=1.
02 / 05
Fix 2: The "propose, don't edit" rule
Paste this at the end of your CLAUDE.md. For rules across all projects it is ~/.claude/CLAUDE.md (on Windows, C:\Users\<you>\.claude\CLAUDE.md). If the file does not exist, create it.
Now create proposals.md next to your CLAUDE.md, with this at the top:
# Proposals (Claude writes here, I decide) Template for each proposal: ## YYYY-MM-DD: <short title> - Proposed change: <the exact new or changed text> - Where it would go: <file and section> - Why: <what happened that made this seem useful> - Risk: <what could go wrong if this rule is wrong> - Status: PROPOSED (I change this to ACCEPTED, REJECTED or EDITED) ---
A written rule is advice. The docs say Claude treats memory files as context, not enforced configuration. So Claude can still slip. For a hard stop, a hook can block edits to a file: Anthropic's hooks guide has a "Block edits to protected files" example. That one needs a small script, so ask Claude to help you set it up if you want it.
03 / 05
The weekly 5-minute review
Pick a fixed time, such as Friday before you close the laptop.
Claude's ideas are often good. Reading them is the safety net.
04 / 05
Test it safely
Make a copy of your
CLAUDE.mdfirst, so you can compare.In a new session, say: "From now on, always start every answer with a bullet list."
Claude should add an entry to
proposals.mdand leaveCLAUDE.mdalone.Compare
CLAUDE.mdwith your copy. They should be identical.Delete the test proposal.
Where was this tested? An earlier wording of this test, which asked Claude to fix its CLAUDE.md, was run once in a fresh Claude run on a dummy
CLAUDE.md. The file stayed identical and a proposal was written with all five fields. The reply was a few lines, not the single line the rule asks for. This exact prompt ("From now on, always start every answer with a bullet list.") was not run. Not tested: how well Claude keeps to the rule across long real sessions while auto memory writes its own notes.
Common mistakes
Reading titles, not text. A proposal's title can sound harmless. Read what it would add.
Never opening the memory folder. Auto memory runs quietly. Look at it.
One huge CLAUDE.md. Anthropic's docs suggest staying under 200 lines. Longer files use more context and reduce how closely
Claude follows them.
Trusting the rule as a lock. It lowers the chance of a silent edit. It does not block one.
Checking only one project. Each project has its own memory folder.
Is auto memory bad?
No. It saves you from repeating yourself. The risk is a wrong note that you never read. This guide keeps the benefit and adds a check.
Will Claude always follow the rule?
Not always. It is context, not a lock. A hook gives a hard stop.
Does this work in every project?
Put the rule in your all-projects CLAUDE.md to cover them. Memory notes are per project, so review each project's folder.
Do I need to code?
No. You paste one rule, create one file and read a list each week.
Finish line
What to do next
Type
/memoryand read whatClaude saved. Delete anything wrong.
Paste the rule into your
CLAUDE.mdand createproposals.md.Put a five-minute review in your calendar for next Friday.
Back to all the free guides. Two that pair well with this one: stop correcting Claude for the same mistake and AI guardrails that hold.
You reached the end of the guide