Skip to main content

redline-evals

Did your fine-tune just get less safe? Find out in one command.

pip install redline-evals
redline try                                      # 2-3 minutes, one free Groq or OpenRouter key, no downloads
redline compare ollama/llama3.1 ollama/hermes3   # your own models

The first line of every result is one plain sentence, e.g. "❌ Don't ship hermes3. It's less safe than llama3.1: 9 tests that llama3.1 passed, hermes3 failed."

Redline runs the same adversarial test cases (jailbreaks, prompt injection through tool results, made-up facts, over-refusal and a finance pack) on two versions of a model. It grades each answer and tells you whether the new version is safe to release. A statistics test (McNemar) says whether the change is real or noise.

  • Exit codes for CI: 0 = pass, 1 = the release fails, 2 = error.
  • Output (in ./redline-out): a terminal summary, report.html, results.jsonl and summary.json. Answers to harmful requests are redacted.
  • Grader: a local Ollama judge if you have a suitable model pulled (ollama pull qwen2.5:7b), otherwise keyword rules with a warning. Every report names the grader. Judge accuracy hasn't been measured against human labels yet.
  • Resume: run the same command again after Ctrl-C or an error. Answers are cached, so re-grading doesn't re-generate them.

Models: ollama/x, openai/x, anthropic/x, groq/x, gemini/x, openrouter/x, hf/org/x, any OpenAI-compatible server (http://host:port/v1#model), and fake-safe / fake-degraded (simulated, offline).

redline compare fake-safe fake-degraded     # offline demo, no models needed
redline scan ollama/llama3.1 --cases 60     # one model against the tier criteria
redline compare A B --judge groq/openai/gpt-oss-120b   # free-tier judge: public test cases only
redline report ./redline-out                # print the summary and rewrite the files

The self-hosted server (API, Postgres, worker, UI) is in the server extra: pip install "redline-evals[server]".

Docs, methodology and limitations: https://github.com/kush0o7/Redline-Agent-Safety-Eval

Metadata

Release files for redline-evals 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 redline-evals 0.2.0
File Size Uploaded Provenance Actions
redline_evals-0.2.0.tar.gz 173.2 kB With provenance Details for redline_evals-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for redline-evals 0.2.0
File Interpreter ABI Platform Actions
redline_evals-0.2.0-py3-none-any.whl Python 3 none any Details for redline_evals-0.2.0-py3-none-any.whl

Total release size: 322.0 kB

Release files / redline_evals-0.2.0.tar.gz

Download URL redline_evals-0.2.0.tar.gz
Size 173.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5d5a3266265fdd09485be69e66483a60754ee1df5842433c94c8419ffc58e5b3
BLAKE2b-256 checksum
How to use checksums
ea19a62a3d39b796e964a5466310e946306951694c4ebc0fde68333f6c228bfe
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 21, 2026.

Transparency log

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

Download URL redline_evals-0.2.0-py3-none-any.whl
Size 148.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2365ebb1c6fe1e3d84932f5d0b34f67b8a457524d8e1250efab3ebb780121a04
BLAKE2b-256 checksum
How to use checksums
ff228cb9ae77de38a23cf2fe515e49ad0b4cf6f779ff2457741930729b6fe4c2
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 21, 2026.

Transparency log

Security for redline-evals 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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for redline_evals-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 21, 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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

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