claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Global .claude/CLAUDE.md configuration not automatically loaded in conversations

Open bairdstar opened this issue 1 year ago • 3 comments

Problem Description

The Claude Code system is designed to support global configuration files at ~/.claude/CLAUDE.md that should be automatically loaded and available to the assistant in every conversation. However, this functionality is not working as designed.

Current Behavior

  • The global CLAUDE.md file exists and contains important tool configurations (e.g., ast-grep installation v0.40.0, command availability)
  • This context is only visible to the assistant if explicitly provided in the conversation context
  • The assistant does not automatically load or integrate this global configuration at conversation start
  • Users must manually reference or provide these instructions, defeating the purpose of a global config file
  • The assistant fails to proactively use configured tools without being explicitly reminded

Expected Behavior

  • The ~/.claude/CLAUDE.md file should be automatically loaded and available to the assistant at the start of every conversation
  • The assistant should reference and use tools/configurations from this file without being prompted by the user
  • Users should not need to repeat global instructions across conversations
  • Configured tools should be part of the assistant's baseline capabilities

Impact

  • Reduces reliability of the system - users cannot trust that configured tools will be available
  • Creates confusion about system design and capabilities
  • Defeats the purpose of global configuration files
  • Forces users to manually manage what should be automatic configuration

Environment

  • Platform: WSL2 Linux (5.15.167.4-microsoft-standard-WSL2)
  • Working directory: /mnt/c/Users/baird/onedrive/projects/stocktrading
  • Global config location: ~/.claude/CLAUDE.md
  • Installed tools referenced in config: ast-grep (v0.40.0)

Steps to Reproduce

  1. Create a ~/.claude/CLAUDE.md file with tool configurations
  2. Start a new conversation with Claude Code
  3. Observe that the assistant does not reference or use the configured tools
  4. User must explicitly remind assistant about the global configuration

bairdstar avatar Nov 27 '25 14:11 bairdstar

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/992
  2. https://github.com/anthropics/claude-code/issues/2425
  3. https://github.com/anthropics/claude-code/issues/11460

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Nov 27 '25 14:11 github-actions[bot]

I've been having similar issues with the .claude/ directory or the .clauderc file (in the VSCode extension, on Linux, if that matters, which I doubt). Whatever I do, those files aren't loaded unless I explicitly ask the bot to do so. This makes any .claude/project_context.md and similar files moot (even though the bot advises us to use those files).

syam44 avatar Nov 29 '25 00:11 syam44

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 29 '25 10:12 github-actions[bot]

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 28 '26 10:01 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Feb 04 '26 14:02 github-actions[bot]