Skip to content
Mickl edited this page Jul 10, 2026 · 4 revisions

AgentBench

The Regression Testing Framework for AI Agents.

Version

New Here?

First time using AgentBench? Start with the Web-Dashboard-Guide -- it explains what every page does, how the Web Dashboard and CLI work together, and walks you through your first test in 3 steps.

Quick Start

npm install -g agentbench
agentbench init
agentbench test

5 minutes to your first agent test.

What is AgentBench?

AgentBench brings software engineering rigor to AI agents — replay, assertions, coverage, regression detection, and CI — the same tools you expect when testing code, now for your AI layer.

AgentBench is to AI Agents what Jest is to JavaScript.

Why AgentBench?

Without AgentBench With AgentBench
"I think the new prompt is better" Score improved 7.2 → 9.1 (+26%)
Manual spot-checking Automated test suites with assertions
No idea if GPT → Claude breaks things Cross-model replay catches drift instantly
Can't reproduce failures Full trace — every call, every tool use
console.log(agentResponse) as test suite agentbench test in CI

Key Features

  • Replay — Record and replay agent executions deterministically (zero LLM cost)
  • Assertions — Chainable DSL: expect(run).tool("search").toBeCalled().output().toContain("answer")
  • Evaluation — 14 rule evaluators + LLM-as-Judge across 8 dimensions
  • Coverage — 4D analysis: Prompt, Workflow, Tool, Edge-case
  • Regression Detection — Auto-flag score/token/cost/latency regressions
  • CI-Ready — GitHub Actions, GitLab CI, CircleCI, JUnit export
  • 15 Packages — Core, Providers, Adapters, Config, VS Code Extension

Documentation

Section
Getting-Started Install, init, and first test in 5 minutes
Core-Concepts Replay, Assertions, Evaluation, Coverage, Snapshots
Guides Testing patterns, CI/CD, Custom Providers, Migration
CLI-Reference All 13 CLI commands with flags
API-Reference REST API endpoints with curl examples
Config-Reference Complete agentbench.config.ts reference
Assertion-DSL All 22 matchers API reference
Cookbook Recipes for common testing scenarios
Examples 14 official examples indexed by difficulty
Architecture System design and data flow
Provider-Ecosystem 12+ LLM providers + build your own
VS-Code-Extension Extension features and setup
FAQ Frequently asked questions
Roadmap v0.3 → v1.0 plan
Contributing How to contribute

Ecosystem

15 packages including 8 provider plugins: OpenAI, Anthropic, Gemini, DeepSeek, Azure OpenAI, OpenRouter, Groq, Ollama — plus LangGraph, MCP, CrewAI, LlamaIndex adapters.

14 official examples — from simple Hello Agent to complex Multi-Agent Workflows.


Made with ❤️ for the AI Agent community · GitHub · Releases

AgentBench v0.3.0

Home

Getting Started

Core Concepts

  • Core-Concepts
  • Replay & Snapshots
  • Assertions & Evaluation
  • Coverage & Non-Determinism

How-To Guides

Reference

Cookbook

  • Cookbook
  • Prompt Regressions
  • Model Migration
  • Cost Budgets
  • Safety Testing
  • A/B Testing

Community

Ecosystem

Clone this wiki locally