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

Continue with Claude Code

Save the full cheat sheet or work through every related task.

More AI tasks

Back to the full Claude Code cheat sheet