agent-anvil vs promptfoo
AI agent tool-use testing and LLM evaluation compared
agent-anvil tests AI agents through scenario-based runs, tool-trace checks, and optional semantic grading. promptfoo evaluates prompts and models, compares outputs, and supports red teaming; the main difference is agent-anvil’s focus on tool behavior versus promptfoo’s broader LLM evaluation and security scope.

agent-anvil: Test AI Agent Tool Use in CI
Agent Anvil evaluates tool-using AI agents through scenario-based runs, trace checks, and optional semantic grading. It helps teams catch unsafe or incorrect tool behavior before it reaches production.

promptfoo: Evaluate and Red-Team LLM Applications
Promptfoo is a TypeScript CLI and library for testing prompts, comparing model outputs, and scanning LLM applications for vulnerabilities. It fits teams that want repeatable evaluations and security checks in local development or CI/CD.
| agent-anvil | promptfoo | |
|---|---|---|
| Language | Python | TypeScript |
| License | MIT | MIT |
| Stars | 9 | 25.9k |
| Forks | 2 | 2.5k |
| Last analyzed | Oct 4, 2026 | Oct 11, 2026 |
Key differences
- agent-anvil checks agent and tool traces against workflow and safety requirements, while promptfoo evaluates prompts, models, and LLM applications.
- agent-anvil defines scenarios in YAML and supports command or HTTP adapters for external agents; promptfoo is available as a CLI and library and can compare outputs across supported providers.
- agent-anvil is written in Python and specifies Python 3.12 or newer; promptfoo is written in TypeScript.
- Both projects use the MIT license. agent-anvil has 9 stars and 2 forks, while promptfoo has 25.7k stars and 2.4k forks in the supplied facts.
- agent-anvil supports deterministic offline scenarios without OpenAI credentials, though semantic grading uses OpenAI models; promptfoo evaluations commonly require API keys for configured providers.
- promptfoo includes red teaming, vulnerability scanning, and a web viewer for results; agent-anvil focuses on tool-use checks, trace reports, and repair suggestions.
Choose agent-anvil if you…
- need repeatable checks for tool-call order, arguments, prerequisites, or other agent workflow rules.
- want to evaluate an existing command-line or HTTP agent without replacing its runtime.
- need deterministic offline scenarios or CI checks focused on agent tool behavior.
Choose promptfoo if you…
- want to evaluate prompts and compare model outputs across supported providers.
- need red-team or vulnerability checks for an LLM application.
- want a CLI or library for evaluations and security checks in CI/CD.
Compare the numbers side by side, or add more projects
This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.