Skip to main content

ci-whisper

Read a failed CI log. Get the first real error, its causal chain, and a fix. One paragraph instead of ten thousand lines of noise.

ci license: MIT PyPI python stars

ci-whisper reading a failed pytest log

Install

pipx install ci-whisper

Also on PyPI. From source: git clone && pip install -e ".[dev]".

Four ways to use it

# 1. The one you will use daily: pipe the failing job log
gh run view --log-failed | ci-whisper

# 2. From a downloaded log file
ci-whisper --file /tmp/build.log

# 3. Let it fetch the last failed run of the current repo
ci-whisper --gh 16977481234

# machine-readable, for a bot or an agent skill
ci-whisper --file build.log --json

Exit code is 1 when no error signal is found, so you can gate on it.

GitHub Actions and GitLab CI logs are supported. The default --provider auto detects GitLab by its section markers and otherwise uses GitHub cleaning. To select a format explicitly, use --provider github or --provider gitlab:

ci-whisper --file gitlab-job.log --provider gitlab --json
cat gitlab-job.log | ci-whisper

GitLab section markers and ANSI colors are removed. Displayed section headers are retained; marker-only lines become empty placeholders, so reported line numbers still refer to the original log. --gh continues to fetch GitHub Actions logs; download a GitLab log and use --file or stdin to read it.

As an MCP server, so an agent reads the run itself

ci-whisper-mcp speaks MCP over stdio. An agent can then ask for a diagnosis instead of being handed a log by a human, and it gets the same analysis the CLI prints:

{
  "mcpServers": {
    "ci-whisper": {
      "command": "ci-whisper-mcp"
    }
  }
}

Two tools:

Tool What it does
read_ci_log takes log, or path, plus an optional provider; returns the first real error, the causal chain and a fix, as text and as structured content
read_github_run fetches a failed Actions run with gh run view --log-failed, then analyses it

It declares no runtime dependencies, and it does not depend on the mcp package either: the five protocol methods it needs are implemented against JSON-RPC 2.0 directly, so pipx install ci-whisper gives you a working server with nothing else on the machine.

What it does not do: it opens no pull requests and holds no token. A diagnosis goes back to the agent, and the agent decides what to change. Exposing your GitHub credentials to a log parser so it can write branches would be a trade nobody asked for.

Requesting a specific protocol version is the client's job; this server reports 2024-11-05, the version it was built against. Verified against the official mcp SDK client, not only against its own tests: handshake, tools/list, a real tool call with structured content, the no-signal error path, and ping.

Why it exists

A red build hands you 10k lines. The actual cause is line 4, and everything after it is consequence: retries, cascading test failures, the polite ##[error]Process completed with exit code 1.

Two things go wrong when this hits an agent. It reads the last error and fixes a symptom, or it reads the header and summarises nothing. ci-whisper ranks signals so the cause outranks its own consequences, then shows the citations so anyone can check the call.

How it works

  1. Clean — strips ANSI and GitHub's 2026-10-29T08:01:02.1234567Z timestamp prefix, keeping a line-number map to the original file.
  2. Scan — matches a ranked rule set: ModuleNotFoundError/Exception (4) beat Traceback, test failures and compiler errors (3), which beat npm ERR! and ##[error] (2), which beat a bare exit code 1 (1).
  3. Root cause — highest severity, then earliest line. Noise (warnings, deprecations, 0 failed, download progress) is filtered before ranking.
  4. Chain — the chosen line plus the following block: indented continuations, frames, and caused by style links.
  5. Fix — a rule per failure shape: peer dependency conflict, missing module, permissions, missing path, assertion, timeout, OOM.

No network calls, no LLM, no dependencies.

Contributing

Read CONTRIBUTING.md. Tests:

python -m pytest -q

License

MIT. See LICENSE.

Metadata

Release files for ci-whisper 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ci-whisper 0.2.0
File Size Uploaded Provenance Actions
ci_whisper-0.2.0.tar.gz 19.7 kB With provenance Details for ci_whisper-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ci-whisper 0.2.0
File Interpreter ABI Platform Actions
ci_whisper-0.2.0-py3-none-any.whl Python 3 none any Details for ci_whisper-0.2.0-py3-none-any.whl

Total release size: 34.9 kB

Release files / ci_whisper-0.2.0.tar.gz

Download URL ci_whisper-0.2.0.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
87bb5bec09fc9cba5af4dab24d021b8a6f53ca3b4ad2c73a2c161bbba85e1579
BLAKE2b-256 checksum
How to use checksums
4a470bdef14ad7b04f92e0e6675f334b11299fe423bda2b8a82c99203c5390db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / ci_whisper-0.2.0-py3-none-any.whl

Download URL ci_whisper-0.2.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
001fc03345c43f827111d412adc98d0e09cab47c16512d34fe85f0694f0a8c53
BLAKE2b-256 checksum
How to use checksums
a176874064c99db24e914c984662930bd02464ef2f267841f7aa0ecabe3ba017
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for ci-whisper 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ci_whisper-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page