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

Resolved 💬 5 comments Opened Aug 5, 2025 by EllieTellie Closed Aug 6, 2025

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 ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗