Test and compare prompts, agents and RAG pipelines, and red-team them for security problems, from the command line.
npx promptfoo@latest initPromptfoo runs your prompts, agents or RAG pipelines against test cases and scores the results, so you can compare models and prompt versions side by side. It also red-teams your app for problems like prompt injection and data leaks.
npx promptfoo@latest init
npx promptfoo@latest eval
Edit the generated config with your prompts and test cases between the two commands.
Microsoft · Tool / CLI
Microsoft's optimizer that trains agent skills like neural networks, with epochs and validation gates, without touching weights.
Model Context Protocol · Tool / CLI
The official tool for testing and debugging MCP servers, with a web UI, a CLI and a terminal UI.
Anthropic · Skill
The official Anthropic skill for writing new Agent Skills, improving existing ones and measuring them with evals.