A tmux plugin that automatically detects errors in your terminal output and explains them using AI assistance.
- π Automatic Error Detection: Scans terminal output for error patterns
- π€ AI-Powered Explanations: Uses Claude Code to explain errors and suggest fixes
- β‘ Quick Access: Single keybind to analyze the last command output
- ποΈ Configurable: Customize keybindings and behavior
- πͺ Clean Interface: Works with tmux-floax for floating window display
Required:
- tmux (version 2.0+)
- Claude Code CLI with active subscription
Recommended:
- tmux-floax for floating window display
- TPM (Tmux Plugin Manager)
- Add to your
~/.tmux.conf:
set -g @plugin 'marcusDenslow/tmux-explain-please'- Install with TPM:
# Press prefix + I (default: Ctrl-b + I)git clone https://github.com/yourusername/tmux-explain-please ~/.tmux/plugins/tmux-explain-pleaseAdd to your ~/.tmux.conf:
run-shell ~/.tmux/plugins/tmux-explain-please/error-explain.tmuxReload tmux config:
tmux source-file ~/.tmux.confInstall Claude Code CLI and authenticate:
# Install via pip (requires Python 3.8+)
pip install claude-cli
# Or download from https://claude.ai/codeEnsure you have an active Claude subscription and the CLI is working:
claude -p "Hello world"For the best experience, install tmux-floax for floating error explanations:
# Via TPM - add to ~/.tmux.conf:
set -g @plugin 'omerxx/tmux-floax'
# Then press prefix + I to install- Run any command that might produce an error:
gcc missing-file.c
npm start
python script.py- Press the error explain key (default:
prefix + E):
# Default: Ctrl-b + E- Get instant AI analysis of the error with suggested fixes!
Change the default keybinding by adding to your ~/.tmux.conf:
# Default is 'E' (so prefix + E)
set -g @error_explain_key 'F' # Changes to prefix + FChoose between interactive and non-interactive modes:
# Non-interactive (default): Clean, fast output
set -g @error_explain_non_interactive '1'
# Interactive: Allows follow-up questions
set -g @error_explain_non_interactive '0'-
Error Detection: Scans the last terminal output for common error patterns:
error,failed,exception,panic,fatal
-
AI Analysis: Sends the error context to Claude Code CLI with a specialized prompt
-
Smart Display: Shows the analysis in a floating window (with tmux-floax) or inline
-
Cleanup: Automatically manages temporary files and sessions
$ gcc hello.c
hello.c:5:1: error: expected ';' before '}' token
# Press prefix + E
# β Get explanation about missing semicolon and exact fix location$ npm install
npm ERR! peer dep missing: react@>=16.8.0
# Press prefix + E
# β Get explanation about peer dependencies and installation command$ python script.py
NameError: name 'varaible' is not defined
# Press prefix + E
# β Get explanation about typos and variable scope# Check if Claude CLI is installed and in PATH
which claude
claude --versionThe plugin only triggers on text containing error keywords. For custom error patterns, you can modify the detection in scripts/error-explain.sh.
The plugin works without tmux-floax but provides a better experience with it. Install tmux-floax or the plugin will fall back to inline display.
- tmux 2.0+
- Claude Code CLI with active subscription
- bash (for shell scripts)
- tmux-floax (for floating windows)
- grep (usually pre-installed)
- Fork the repository
- Create a feature branch
- Make your changes
- Test with various error types
- Submit a pull request
MIT License - see LICENSE file for details.
- π Issues: GitHub Issues
- π‘ Feature Requests: GitHub Discussions
- π Claude Code Help: Claude Code Documentation
Note: This plugin requires a Claude subscription. The AI analysis happens locally through the Claude CLI, ensuring your code stays private while getting intelligent error explanations.