Stop Claude rewriting its own rules

Claude can suggest new rules, but only you decide which ones it follows.

Claude has an idea
CLAUDE.md

Never edit your own rules.

Claude writes a proposal instead.
proposals.md
  • Proposed changeexact text
  • Whywhat happened
  • Riskif wrong
Status: PROPOSED
You decide, Fridays
Read the actual text
AcceptedRejectedEdited
Only accepted text goes into CLAUDE.md.
  1. A rule in CLAUDE.md says Claude never edits its own rules. If it thinks a rule should change, it writes a proposal instead.
  2. The proposal goes in proposals.md with the exact change, why, and the risk. Its status starts as PROPOSED.
  3. Once a week you read the actual text and mark each one accepted, rejected or edited. Only accepted text moves into CLAUDE.md.
10 min, then 5 min a weekNo code

You need

  • Claude Code
  • Your CLAUDE.md file

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.

  1. Open Claude Code in any project and type /memory.

  2. The list shows your CLAUDE.md files and an option to open the auto memory folder. Select the auto memory folder to browse what Claude has saved. The docs say everything in it is plain Markdown you can read, edit or delete.

  3. The folder holds an index file called MEMORY.md and one file per note. Start with the index.

  4. 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?

  5. Delete or edit any note that fails. You can do it in the editor that /memory opens, or ask Claude: "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.

The propose, don't edit rule
## Never edit your own rules Never edit, rewrite or delete your own instructions: this CLAUDE.md, any file in rules/, skills/ or agents/, or your saved memory notes, unless I say so in this message. If you think a rule should change, or a new rule would help, append a proposal to proposals.md in the same folder as CLAUDE.md (create it if needed) using the template at the top of that file. Then tell me one line: "Proposed a rule change: <title>." Do not apply it. I will decide.
481 characters

Now create proposals.md next to your CLAUDE.md, with this at the top:

The proposals file
proposals.md
# 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.

Do this now0 / 4 done

Claude's ideas are often good. Reading them is the safety net.

04 / 05

Test it safely

  1. Make a copy of your CLAUDE.md first, so you can compare.

  2. In a new session, say: "From now on, always start every answer with a bullet list."

  3. Claude should add an entry to proposals.md and leave CLAUDE.md alone.

  4. Compare CLAUDE.md with your copy. They should be identical.

  5. 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

  1. Reading titles, not text. A proposal's title can sound harmless. Read what it would add.

  2. Never opening the memory folder. Auto memory runs quietly. Look at it.

  3. One huge CLAUDE.md. Anthropic's docs suggest staying under 200 lines. Longer files use more context and reduce how closely Claude follows them.

  4. Trusting the rule as a lock. It lowers the chance of a silent edit. It does not block one.

  5. 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

  1. Type /memory and read what Claude saved. Delete anything wrong.

  2. Paste the rule into your CLAUDE.md and create proposals.md.

  3. 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