[BUG] Claude Memory Commands Fail on Windows with Space in Username

Status Fixed / completed
Maintainer reply ✓ Yes — ant-kurt
Activity 5 comments · opened Aug 5, 2025 · closed Aug 6, 2025
💡 Likely answer: A maintainer (ant-kurt, collaborator) responded on this thread — see the highlighted reply below.

Claude generated this, but I'm thinking this is indeed an issue as none of these commands were working. Essentially it wasn't able to access ~\Claude.md. It's a common error for that to fail because of spaces in the user name.

Bug Report: Claude Memory Commands Fail on Windows with Space in Username

Summary

Claude memory commands (e.g., claude memory list, claude memory:add) do not function properly on Windows when the username contains spaces. Instead of executing the memory operations, Claude responds with conversational text as if the commands were not recognized.

Environment

  • Platform: Windows (win32)
  • Shell: Powershell 7
  • Claude Code Version: 1.0.68
  • Username: "Rene Kok" (contains space)

Expected Behavior

Memory commands should work consistently across all platforms and usernames, executing the requested memory operations directly.

Actual Behavior

Fails to write to the user file.

Steps to Reproduce

  1. Use Claude Code on Windows with a username containing spaces
  2. Run any memory command: claude memory list, claude memory:add, claude memory:remove, etc.
  3. Observe that commands are not executed and conversational responses are returned instead

Additional Context

  • Other Claude commands (e.g., claude --version) work correctly
  • File operations and tool usage work normally
  • Issue is specifically isolated to memory-related commands
  • This affects core functionality for users who rely on memory for project context

View original on GitHub ↗

5 Comments

evildarkarchon · 1 year ago

I've had similar issues with the Bash tool when git was installed in the Program Files directory.

ant-kurt collaborator · 1 year ago

/memory should be opening notepad (or your editor) correctly as of v1.0.68. There is a known issue around the process getting visually stuck after this occurs, which we're working on a patch for.

Claude Code doesn't have commands like "claude memory list, claude memory:add, claude memory:remove", but does have # your memory here or /memory.

EllieTellie · 1 year ago

Ok thanks for the heads up. I mean Claude itself doesn't know this clearly.

EllieTellie · 1 year ago

CLAUDE.md

For reference I am using this claude.md file to teach it about how it's running it seems to perform better now.

github-actions[bot] · 1 year ago

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.