Zhang Han
All work

Open-source project · Evaluation tool

agent-evals

Agent evaluation and regression checks

Use the same tasks to check an agent’s answers, tool calls and file changes, then compare which cases improved or failed across two runs. Evaluations run locally and retain the original records and failure reasons.

On this page
Built
Evaluation CLI · Pi adapter · Scorers · Regression gates
Stack
Python · Pydantic · JSONL · PyYAML

Run tasks, record steps, score results

Each case defines an input and expected outcomes. An adapter runs the agent and produces a shared execution record; scorers check each requirement. Scores stay with the original record so failures can be investigated.

Adapter · Execution
The Mock adapter provides repeatable examples. The Pi adapter copies an isolated workspace, launches the CLI and collects session records, process results and Git diffs.
Trace · Evidence
Records model and tool steps, the final answer and execution metrics. Verification command results and workspace state are labeled as program observations, separate from model output.
Scorer · Assessment
Rules check answer content, tool order and arguments, and execution metrics. Pi adds file and command checks, plus a rule that flags success wording when required commands failed. A model judge can be enabled in configuration.

Checking files and command results

After Pi finishes, the adapter runs the case’s verification commands and reads the workspace state. Scorers check whether expected files changed, forbidden files were touched and commands passed.

Finding changes between runs

The compare command aligns baseline and candidate cases. It lists new failures, fixes, regressions grouped by tag and metric differences. If the pass rate or score drops beyond a configured threshold, the command exits with a nonzero status for automated regression checks.