[BUG] # shortcut does not write to CLAUDE.md
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Environment:
- OS: macOS 14 (Darwin 24.6.0)
- Claude Code version: (run claude --version to get this)
Description:
The # shortcut (typing # text as a message) is supposed to append text directly to
~/.claude/CLAUDE.md. Instead, the message is sent to Claude normally but nothing is
written to CLAUDE.md.
Steps to reproduce:
- Open Claude Code
- Type # some text to remember and send
- Check ~/.claude/CLAUDE.md
Expected behavior:
some text to remember is appended to ~/.claude/CLAUDE.md
Actual behavior:
CLAUDE.md is unchanged. The message is received by Claude as a regular chat message.
Workaround:
Manually editing via /memory (opens file in nano) works correctly.
What Should Happen?
some text to remember is appended to ~/.claude/CLAUDE.md
Error Messages/Logs
Steps to Reproduce
⏺ Here are the steps to fill in:
---
- Open Claude Code in any directory
- Type # some text to remember as a message and press Enter
- After Claude responds, run /memory — it opens ~/.claude/CLAUDE.md in nano
- Observe that the text from step 2 was not appended to the file
- Exit nano (Ctrl+X)
Additional context:
- The message IS received by Claude as a normal chat message
- Manually editing via /memory works correctly
- File permissions on ~/.claude/CLAUDE.md are correct (-rw-r--r--, owned by user)
- No error or confirmation message is shown when using #, making the failure silent
---
Paste that into the "Steps to Reproduce" field.
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.123 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Warp
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗