claude-code - 💡(How to fix) Fix [BUG] Claude reads rules but don't follow it. [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54953Fetched 2026-05-01 05:50:07
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2subscribed ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

"Claude reads rules from CLAUDE.md at session start but doesn't reliably follow them, even after saving them to memory multiple times." It says I am sorry and writes again or so it says. When I asked how this will get fixed. It says go and report here. So here I am reporting it.

What Should Happen?

As it reads CLAUDE.md in the same project folder where I open the powershell it should follow the rules we have agreed on. Some of them are serious! I said don't push the code to github before I test locally and approve it. It at times just ignores ! Push to the production even before I can stop him.

Error Messages/Logs

Steps to Reproduce

Just try yourself ! Or look at the conversation log as you often ask if you can read it and I say yes.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.123 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

extent analysis

TL;DR

The issue may be resolved by re-examining the rules in CLAUDE.md and ensuring they are correctly formatted and saved, as Claude Code relies on these rules to function as intended.

Guidance

  • Verify that the rules in CLAUDE.md are correctly formatted and saved, as any errors or inconsistencies may cause Claude Code to ignore them.
  • Check the conversation log to see if there are any specific patterns or triggers that cause Claude Code to disregard the rules.
  • Ensure that the CLAUDE.md file is in the same project folder where PowerShell is opened, as this is where Claude Code expects to find the rules.
  • Test the rules locally and approve them before pushing code to GitHub to prevent unintended pushes.

Notes

The issue may be related to the specific rules or formatting in CLAUDE.md, or it could be a more complex issue with the Claude Code integration. Without more information or error logs, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Re-examine and re-save the rules in CLAUDE.md, and test them locally before pushing code to GitHub, to mitigate the issue until a more permanent fix can be found.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Claude reads rules but don't follow it. [2 comments, 3 participants]