Promptfoo (or similar) for prompt evals
Regression tests for prompts and agents, using Promptfoo-class tools so prompt changes do not silently rot.
Promptfoo-class tools treat prompts like code under test: test cases, assertions, model comparisons, and regression gates in CI. Without evals, prompt edits ship on vibes. With evals, you can catch regressions before users do.
The trap is not “no tooling.” The trap is toy evals that only test happy paths. They create the worst output: false confidence.
Decide: prompt evals, manual QA, or production-only feedback
Use eval tooling when prompts power product features or critical internal agents, when multiple people edit prompts, when you swap models, or when brand and compliance require consistent behavior. Manual QA can be enough for small, low-stakes prompt surfaces, but it does not scale once the surface is edited weekly.
Fix this before you trust the scores: the eval gate

Eval Gate
Good evals are built from real failures, not from imagined examples. Make the eval suite a feedback loop.
Practical defaults:
- Mine failures from reality. Support tickets, bad agent runs, and edge cases become cases.
- Mix graders. Use JSON schema, “contains”, and property checks. Use LLM-as-judge sparingly and always spot-check.
- Pin model settings in CI. Temperature and model drift turn evals into noise.
- Budget runs. Small smoke suite on PRs, full suite nightly.
- Sanitize fixtures. Never commit raw customer data. Synthesize or redact.
Three failure modes to avoid

Failure modes to catch early
- Happy-path theater. Five easy cases, all green, while real failures persist. Fix: add cases only from observed failures.
- Brittle snapshots. Exact essay matches that fail when writing improves. Fix: assert properties and structure, not identical prose.
- Circular judging. Models grade themselves into flattery. Fix: calibrate judges against human labels and keep a small human spot-check set.
A weekly loop for prompt quality
- Every prompt PR: run smoke evals and review deltas.
- Weekly: review top failures and add 3 new cases from production incidents.
- Monthly: delete dead cases, update fixtures, and re-baseline when models change.
Bottom line

When this fits vs when it does not
Prompt evals are how prompt work becomes engineering: cases from real failures, gates on changes, and score drops treated as bugs. Vibes are for drafting. Gates are for shipping.
Share