claude-code - 💡(How to fix) Fix [Bug] Claude Code references non-existent built-in CLAUDE.md policy causing false attribution [1 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#52013Fetched 2026-04-23 07:38:53
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

Bug Description Claude Code mentions «I followed the "only commit when explicitly asked" policy from CLAUDE.md» when I never wrote that in CLAUDE.md and overriding it in user's CLAUDE.md makes Claude mention it was mentioned in the built-in, causing confusion.

Environment Info

  • Platform: linux
  • Terminal: kitty
  • Version: 2.1.117
  • Feedback ID: 0e49f903-74f4-43b3-b423-004c188a5f1a

extent analysis

TL;DR

The issue may be resolved by updating the built-in CLAUDE.md file to remove the conflicting policy statement.

Guidance

  • Review the built-in CLAUDE.md file to verify the presence of the "only commit when explicitly asked" policy statement.
  • Check the user's CLAUDE.md file to ensure it correctly overrides the built-in policy statement.
  • Consider updating the documentation to clarify how built-in policies are overridden by user-defined policies.
  • Test the changes by running Claude Code with the updated CLAUDE.md files to see if the confusion is resolved.

Notes

The issue seems to be related to a conflicting policy statement between the built-in and user-defined CLAUDE.md files. However, without more information about the codebase and the specific implementation, it's difficult to provide a more detailed solution.

Recommendation

Apply workaround: Update the built-in CLAUDE.md file to remove the conflicting policy statement, as this seems to be the most direct way to resolve the confusion caused by the conflicting policy statements.

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