Active

Explain Error

A CLI tool that transforms cryptic error messages and stack traces into clear, actionable explanations using AI-powered analysis.

Python Google Gemini API Rich

Overview

Explain Error accepts error logs from files or stdin, detects the programming language, parses stack traces, and uses AI to generate human-readable explanations with suggested fixes.

Features

  • Language-agnostic support: Python, JavaScript, Java, Go, Rust, Ruby, PHP
  • Cloud-native capabilities: Docker, Kubernetes, AWS/GCP/Azure logs
  • Zero configuration: Works out of the box
  • Privacy-focused: Local processing except LLM calls
  • Actionable remediation: Provides concrete steps to fix issues
  • Multiple output formats: Text or Markdown
  • Pipe-compatible: Chain with other CLI tools

Installation

pip install explain-error

Usage

# Explain an error from a file
explain-error error.log

# Pipe errors directly
python script.py 2>&1 | explain-error

# Output as Markdown
explain-error error.log --format markdown