[BUG] Claude Code does not work well on AmazonLinux2
Environment
- Platform (select one):
- [ ] Anthropic API
- [ x] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.70
- Operating System: Amazon Linux 2
- Terminal: Iterm2
Bug Description
Several key features don't seem to work on AmazonLinux2. Most notably that I've noticed
- Automatic file completion
- Custom sub agents
- Custom slash commands
Steps to Reproduce
Install ClaudeCode on AmazonLinux 2
Observed Behavior
- Automatic file completion
When typing a file name and pressing tab, I expect it to do a file search in my active directory. This works on Mac but not on AL2.
- Custom sub agents
When creating a custom sub-agent (either project or local), it is created successfully and persisted to the correct directory. However /agents command does not show them and they cannot be summed with the @ symbol.
- Custom clash commands
Similarly, commands put in ~/.claude/commands are not recognized or loaded.
Additional Context
I've tried with various versions of node up to 22.17.1 with no success. I've also tried the native binary installation with no success.
Are there log files that claude code produces for internal errors it might be facing that suppresses this functionality? If so, where might I find those logs?
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗