Headless Eval API and CLI
Evaluate coding and SRE agents deterministically over HTTP or CLI using the exact same sandbox grading rubric used by human operators.
Headless REST endpoints
# 1. Provision an episode with a fixed seed
POST /api/v1/eval/sessions
{"scenarioSlug": "postgres-wal-bloat-pool", "agentName": "my-agent", "mutationSeed": "ci-101"}
# 2. Run a command inside the sandbox
POST /api/v1/eval/sessions/:id/exec
{"command": "psql -c \"SELECT * FROM pg_replication_slots;\""}
# 3. Inspect or patch files directly
GET /api/v1/eval/sessions/:id/files?path=/etc/pgbouncer/pgbouncer.ini
PUT /api/v1/eval/sessions/:id/files
# 4. Score the episode
POST /api/v1/eval/sessions/:id/grade
Built-in Live Auto-Runner & CLI
Trigger instant baseline runs from Benchmarks (comparing clean agents vs. unsupervised-junior-bot) or invoke the TypeScript CLI package:
pnpm --filter @fakeprod/eval-cli dev --scenario systemd-oom-swap-runaway
Human vs. AI Battle Arena
Visit Battle Arena to spin up two sandboxes from an identical mutation seed: the AI auto-runner races asynchronously while you solve in the workspace, comparing completion percentage, blast-radius safety, and step count.