[BUG] `/add-dir ~/Downloads` doesn't work
Resolved 💬 2 comments Opened Jul 2, 2025 by lycarter Closed Jul 3, 2025
Environment
- Platform (select one):
- [ ] Anthropic API
- [x] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.41
- Operating System: macOS 15.5
- Terminal: iTerm 2
Bug Description
Running the command /add-dir ~/Downloads should add my downloads folder to the working directories, but it does not expand the tilde path correctly, so it tries to add /path/to/my/working/dir/~/Downloads which isn't found.
Steps to Reproduce
- Open claude code from a working dir in some folder, eg
/Volumes/git/myproject - Run
/add-dir ~/Downloads
Expected Behavior
The /Users/myusername/Downloads directory should be added to the working directories
Actual Behavior
Path /Volumes/git/myproject/~/Downloads was not found
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗