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 | promptfoo | |
|---|---|---|
| How tests are written | YAML suite in .drift/suite.yaml | YAML config; assertions can also be Python or JavaScript |
| What decides pass or fail | Each case's score against its committed baseline, within a threshold | Assertions on each test; the CLI fails on a failed test or a pass-rate threshold |
| Comparison with earlier results | Per-case baselines committed to git, updated in the same PR | The GitHub Action evaluates edited prompts before and after the change |
| Built-in checks | 10 evaluators: exact match, contains, JSON schema, embedding similarity, LLM judge, rubric checklist, refusal, safety, faithfulness to supplied context, tool calls | Dozens of assertion types, including regex, JSON, similarity, LLM rubric, G-Eval, RAG context metrics and tool-call checks |
| Non-deterministic outputs | Sample each case several times and score the median | --repeat runs each test several times |
| Provider outages | Own statuses; too many abort the run with exit code 2, never a regression | — |
| CI | GitHub Action posts one PR comment with per-case deltas and fails the check; CLI exit codes for other CI | GitHub Action posts before/after results to the PR; documented setups for GitLab, Jenkins and others |
| Red teaming | Refusal and safety evaluators only | Full red teaming and vulnerability scanning |
| Comparing models | Multi-provider CI matrix; model comparison in the hosted dashboard | Matrix views across prompts and models |
| License and hosting | MIT; hosted at drift-ci.com or self-hosted dashboard | MIT, 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
intentfield" 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 code1). - 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.