[BUG] ignores # prefix instructions for CLAUDE.md updates
Environment
- Platform: Anthropic API
- Claude CLI version: 1.0.17
- Operating System: Ubuntu 22.04
- Terminal: GNOME Terminal
Bug Description
The # prefix pattern for updating CLAUDE.md is not being recognized or acted upon automatically. When users write messages starting with # followed by instructions for CLAUDE.md, Claude ignores the directive and does not update the file until explicitly reminded.
Steps to Reproduce
- Start a Claude Code session in a project containing CLAUDE.md
- Write a message beginning with # followed by an instruction (e.g., # add this command to the key commands section)
- Observe Claude's response - it continues the conversation normally
- Notice that CLAUDE.md has not been updated
- Explicitly tell Claude that CLAUDE.md wasn't changed
- Claude then recognizes the instruction and updates the file
Expected Behavior
Claude should immediately recognize messages starting with # as directives to update CLAUDE.md and automatically perform the requested modification without requiring additional prompts.
Actual Behavior
Claude ignores the # prefix instruction completely and does not update CLAUDE.md. The file is only modified when the user explicitly points out that it wasn't changed, at which point Claude acknowledges the missed instruction and performs the update.
Additional Context
This issue occurs consistently across multiple sessions. The pattern has failed to work automatically in every attempt. Claude does successfully update CLAUDE.md when explicitly reminded, indicating the file modification capability works correctly. The user has confirmed they are following the correct # prefix pattern. This breaks the intended workflow for maintaining project documentation and makes the feature unreliable.
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗