claude-code - 💡(How to fix) Fix [BUG] Skipping a specific rule despite rule being in CLAUDE.md and memory [2 comments, 2 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#49459Fetched 2026-04-17 08:40:33
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×2

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 Code consistently skips a specific rule defined in both CLAUDE.md and a memory file, even after acknowledging the rule and correcting violations within the same session.

What Should Happen?

Doc comments are filled in automatically before any response involving code, without user prompting.

Error Messages/Logs

Steps to Reproduce

Concrete Example (2026-04-16)

  • Missing doc comment on Server_TravelToSession in SessionController.h was pointed out
  • Claude acknowledged and fixed it
  • Claude then wrote SessionNotesPanel.h with three empty /** */ placeholders and a missing NativeConstruct doc comment
  • User had to point it out again
  • Claude fixed it again and said "from here forward" — the same phrase used in prior sessions

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.111 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

CLAUDE.md

feedback_summaries.md

extent analysis

TL;DR

Review and update the rules defined in CLAUDE.md and the memory file to ensure consistency and accuracy, as Claude Code may be skipping a specific rule due to conflicting or outdated information.

Guidance

  • Verify that the rules in CLAUDE.md and the memory file are up-to-date and consistent with each other to prevent conflicts.
  • Check the memory file for any outdated or incorrect information that may be causing Claude Code to skip the specific rule.
  • Test the rule again after updating the files to see if the issue persists.
  • Review the feedback summaries in feedback_summaries.md to identify any patterns or common issues that may be related to the problem.

Example

No code snippet is provided as the issue is related to configuration files and rule definitions.

Notes

The issue may be related to the specific version of Claude Code (2.1.111) or the Sonnet model, but without more information, it's difficult to determine the root cause.

Recommendation

Apply workaround: Review and update the rules defined in CLAUDE.md and the memory file to ensure consistency and accuracy, as this may resolve the issue without requiring an upgrade or further changes.

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] Skipping a specific rule despite rule being in CLAUDE.md and memory [2 comments, 2 participants]