Running Commands
Agent Bench runs via Maven exec plugin:agent-bench-agents when running benchmarks with LLM judges (like code-coverage).
Use agent-bench-core for simple benchmarks (like hello-world) or when Spring AI Agents dependencies are unavailable.
Commands
list
List available benchmarks.tasks
List tasks in a benchmark.run
Run a benchmark end-to-end: set up workspace, invoke agent, grade result.
Output: Creates
runs/<uuid>/ with result.json, run-metadata.json, and per-task directories.
resume
Resume an interrupted run. Skips tasks that already have aresult.json.
compare
Compare results across multiple runs.
Output: Table comparing agent, accuracy, pass@k, cost, duration, and trial count.
provide
Set up a workspace for manual agent invocation (without running an agent).grade
Grade an existing workspace without running an agent.Output Structure
Failure Modes
When a trial fails, thefailureMode field classifies why: