claude-code - ✅(Solved) Fix [DOCS] Documentation table rows for Project Instructions and User Instructions are in incorrect order [1 pull requests, 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#58564Fetched 2026-05-14 03:45:03
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×3commented ×2cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #58657: docs: clarify instruction precedence

Description (problem / solution / changelog)

Summary

  • Add README guidance for instruction file precedence from broadest to most specific
  • Clarify that user instructions apply across projects while project instructions override them for a repository

Addresses #58564.

Note: this repository does not contain the docs/en/memory page referenced by the issue, so this PR adds the same corrected precedence guidance to the public README.

Test plan

  • git diff --check

Changed files

  • README.md (modified, +15/-0)
RAW_BUFFERClick to expand / collapse

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/memory

Section/Topic

Choose where to put CLAUDE.md files

Current Documentation

The official documentation table at https://code.claude.com/docs/en/memory shows:

Row 2 → Project Instructions (./CLAUDE.md) Row 3 → User Instructions (~/.claude/CLAUDE.md)

What's Wrong or Missing?

This order contradicts the documentation's own rule: "More specific locations take precedence over broader ones"

User Instructions apply to ALL projects → less specific Project Instructions apply to ONE project → more specific

Suggested Improvement

Therefore the correct order from broadest to most specific should be:

Row 1 → Managed Policy (all users, all projects) Row 2 → User Instructions (all your projects) Row 3 → Project Instructions (this project only) Row 4 → Local Instructions (this project, just you)

Impact

High - Prevents users from using a feature

Additional Context

  1. Set up Managed Policy: C:\Program Files\ClaudeCode\CLAUDE.md → Save the Python file name as <filename>_claude_1.py

  2. Set up User Instructions: C:\Users<username>.claude\CLAUDE.md → Save the Python file name as <filename>_claude_2.py

  3. Set up Project Instructions: <project>\CLAUDE.md → Save the Python file name as <filename>_claude_A.py

  4. Run prompt: Create a bare Department class with just a pass statement.

  5. Result: department_claude_A.py created

Claude Code's own explanation: "Creating a bare Department class and saving it per the project instructions."

This confirms Project Instructions takes precedence over User Instructions — opposite to the table order shown in the documentation.

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