Skip to main content

Paste or pipe any error message and get a plain-English explanation powered by Claude

Project description

errex — Error Explainer

CI PyPI version Python versions

Paste or pipe any error message and get a clear, plain-English explanation powered by Claude.

$ cat traceback.txt | errex.py

────────────────────────────────────────────────────
  errex — Error Analysis
────────────────────────────────────────────────────

**TypeError: unsupported operand type(s) for +: 'int' and 'str'**

This is a Python type error...

Install

pip install errex
export ANTHROPIC_API_KEY=sk-...

Requires Python 3.9+ and an Anthropic API key.

Usage

# Interactive — paste your error, then Ctrl+D (Mac/Linux) or Ctrl+Z+Enter (Windows)
errex

# Read from a file
errex traceback.txt

# Pipe from another command
cat error.log | errex

# Watch a log file and auto-explain errors as they appear
errex --watch server.log

# Get just the fix command, no explanation
errex --fix traceback.txt

# One-paragraph summary instead of full analysis
errex --brief traceback.txt

# Hint the language when the error is ambiguous
errex --lang rust traceback.txt

# Copy the explanation to the clipboard
errex --copy traceback.txt

# Structured JSON output (error_type, root_cause, fix_steps, gotchas)
errex --json traceback.txt

# Use a different Claude model
errex --model claude-opus-4-7 traceback.txt

# View past explanations
errex --history
errex --history "KeyError"

Web UI

errex --web
# → opens http://localhost:7337

Paste your error in the browser, pick a model, hit Explain (or ⌘Enter). No extra dependencies.

Shell integration

Run errex --install-shell to add an errex-last function to your shell config. After any failed command, just run errex-last to explain why it failed.

Config file

Create ~/.errexrc to set your defaults (all fields optional):

{
  "model": "claude-opus-4-7",
  "brief": false,
  "lang": "python"
}

CLI flags always override the config file.

Past explanations are saved to ~/.errex_history (one JSON object per line).

What you get

For any error, errex explains:

  1. What kind of error it is and which language or tool produced it
  2. What it means in plain English
  3. The most likely root cause, ranked by probability
  4. Numbered fix steps with code snippets where helpful
  5. Common gotchas — the non-obvious things that trip people up

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

errex-0.4.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

errex-0.4.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file errex-0.4.0.tar.gz.

File metadata

  • Download URL: errex-0.4.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for errex-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3a87cb0c8a8e2963d6d2f7e502d4a031cd97517e3d942a7825eafca1f03370bd
MD5 2b300968af6402b6ead5688d98e1c323
BLAKE2b-256 52c4ef08c5a4d072cf5508ac249921a2acedaaf00b6b7765f9feffba5478efcf

See more details on using hashes here.

File details

Details for the file errex-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: errex-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for errex-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0463ab1ee416fa562168534b4a5a930d5d093892141c41cbf1a9983cf2d53543
MD5 de1055139708f82bf6d32e01dd8d0dcc
BLAKE2b-256 19557284e0fe1a042bc9e94c9562bd8e4c495eacedca062f02cda2ba4374ac79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page