Evaluate AI before you ship, while it runs, and as you train it
Answer one question for every change: can we safely ship it? Agents, RAG pipelines, LLMs and models on one set of evaluators, with sandboxed runs and CI gates, live trace scoring, release decisions and RL rewards. Built first for agents. Self-hosted, from a laptop to Kubernetes.
pip install evalsiLatest releaseChangelog
$ evalsi compare baseline.json candidate.json --fail-on-regression
metric n baseline candidate diff CI -0.4 0 +0.4
task-success 40 0.925 0.700 -0.225 [-0.378, -0.072] REGRESSED
tool-call-accuracy.recall 40 0.812 0.846 +0.034 [-0.041, +0.109]
loop-detection 40 0.875 0.950 +0.075 [+0.006, +0.144] improved
policy-violations.policy-clean 40 0.975 0.975 0.000 [-0.049, +0.049]
$ echo $?
3Works with the tools you already use
- lm-evaluation-harness
- Inspect AI
- RAGAS
- DeepEval
- SWE-bench
- τ-bench
- Terminal-Bench
- BFCL
- LangGraph
- CrewAI
- OpenAI Agents SDK
- LlamaIndex
- Claude Agent SDK
- OpenInference
- OpenLLMetry
- MLflow
- OpenTelemetry
- Langfuse
- Phoenix
- agentgateway
- Kubernetes
- KEDA
- NATS
- PostgreSQL
- ClickHouse
- S3
- Firecracker
- TRL
- verl
- OpenRLHF
- MCP
- A2A
- vLLM
- SGLang
- Ollama
One decision, every change
Can we safely ship this agent change?
Connect the agent and trace store you already use. Turn real failures into reproducible tests. Get a reviewable release decision for every change, with the evidence behind it.
- 1
Connect what you run
Point Evalsi at the agent you already have (A2A, MCP, HTTP, a CLI or the built-in harness) and the traces you already keep in OpenTelemetry, MLflow, Phoenix, Langfuse or LangSmith.
- 2
Turn failures into tests
Capture a failing production trace in the failure inbox, approve a redacted expectation, and publish it to a pinned, versioned regression suite in the dataset catalog.
- 3
Decide every release
Run the candidate against an explicit baseline under a reviewed policy. The decision is PASS, BLOCK or INSUFFICIENT, saved with its evidence, from the CLI, the browser or a GitHub Action.
PASSBLOCKINSUFFICIENT
Teams shipping production agents
A daily PR check and a debugging loop: run the suite, open the paired cases that changed, and fix the regression before it merges.
Enterprise AI and platform teams
One self-hosted engine with project isolation, OIDC and RBAC, strict hash-chained audit and air-gapped installs, so every team ships against a shared standard.
Model and training teams
The same evaluators as RL rewards and checkpoint checks, and the same agent tasks as Gymnasium, NeMo Gym, OpenEnv and verifiers environments.
Gate an agent in CI: a failing gate and a GitHub Actions workflow, free and offline. Or start from your own application.
Four doors, one platform
Run it, watch it, score it, reward it
The same evaluators work in every mode, so a metric means the same thing in CI, in production and in training.
evalsi runRun
Run an agent on sandboxed tasks, or a RAG pipeline or model on a dataset. Trials, gates and budgets fail the build when it gets worse.
evalsi policyWatch
Continuously evaluate live agent traces, sent over OpenTelemetry or read from MLflow, Phoenix and Langfuse, with sampling, cascades, windowed alerts and promotion to datasets.
evalsi evalScore
Grade agent runs, RAG answers and outputs you already have. Every mean ships with a confidence interval; records an evaluator can't judge are skipped, never scored zero.
RewardServiceReward
Evaluators as RL rewards for TRL, verl and OpenRLHF, and every checkpoint checked against the base model.
New in 0.4.0
Gates that catch missing evidence, and a faster first result
Upgrade with pip install -U evalsi evalsi-harness, and the server and charts to the same version. Everything else that changed is in the changelog.
Gates on coverage
A mean leaves skipped records out, so a gate on it can pass when most outputs are missing. The skipped-rate and count gates fail that run, and evalsi run warns when a passing gate skipped records.
Compare two results files
evalsi compare baseline.json candidate.json pairs records and trials, prints each metric's difference with its interval, and can exit 3 on a regression. No server needed.
Gates inside pytest
assert_eval runs an evaluation in a test and fails it with the metric table and the failing records; pytest --evalsi-results saves each call's results.
Async and HTTP applications
The application starter runs an async callable or an HTTP endpoint, with a timeout and headers from the environment, so a token never appears in a command.
Pull-request comment
The GitHub Action can post its metrics-only summary as one comment, updated on each push. A missing permission never changes the gate's outcome.
A first-run screen
An empty server shows the commands that send a first run, the root address leads to the UI, and a finished run can be run again.
Evaluators that fail loudly
loop-detection finds repeated blocks of calls, regression errors on unparseable outputs, and json-valid refuses NaN. Some results change: see the changelog.
A tidier CLI
evalsi --help shows the commands to start with and groups the rest; --help-all lists every command.
Review fixes
Empty datasets exit 1, byte-order marks load, an interval cannot leave [-1, 1], a dataset path no longer reveals which server files exist, and two vulnerable dependencies are bumped.
Built for what you are building
Agents, RAG and training
Agents come first because that is where evaluation is hardest. RAG and training are first-class too, and every track uses the same evaluators.
Agents
Built firstPut an agent to work on sandboxed tasks and grade what it did, before it ships and while it runs.
- A hidden checker grades the end state; evaluators score tool calls, trajectories, loops and policy violations
- pass@k and pass^k over trials, and gates that fail the build
- Live traces from LangGraph, CrewAI, the OpenAI Agents SDK, LlamaIndex and the Claude Agent SDK
RAG
Retrieval and generation fail differently, so Evalsi scores them separately and tells you which to fix.
- context precision and recall for retrieval; faithfulness and answer relevance for generation
- citation accuracy needs no judge, and a judge can be a model you host
- RAGAS and DeepEval metrics, and a CI gate on your pipeline's recorded answers
Training
Evaluators become the reward and the regression check while you fine-tune or run RL.
- Rewards for TRL, verl and OpenRLHF: format, math equivalence, sandboxed code tests and reward models
- Every checkpoint compared with the base model, record by record
- Regression gates that fail on significant drops
evalsi-harness
A built-in agent harness, made for evaluation
The harness runs an agent on a task in a sandbox, records every model call and tool result, and grades the final state with a checker the agent never sees. Use it to measure a model on a known, versioned agent, or to put your own agent through the same tasks, trials and gates. The tasks double as RL environments.
It is built for evaluation, not for serving agents to users. Bring an agent that serves users over A2A or HTTP, and Evalsi evaluates it.
pip install evalsi-harnessPyPI
# pip install evalsi-harness; evalsi run -f agent-run.yaml
apiVersion: evalsi.dev/v1alpha1
kind: EvalRun
metadata: {name: fix-calc}
spec:
target: {connector: anthropic, model: claude-opus-5-5}
dataset: {path: fix-calc.jsonl}
harness:
builtin:
profile: standard
max_steps: 20
budget: {usd: 0.50, wall_clock: 5m}
hooks:
- python: evalsi_harness.approval:ApprovalGate
config:
rules: [{tool: bash, command: "git push*", action: ask}]
approver: {default: deny}
environment:
sandbox: {min_isolation: namespaced, network: deny}
checker: # the agent never sees it
files: {test_hidden.py: "..."}
isolation: clean # a fresh sandbox, outputs only
outputs: [calc.py]
command: [python3, test_hidden.py]
evaluators:
- {ref: task-success}
- {ref: denial-respected}
- {ref: trial-tampering}
trials: 3
gates: [{metric: task-success.pass^3, min: 0.5}]Tool-calling agent
OpenAI-compatible and Anthropic models with thinking, streaming and prompt caching; bash, file, edit, glob, grep and patch tools; MCP over HTTP and stdio.
Versioned profiles
minimal, standard and code-mode, so a score names the harness it was measured on.
Sub-agents
A delegate tool starts a sub-agent with a clean context; its steps form a tree and its spend comes out of the parent's budget.
Approval gates
Ask before matching tool calls; a scripted approver approves, edits, denies or never answers, and every decision replays exactly.
Users and interruptions
An LLM-simulated user with a persona and goal, and scripted corrections mid-run.
Long runs
Compact, clear-tool-results, fresh-rounds and evidence-state context strategies, compared like any other setting.
Record, replay, resume, fork
Every model call and tool result is logged as it happens; resume a killed trial or fork from step N.
Faults and hooks
Errors, timeouts, malformed output and prompt injection per tool, and Python hooks at each point of the loop.
Grading that resists gaming
Hidden checkers, clean checker isolation, protected files, reward-hacking signals and per-rule state assertions.
Bring your own agent
A2A, MCP, OpenAI Responses, HTTP, or a CLI in the sandbox, with readers for Claude Code, Codex, Gemini CLI and pi.
Benchmarks and matrices
SWE-bench, τ-bench, Terminal-Bench, Harbor and BFCL; harness × model matrices with cost beside the score.
Training environments
Rollouts with step-level rewards and token traces, as Gymnasium, NeMo Gym, OpenEnv and verifiers environments.
Not built yet, and proposed on the harness roadmap: a model or human approver and an agent that asks for approval on its own, nested and parallel multi-agent topologies, and conversation-level scoring.
Fits your stack
Plug in at either end
Send traces from any OpenTelemetry source or gateway, or read them from the MLflow, Phoenix or Langfuse you already run, point runs at your own agent over A2A, MCP, HTTP or a CLI, and export results to the dashboards you already watch.
- gRPC, gRPC-Web, HTTP/JSON and MCP on one port
- Scores written back to MLflow, Langfuse and Phoenix, or exported over OpenTelemetry
- No default judge, so nothing is billed by surprise
- Judges on Claude, OpenAI or a model you serve on vLLM, SGLang or Ollama
Built for production
Everything an evaluation platform needs
Sandboxed, fail-closed
Firecracker where available, then bubblewrap or Landlock, then hardened pods. If nothing qualifies, nothing runs.
How the ladder worksPluggable by design
Existing frameworks and benchmarks plug in as isolated adapters.
Plugins and adaptersInline guardrails
Redact, evaluate and block in the request path through agentgateway.
Guard your trafficapiVersion: evalsi.dev/v1alpha1
kind: EvalRun
metadata: {name: swebench-verified}
spec:
target: {agent: {cli: {command: [my-agent]}}}
dataset: {uri: "swebench://verified"}
evaluators: [{ref: task-success}]
gates:
- {metric: task-success, min: 0.3}Kubernetes native
Helm charts and an operator with EvalRun, OnlineEvalPolicy, TraceSource, Evaluator and SandboxClass resources.
Deploy on Kubernetesexact-match 0.93 ▲ 0.04 · gate passed
MCP for coding agents
Agents check their own changes with evalsi mcp.
Connect over MCPIdentity and access
OIDC, API keys, project RBAC, CEL rules and an audit log.
Set up accessRuns in your environment
Self-hosted with your models, storage, identity and secrets.
Scale it outAgent and RAG metrics you define
30 DeepEval metrics, plus JevEval questions you write about answers, context and trajectories, decided by your judge or by the logprobs of a model you host.
DeepEval and JevEvalTrace sources
Score traces kept in MLflow, Phoenix or Langfuse, and write scores back
Agent frameworks
LangGraph, CrewAI, OpenAI Agents, LlamaIndex, Claude Agent SDK
Agent harness integration
Online scoring and deploy gates beside your agent harness
Webhooks
Signed events when a run finishes or fails a gate
Human annotation
Queues with progress and agreement
Wasm evaluators
Ship graders as Wasm with a plugin index
Web UI and workbench
Runs, paired case inspection, release workbench and catalog
Enterprise deployment
Topologies, every outbound connection, audit and data erasure
Evaluator validation
Calibrate judges against frozen human labels
Production failures to tests
Failure inbox, snapshots and the dataset catalog
Fine-tuning and RL
Rewards and checkpoint regression checks
Your way in
CLI, Python or Kubernetes
Write an evaluator as a decorated function, run it next to the built-ins, then take the same spec to a cluster as an EvalRun that gates your rollout.
# evalsi run -f agent-gate.yaml exit 0 passes, exit 3 fails the build
apiVersion: evalsi.dev/v1alpha1
kind: EvalRun
metadata: {name: agent-gate}
spec:
target:
agent:
cli: {command: [my-agent, --task, "{instruction}"]}
dataset: {path: tasks.jsonl}
environment:
checker: {command: [pytest, -q, hidden_tests]} # the agent never sees it
evaluators: [{ref: task-success}, {ref: policy-violations}]
trials: 3
gates:
- {metric: task-success.pass^3, min: 0.8} # 3 passes in a row, on 80% of tasksStart evaluating in a minute
Open source, self-hosted and air-gappable. Bring your own models, storage, identity and secrets.