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

More AI tasks

Back to the full Claude Code cheat sheet