Overview
Agent Experiment provides a repeatable lifecycle for agent evaluations: load versioned fixture or Git-backed datasets, provision isolated workspaces, invoke an agent, judge results with Agent Judge juries, persist structured evidence, and compare variants.experiment-core has no direct agent-SDK integration. experiment-claude adds Claude Code SDK
invocation, planning, and semantic evaluation, while experiment-workflow adapts typed Agent
Workflow executions and journaled step costs to the common AgentInvoker contract.
The framework records source and dataset revisions, dirty state, configuration, knowledge hashes,
workspaces, results, costs/tokens, and journals. Exact replay still depends on callers pinning the
external model, CLI, tools, network services, and other nondeterministic inputs.
Architecture
Dataset
Git-managed fixture datasets with items, before/reference snapshots, and version tracking
AgentExperiment
Orchestrates the full loop: load items, invoke agent, judge, aggregate, persist
Comparison Engine
Compare runs across variants with per-judge deltas, regression detection, and summary statistics
Sessions & Sweeps
Group variant results into sessions, group sessions into sweeps for multi-run analysis
ReEvaluator
Post-hoc re-scoring of stored results without re-invoking agents
JudgeExperiment
Run a judge as the system under test against labeled datasets
Modules
Documentation
Getting Started
Run your first experiment: dataset, agent, jury, variant comparison
Creating Experiments
Design datasets, configure variants, wire custom judges
Jury System
Build cascaded juries for tiered evaluation
API Reference
Core types, runner, comparison, storage, diagnostics
Quick Start
Release and Compatibility
Version 0.6.0 moves runtime judging to Agent Judge 0.14.0. Stored results use Agent Experiment-ownedRecordedJudgment and RecordedVerdict projections. Existing 0.5 / Agent Judge
0.13 result files load automatically and preserve normalized outcomes, reasoning, checks, labels,
metadata, and available composite evidence. Re-saving writes the new format; obsolete range bounds,
categorical allow-lists, and unnamed legacy composite identity cannot be reconstructed losslessly.
Standalone consumers resolve Agent Journal/Capture 1.8.2, Jackson 2.22.2, and Jackson 3.2.2 without
an AgentWorks BOM. The parent artifact publishes one aggregate CycloneDX 1.6 JSON SBOM, and the
stable release includes signed binaries, sources, and Javadocs with the project BSL text.
Role in the Lab
Agent Experiment is the execution layer that ties the other AgentWorks projects together:- Agent Judge β Jury scores every item
- Agent Journal β Traces captured during invocation
- Agent Sandbox β Isolated execution environments
- Agent Bench β Benchmark datasets consumed by experiments
Source
GitHub
Source code (BSL 1.1) β three modules, 544 tests