Drift-CI vs promptfoo: LLM regression testing compared

John Ennis · · Updated · 4 min read

promptfoo and Drift-CI both run LLM tests from YAML and can fail a CI job, but they answer different questions. promptfoo checks each output against assertions you write, and adds red teaming and side-by-side model comparison. Drift-CI compares every pull request against per-case baselines committed to your repository, and fails the check when a case scores worse than the version your team approved.

Disclosure: Drift-CI is our product. We describe promptfoo from its own documentation and README, as of 16 November 2026, and say plainly where it's stronger.

Drift-CI vs promptfoo at a glance
Drift-CIpromptfoo
How tests are writtenYAML suite in .drift/suite.yamlYAML config; assertions can also be Python or JavaScript
What decides pass or failEach case's score against its committed baseline, within a thresholdAssertions on each test; the CLI fails on a failed test or a pass-rate threshold
Comparison with earlier resultsPer-case baselines committed to git, updated in the same PRThe GitHub Action evaluates edited prompts before and after the change
Built-in checks10 evaluators: exact match, contains, JSON schema, embedding similarity, LLM judge, rubric checklist, refusal, safety, faithfulness to supplied context, tool callsDozens of assertion types, including regex, JSON, similarity, LLM rubric, G-Eval, RAG context metrics and tool-call checks
Non-deterministic outputsSample each case several times and score the median--repeat runs each test several times
Provider outagesOwn statuses; too many abort the run with exit code 2, never a regression—
CIGitHub Action posts one PR comment with per-case deltas and fails the check; CLI exit codes for other CIGitHub Action posts before/after results to the PR; documented setups for GitLab, Jenkins and others
Red teamingRefusal and safety evaluators onlyFull red teaming and vulnerability scanning
Comparing modelsMulti-provider CI matrix; model comparison in the hosted dashboardMatrix views across prompts and models
License and hostingMIT; hosted at drift-ci.com or self-hosted dashboardMIT, now part of OpenAI; Promptfoo Cloud and Enterprise

As of November 2026

A "—" means we couldn't confirm it from promptfoo's docs, not that it doesn't exist.

Drift-CI vs promptfoo: assertions or baselines

In promptfoo you describe what a good answer must satisfy: it contains a phrase, parses as JSON, passes an LLM rubric. Each test passes or fails on its own, and the CLI exits non-zero when any test fails or the pass rate drops below a threshold you set.

In Drift-CI you record what today's behaviour scores and commit that as the baseline, one JSON file per case in .drift/baseline/. Each later run is compared with it, and the check fails when a case drops by more than your threshold. Accepting an intentional change means running drift-ci baseline accept and committing the new baseline in the same pull request, so reviewers see the behaviour change next to the code that caused it. The LLM regression testing guide covers choosing evaluators and thresholds for this.

That makes the two tools good at different things:

  • Assertions are best when you can state the requirement up front. "Must return valid JSON with an intent field" is a crisp rule, and promptfoo has an assertion for it.
  • Baselines are best when "good" is hard to pin down but "worse than before" isn't. An open-ended support answer scored 0.86 by a judge last week and 0.61 today is a regression, even though no single rule broke.

Where promptfoo is stronger

  • Red teaming. promptfoo describes itself as a tool for "evaluating and red-teaming LLM-based apps", with automated pentesting and vulnerability scans. Drift-CI only has refusal and safety evaluators.
  • Breadth of checks. It has far more assertion types, including RAG context metrics, plus custom assertions in Python or JavaScript. Drift-CI has ten evaluators: it checks faithfulness to the supplied context and tool calls, but not retrieval quality.
  • Picking a model or prompt. Its matrix views compare many prompts and models side by side, which suits exploring options before you commit to one.
  • Maturity. It's older, has a much larger community, and documents more CI systems out of the box.

Where Drift-CI is stronger

  • Reviewed baselines in git. The approved behaviour lives in your repository, not in a results store, and changing it is a reviewed diff.
  • Outages aren't regressions. Rate limits and timeouts get their own statuses. When too many cases fail that way the run aborts with exit code 2, which your CI can tell apart from a real regression (exit code 1).
  • One clear PR comment. The GitHub Action posts a single comment with each case's score change and fails the check, so the answer to "did this PR make things worse?" sits in the PR. Prompt regression testing shows what that check looks like.
  • Tracking after the merge. The hosted dashboard keeps run history, opens a tracked issue for each regressed case, and sends Slack or email alerts.

Using both

They fit together well: promptfoo for red teaming and for choosing between models or prompts, Drift-CI as the merge gate on every pull request. Both are configured in YAML and run from the command line, so neither forces a test framework on your codebase.

Choose promptfoo when you need red teaming, broad assertion coverage, or side-by-side comparisons to pick a model.

Choose Drift-CI when the question on every pull request is "did this make our LLM feature worse?", and you want the answer as a failing check against baselines your team reviewed.

For the wider field, including DeepEval, Ragas, LangSmith, Braintrust and Langfuse, see LLM evaluation tools compared for CI.

FAQ

Is Drift-CI a promptfoo alternative?
For pull-request regression gating, yes: both run from YAML and fail a CI job. They decide pass or fail differently. promptfoo checks each output against assertions you write; Drift-CI compares each case's score with a baseline committed to your repository. For red teaming or comparing many models side by side, promptfoo does far more.
Can I use promptfoo and Drift-CI together?
Yes. A common split is promptfoo for red teaming and for choosing between models or prompts, and Drift-CI as the merge gate that fails a pull request when behaviour drops below its approved baseline.

Catch LLM regressions before they ship

Run your evals on every pull request and fail the build when behaviour drifts past your threshold.