promptfoo/promptfoo

promptfoo

值得试用

面向开发者的高效 Prompt、Agent 与 RAG 系统化评测与红队测试工具,支持声明式配置与矩阵对比

GitHub 原始描述:Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI. Compare performance of GPT, Claude, Gemini, DeepSeek, and more. Simple declarative configs with command line and CI/CD integration. Used by OpenAI and Anthropic.

评测与可观测性 💻 TypeScript 📜 MIT ⭐ 作者收藏于 2026-01-11 #评测 #Prompt测试 #红队测试 #CI/CD

✅ 适合解决什么问题 (Good For)

  • 把线上真实失败案例转化为可重复执行的回归评测套件,对比不同模型与提示词

🚫 不适用边界与选型注意 (Not For)

  • 无需量化评估的一次性探索对话

📊 客观生态事实与 CHAOSS 可解释健康度

数据快照采集于:2026-12-05T11:44
⭐ GitHub Stars 28011 近 7 日 +283 · 日均 +21.28
🍴 Forks 与衍生 2929 创建时间 2023-04-28
🔥 近期代码活跃 1333 次提交/90d 最近推送 2026-12-05
🤝 社区协作与 Issue 9352 合并 PR 已关闭 1212 · 待处理 194
📦 最新版本发布 0.127.0 发布于 2026-12-02 · 近半年 1 次
🩺 CHAOSS 综合健康度 91 / 100 状态:🟢 活跃迭代
活跃度 (Activity · 权重 35%)
99
社区与响应 (Community · 权重 25%)
95
发布节奏 (Release · 权重 20%)
65
持续与合规 (Sustainability · 权重 20%)
98
🔍 如何计算该健康度分数?(点击展开计算公式与复核依据)

公式:0.35×活跃度 + 0.25×社区响应 + 0.20×发布节奏 + 0.20×持续合规。
所有分项均由上方展示的 GitHub 原始事实指标(最近推送间隔、近 90 天提交数、Issue 关闭比、Release 频次、OSI 开源许可证与项目存活周期)确定性计算得出,绝无黑盒人工赋分。

🚀 最新版本更新解读:0.127.0

查看官方 Release Notes ↗

发布日期:2026-12-02

  • **deps:** update proxy-agent and reject FTP-hosted PAC ([#12614](
  • **deps:** Promptfoo requires Node.js ^22.22.2, ^24.15.0 or >=26.
  • **providers:** add portable Bedrock Converse schemas ([#11825]( ([a931683](
  • **providers:** add portable Gemini config schemas ([#11824]( ([07a2023](

⚖️ 作者选型判断与复核历史

值得试用

本地优先、配置直观,非常适合在修改 Prompt 或升级模型前做定量回归对比

🔄 同类替代与互补组合

常搭配互补组件: