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]".

Three 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.

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.1.3

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.1.3
File Size Uploaded Provenance Actions
ci_whisper-0.1.3.tar.gz 14.1 kB With provenance Details for ci_whisper-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 25.2 kB

Release files / ci_whisper-0.1.3.tar.gz

Download URL ci_whisper-0.1.3.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1bd6f3b1ab8d6d89abce630184a1231d2714414207fed1ef597516ce5e5de8aa
BLAKE2b-256 checksum
How to use checksums
a42227917a3a8b66c6deadfef7948dafc980bdab8c692639d21eb916cd74847d
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 Oct 31, 2026.

Transparency log

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

Download URL ci_whisper-0.1.3-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f5a9df39354370a6c8ffd3454186b4581a9de79645657b0b0453d522bcf1715
BLAKE2b-256 checksum
How to use checksums
b46c61a0a70e08faf81d41b069ca50a3c581b7ad2dab5e5f31134f8f04f724e1
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 Oct 31, 2026.

Transparency log

Security for ci-whisper 0.1.3

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.1.3.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 Oct 31, 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