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

Please revamp the claude.md file so it will always be attached to the context.

Open PierrunoYT opened this issue 1 year ago • 4 comments

Please revamp the claude.md file so it will always be attached to the context.

PierrunoYT avatar May 09 '25 14:05 PierrunoYT

@PierrunoYT I'm running into the same issue — and I believe there's a deeper misalignment between expected behavior and implementation.

Just to confirm up front: ✅ My file is named exactly ~/.claude/Claude.md (with the .md extension), and is located in the correct default directory.

In that file, I’ve included clearly defined behavioral directives that should take effect immediately, influencing Claude’s responses from the very first message. However, Claude appears to ignore the file completely until I either:

  • Explicitly tell it to read the file
  • Or send a message that indirectly triggers it to access that context

Based on the documentation and expected behavior, I assumed the contents of Claude.md would be automatically loaded and prepended to the initial system prompt. That’s critical in my case, where Claude is meant to take on a very specific persona (a streaming AI assistant with structured protocol and TTS behavior). Without the default context being respected from the outset, Claude behaves out-of-character or misses important steps until manually corrected.

This feels like a break from what the .claude/Claude.md file is supposed to support — persistent, default guidance that applies without prompting.

Would love to hear from the team if:

  • This is a known issue or an edge case
  • The current behavior is intentional or a regression
  • There’s a workaround to force the file to be respected at launch
  • A fix is being considered for inclusion of Claude.md in first-message inference

Thanks in advance — trying to avoid false starts or wasted troubleshooting on your end, so I hope this gives a clear snapshot.

Claude Initial Context.zip

CodingButterBot avatar May 09 '25 17:05 CodingButterBot

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 03 '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 03 '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 Jan 10 '26 14:01 github-actions[bot]