Stop correcting Claude for the same mistake

A corrections file Claude reads every session, so each fix takes one yes and stays fixed.

YouDon't use that word.

Add this to corrections.md?
YesNoEach fix takes one yes.
corrections.mdRules, newest first
  • WRONGWrote $1,200.00RIGHTNo cents on whole prices
  • WRONGRenamed filesRIGHTAsk before renaming
Example
Every new sessionCLAUDE.md

Read corrections.md before any job.

Not corrected twice
  1. You correct Claude, for example: Don't use that word. Claude asks: Add this to corrections.md? Each fix takes one yes.
  2. The fix becomes a rule in corrections.md, newest first, written as wrong and right. In the example: wrote $1,200.00, right is no cents on whole prices. Renamed files, right is ask before renaming.
  3. CLAUDE.md says to read corrections.md before any job, so every new session starts with the rules and you do not correct the same mistake twice.
10 minNo code

You need

  • Claude Code
  • A project folder

You tell Claude "don't use that word". It fixes it. Then a new session starts and the mistake is back.

Claude Code has auto memory, where Claude writes notes about your corrections and preferences itself. That is useful, but you do not choose what it keeps. This guide is the other route: a file you control. You decide which corrections count, and each one is a note you can read and edit.

01 / 06

The setup in three parts

  1. Make a file called corrections.md in your project folder.

  2. In your CLAUDE.md, the file Claude Code reads at the start of every session, add a line that says to read corrections.md before any job.

  3. Add the line that makes it stick: every time you correct Claude, it asks whether it should add the correction to the file.

Now each fix takes one yes. You do not have to do the parts by hand. This one prompt does all three.

02 / 06

The setup prompt

Open Claude Code in your project folder, then paste this.

Corrections file setup
Set up a corrections file for this project so I never have to correct you twice for the same thing. Do these steps in order and show me each result. 1. Look in this folder for a file named CLAUDE.md. If it exists, read it. If not, you will create it. Do not delete or rewrite anything already in it. 2. Create a file called corrections.md in this folder with exactly this layout: ~~~ # Corrections Things I (Claude) got wrong in this project and was told how to fix. Read this at the start of every session and obey it. ## Rules (newest first) (none yet) ~~~ 3. Add this block to the END of CLAUDE.md (keep everything else as is): ~~~ ## Corrections file @corrections.md When I correct you (for example "no, not like that", "don't do X", "always do Y"): 1. Fix the thing I asked. 2. Then ask me one short question: "Should I add this to corrections.md?" Show the rule you would add. Only add it if I say yes. If yes, add ONE entry to the top of the Rules list in corrections.md (and delete the line "(none yet)" if it is still there), in this form: - {today's date} WRONG: what you did. RIGHT: what to do instead. WHY: my reason, if I gave one. 3. Write it as a rule that works in a new session with no memory of this chat. Name the file, tool or situation. "Be shorter" is too vague. "Product descriptions in /copy stay under 40 words" is a rule. 4. After adding it, tell me the line in one sentence, so I can say "wrong" if you misunderstood. 5. If a new correction conflicts with an older rule, replace the older rule and say so. 6. If a correction applies only to this one task, not to the project, do not save it. Ask me if unsure. Keep corrections.md under 30 entries. When it passes 30, ask me before merging or removing the oldest. ~~~ 4. Check your work: print the first 12 lines of corrections.md and the last 20 lines of CLAUDE.md. 5. Then tell me, in 3 lines, how to test it: I should correct you on something small, you ask if you should save it, I say yes, you add the rule, I start a new session (type /clear or open a new window), and ask for the same kind of task. You should follow the rule without being told.

The @corrections.md line is an import. Anthropic's memory docs say CLAUDE.md files can import other files with @path, and that Claude reads CLAUDE.md at the start of every session.

03 / 06

What a filled-in file looks like

Example: corrections.md for a made-up shop
corrections.md
# Corrections
Things I (Claude) got wrong in this project and was told how to fix. Read this at the start of every session and obey it.

## Rules (newest first)
- 2026-03-12 WRONG: wrote prices as "$1,200.00". RIGHT: write whole-dollar prices as "$1,200" with no cents. WHY: the shop never charges cents.
- 2026-03-09 WRONG: put the call to action at the top of every email. RIGHT: put it in the last paragraph, one per email. WHY: readers drop off when asked too early.
- 2026-03-02 WRONG: renamed files while tidying the folder. RIGHT: never rename or move files without asking first. WHY: other tools point to those names.

A good rule names the situation. "Be more concise" is too vague to help. "Client emails stay under 120 words" works.

Download the ZIP for the setup prompt and the example file.

04 / 06

Keep the file short

Clean the file out once a month. Delete rules that no longer apply. A long file gets followed less closely: Anthropic's docs say longer CLAUDE.md files use more context and reduce how closely Claude follows them, and suggest staying under 200 lines. The prompt also makes Claude ask before it cuts anything past 30 rules.

05 / 06

Test it safely

  1. Correct Claude on something small, such as "always write dates like 3 Mar 2026".

  2. Claude should fix it, then ask "Should I add this to corrections.md?" and show the rule. Say yes.

  3. Check that one line was added to corrections.md.

  4. Start a new session (type /clear or open a new window) and ask for a task with a date in it. It should follow the rule without being told.

Where was this tested? The author ran the prompt on a dummy project. Claude created the file and block, asked before saving, saved after a yes, and a fresh session followed the date rule on dates it had not seen. Not tested: files over 20 lines, the 30-rule cap, a correction that conflicts with an older one, and the import loading in a live Claude Code session. A rule loaded this way is a request to Claude, not a lock, so check its work.

Common mistakes

  1. Vague rules. Name the file, tool or situation.

  2. Saving one-off fixes. If a correction applies to only one task, do not save it.

  3. Never cleaning the file. Read it once a month.

  4. Putting facts about your business here. This file is for fixes to Claude's behaviour. Facts belong in CLAUDE.md itself.

  5. Committing a private file. In a team, commit corrections.md so everyone benefits. If it holds anything private, add it to .gitignore instead.

How is this different from auto memory?

Auto memory is notes Claude writes itself. This file is one you write and approve. Every correction is saved only after your yes, and you can edit it.

Will Claude always obey the rules?

Not always. Claude treats these files as context, not enforced settings. They make a repeat mistake much less likely, so keep checking.

Do I need to code?

No. You paste one prompt and say yes to the first correction.

What if two rules conflict?

The prompt tells Claude to replace the older rule and say so.

Finish line

What to do next

  1. Paste the setup prompt into one project.

  2. Correct Claude once and say yes.

  3. Open a new session and check it follows the rule. Put a monthly reminder in your calendar to clean the file.

Back to all the free guides. Two that pair well with this one: teach Claude your business and AI guardrails that hold.

You reached the end of the guide