Claude ignoring your instructions: make project instructions and CLAUDE.md stick

You have told Claude the same thing thirty times. It is in the project instructions and in CLAUDE.md, and still it comes back. Often the model has not forgotten: the instruction is in the wrong place, too long, or contradicts itself.

Updated 23 November 2026

A short checklist card standing beside a toppling stack of pages, with the Claude logo in front

Where instructions live in Claude

Project instructions apply to every chat in the project. What you say in one chat is not shared with the others unless it is in the project knowledge.

When the knowledge grows large, Claude switches to searching it (RAG) and retrieves only what looks relevant. Then not everything is read every time, so what must be followed belongs in the instructions, not in a file.

Write project instructions Claude can follow

Anthropic recommends short instructions with the essentials: general context, the key guidelines and Claude's role. Details for one task belong in the chat.

Write what can be checked. “Answer in English, five sentences at most” is easier to follow than “be concise”.

Read more: Why ChatGPT ignores your custom instructions, and how to make them stick

Why Claude Code skips CLAUDE.md

Anthropic's own troubleshooting names these reasons:

  • CLAUDE.md is delivered as a message after the system prompt, and strict compliance is not guaranteed.
  • Files over 200 lines may reduce how well instructions are followed.
  • When two files say different things, Claude may pick one of them.
  • Vague rules are followed less well than specific ones.

When a rule must hold every time

Run /context all and check under Memory files that the file actually loaded, and fix it with /memory. What must always happen, like tests before a commit, goes in a hook: it runs at fixed points regardless of what Claude decides.

Read more: Claude Code forgets your repo after /clear: how to keep the context

Questions people ask

Why does Claude ignore my project instructions?

Often they are too long, vague, or mixed with details for one task. Anthropic recommends short instructions with general context and the key guidelines, and task details in the chat.

Does Claude read every file in the project each time?

Not when the knowledge grows large. Claude then switches to search (RAG) and retrieves only what looks relevant to the question. Rules that must always apply therefore belong in the project instructions.

Why is Claude Code not following CLAUDE.md?

CLAUDE.md is read as a message after the system prompt, with no guarantee of strict compliance, especially when rules are vague or conflict. Keep it under 200 lines, and use a hook for what must always happen.

In Marshi

In Marshi, you don't have to say it thirty times

When you tell Marshi how you want its replies, such as no emojis, it offers to keep that as an instruction on the project, and later replies follow it. A project also keeps its decisions once you press Save.

  1. Say it once. Tell Marshi how you want its replies and it offers to keep that on the project, for everyone or just for you, and later replies follow it.
  2. What was decided stays decided. The project keeps its goal and decisions on a card, and every new chat in the project starts from them.

Your AI work starts here.

Start in Marshi

Free to start. No AI expertise required.

Ask your preferred AI

about Marshi