All projects

Agent Labs

Live

Agent Labs is an evaluation and debugging framework for AI agents: it records every run, finds the first step that went wrong, and proves a fix with controlled reruns.

Built by . Started , last updated .

Agent Labs decision tree of a support agent run, with the failed tool call in red

How it works

  • JSONL eval datasets with programmatic checks (tool called, answer contains, grounded, max steps) plus an LLM judge with structured output.
  • Failures are sorted into categories: wrong tool, invalid arguments, false claim, incomplete, timeout. Each task reports p50/p95 latency and cost.
  • Deterministic replay of recorded runs, and forking from any step to rerun N times against a control, scored with Fisher's exact test.
  • Trajectory diffs between models, and a CI gate that fails the build below a 90% pass rate.

Numbers

  • Auto-Blame finds the first wrong step 92% of the time with Gemini Flash (72% with Flash-Lite) on 50 seeded failures from 10 bugs, against a 30% baseline.
  • 13/13 runs replayed identically offline, at $0.
  • A fork proving a fix: 5/5 with the change vs 0/5 without (p = 0.008).

The fix that only looked significant

One fix scored 4/5 against 0/5 and looked like a win. Reading the trajectories showed the agent was inventing IDs to get there. That's why every fix in Agent Labs has to survive a fork and a trajectory read, not just a pass rate.

Screenshots

Record, evaluate, blame, fork, diff, lock it in
Record, evaluate, blame, fork, diff, lock it in
Every run as a decision tree you can click through
Every run as a decision tree you can click through
A fork proving the fix: 5/5 with the change, 0/5 without
A fork proving the fix: 5/5 with the change, 0/5 without
Blame accuracy on 50 deliberately planted bugs
Blame accuracy on 50 deliberately planted bugs

Stack

  • Python 3.12 + uv
  • Gemini Flash / Flash-Lite
  • OpenTelemetry GenAI-style spans
  • SQLite trace store
  • React UI
  • pytest
  • GitHub Actions