Diagnostic Commands in AI
From the Claude Code cheat sheet ยท Troubleshooting ยท verified Jul 2026
Diagnostic Commands
Debug and fix issues
bash
# Check installation health
/doctor
# Report bugs to Anthropic
/bug
# Environment variables for debugging
USE_BUILTIN_RIPGREP=0 # Disable built-in ripgrep
# Common fixes:
# Permission denied
sudo npm install -g @anthropic-ai/claude-code
# Command not found
export PATH="$PATH:~/.local/bin"
# WSL issues
# Check .wslconfig for proper settings๐ /doctor checks configuration
๐ /bug sends reports to Anthropic
๐ Check PATH for command issues
troubleshooting