[BUG] Claude Incorrect Logic Check
Environment
- Claude CLI version:
Bug Description
Claude Code incorrectly reports PROJECT.md is missing despite it being present in both the file system and the directoryStructure context provided at session initialization.
Steps to Reproduce
- Create a repository with PROJECT.md present
- Start a Claude Code session
- Run the claude.md command
Expected Behavior
Claude should recognize PROJECT.md exists in the directoryStructure context and not prompt for PROJECT.md setup.
Actual Behavior
Claude responded with: "I notice PROJECT.md is missing. According to guidelines, I should set up the PROJECT.md generation system. Would you like me to proceed with setup? [Y/n]:"
Additional Context
The directoryStructure context correctly showed PROJECT.md:
- [repository_path]/
- CLAUDE.md
- PROJECT.md
- pre-commit
CLAUDE.md instructs Claude to:
When Claude Code reads CLAUDE.md (either at startup or when manually requested with "claude.md"):
- First action: Immediately check if PROJECT.md exists in the repository
- If PROJECT.md does not exist, respond with: "I notice PROJECT.md is missing. According to guidelines, I should set up the PROJECT.md generation system. Would you like me to proceed with setup? [Y/n]:"
Claude appears to be following these instructions but using incorrect logic to check for PROJECT.md's existence - triggering the "missing" response despite PROJECT.md being present in the context.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗