[BUG] Claude Incorrect Logic Check

Resolved 💬 2 comments Opened Apr 13, 2025 by Blatta-Garyx Closed Apr 14, 2025

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

  1. Create a repository with PROJECT.md present
  2. Start a Claude Code session
  3. 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.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗