Offline evals
Test the cases someone wrote down, before the release. Production traffic is mostly the cases nobody did.
Open source Release health for AI agents
Apgar watches the first hours of every release and tells you whether your agent started behaving worse than on the release before it. It works from the traces you already collect, on all traffic, with no LLM judge, no dataset, and no stored prompts.
support-agent Tool error rate
CollectingBaseline
v2.13.2 2.6%
New release
v2.14.0 –
#agent-releases
01 The problem
A prompt edit, a model swap, a new tool, a framework upgrade. The deploy goes green and every request still returns 200. Then the agent starts calling fewer tools, retrying the same call, looping, writing shorter answers, and spending more per turn. Nothing alerts. Someone notices days later, usually a user.
Before the deploy
Production, three hours later
Test the cases someone wrote down, before the release. Production traffic is mostly the cases nobody did.
Show every number, all the time. They don’t say whether this release is worse than the last one, or whether a bump is noise.
Running an LLM judge on every production turn means a bill that grows with your traffic.
02 What Apgar does
Apgar compares every new release of an agent with the release before it and says whether the agent got worse, which signal moved, and where the change is concentrated. The decision stays with your team.
More tool errors, retries and loops, shorter answers, higher cost or latency: changes that never show up as a failed request.
Each message names the signal that moved and where: a tool, a model or a prompt version.
A change has to be clearly bigger than normal variation and hold on a later check before Apgar calls it.
03 How it works
Point the OpenTelemetry exporter your agent already uses at Apgar, or connect a Langfuse project. Existing GenAI and OpenInference instrumentation works as is.
Add one attribute with the build version from your deploy pipeline. A new value starts a new release, compared with the one before it.
Each signal is compared with the release before it. A signal fails only when the change is clearly past your tolerance.
A result counts once it holds on a later check. Then one Slack message or webhook says what got worse, by how much, and where.
# Your existing OpenTelemetry exporter, pointed at Apgar
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://apgar.example.com/v1/traces
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf
OTEL_EXPORTER_OTLP_TRACES_HEADERS=Authorization=Bearer apg_ing_...
# The only Apgar-specific value, set on every deploy
OTEL_RESOURCE_ATTRIBUTES=apgar.release=v2.14.0,gen_ai.agent.name=support-agent,deployment.environment.name=production
04 What it checks
Apgar computes them from the spans your agent already sends, with no model grading the output. Each one has a tolerance you set per agent.
| Signal | Worse when | Tolerance |
|---|---|---|
| Average number of tool calls in a turn. A drop usually means the agent stopped using its tools. | ↓ down | 10% |
| Share of turns that ended without calling any tool. | ↑ up | 5 pp |
| Share of tool calls that repeat a failed call with the same tool and arguments. | ↑ up | 2 pp |
| Share of turns with three or more identical tool calls in a row. | ↑ up | 1 pp |
| Median length of the agent’s answer. | ↓ down | 15% |
| Share of answers that aren’t valid JSON. Only for agents that answer in JSON. | ↑ up | 1 pp |
| Average number of turns in a conversation. By default it’s shown for context and doesn’t fail a release. | ↕ either | 25% |
| Signal | Worse when | Tolerance |
|---|---|---|
| Share of tool calls that ended with an error. | ↑ up | 2 pp |
| Share of turns where at least one model call failed. | ↑ up | 1 pp |
| Signal | Worse when | Tolerance |
|---|---|---|
| Average cost of a turn in US dollars, as reported on your spans. | ↑ up | 20% |
| 95th percentile of turn latency: only the slowest 5% of turns take longer. | ↑ up | 15% |
05 Where it fits
Keep the tracing, evals and dashboards you already run. Apgar reads the same traces, takes the version from your deploy, and answers where your team already works.
OpenTelemetry and OpenInference traces over OTLP, or a Langfuse project. No new SDK.
Self-hosted on Docker Compose or Kubernetes. Prompts and outputs are never stored.
Release messages in Slack, or a signed webhook into CI or your on-call tool.
06 Get started
Start it with Docker Compose or Helm, then load the demo data. You see what Apgar reports before you send a single trace.
mkdir apgar && cd apgar
curl -fsSLO https://github.com/oimo-ai/apgar/releases/latest/download/docker-compose.yml
cat > .env <<EOF
APGAR_SECRET_KEY=$(openssl rand -hex 32)
APGAR_ADMIN_TOKEN=$(openssl rand -hex 16)
CLICKHOUSE_PASSWORD=$(openssl rand -hex 16)
APGAR_PUBLIC_URL=http://localhost:8080
EOF
docker compose up -d --wait
Open http://localhost:8080, sign in with APGAR_ADMIN_TOKEN from
.env, then select Seed demo data.
kubectl create namespace apgar
kubectl -n apgar create secret generic apgar \
--from-literal=APGAR_SECRET_KEY=$(openssl rand -hex 32) \
--from-literal=APGAR_ADMIN_TOKEN=$(openssl rand -hex 16) \
--from-literal=APGAR_CLICKHOUSE_PASSWORD=$(openssl rand -hex 16)
helm install apgar oci://ghcr.io/oimo-ai/charts/apgar -n apgar \
--set existingSecret=apgar --set publicUrl=http://localhost:8080
kubectl -n apgar port-forward service/apgar-ui 8080:80
Once the pods are ready, open http://localhost:8080, sign in with
APGAR_ADMIN_TOKEN from the Secret, then select Seed demo data.
npx skills add https://docs.useapgar.dev
Then ask Claude Code, Cursor or Codex to use the Apgar skill. It reads your agent’s code and lists what to change so each release can be compared.
07 Community
Apgar is licensed under Apache-2.0. Issues, questions and pull requests are welcome.