Open source Release health for AI agents

Did the latest release make your agent worse?

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.

Self-hosted on Docker Compose or Kubernetes Apache-2.0

support-agent Tool error rate

Collecting

Baseline

v2.13.2 2.6%

3,812 turns · previous 7 days

New release

v2.14.0 –

0 turns · 0m since release

#agent-releases

01 The problem

Agents don’t crash when they get worse.

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

  • ✓buildpassed
  • ✓unit tests412 passed
  • ✓offline evals94 / 96
  • ✓deployv2.14.0 → prod
  • ✓health check200 OK

Production, three hours later

  • tool calls per turn3.1 → 1.9−39%
  • retry rate0.8% → 4.2%+3.4 pp
  • turns without tools6% → 19%+13 pp
  • cost per turn$0.012 → $0.019+58%
  • http errors0.1% → 0.1%no change

Why the usual tools miss it

Offline evals

Test the cases someone wrote down, before the release. Production traffic is mostly the cases nobody did.

Dashboards

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.

Online evals

Running an LLM judge on every production turn means a bill that grows with your traffic.

02 What Apgar does

Every release gets a regression check on production traffic.

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.

Catches the quiet regressions

More tool errors, retries and loops, shorter answers, higher cost or latency: changes that never show up as a failed request.

Shows where it changed

Each message names the signal that moved and where: a tool, a model or a prompt version.

Ignores noise

A change has to be clearly bigger than normal variation and hold on a later check before Apgar calls it.

03 How it works

Two steps for you, two for Apgar.

  1. 1

    Send your traces

    Point the OpenTelemetry exporter your agent already uses at Apgar, or connect a Langfuse project. Existing GenAI and OpenInference instrumentation works as is.

  2. 2

    Tag the release

    Add one attribute with the build version from your deploy pipeline. A new value starts a new release, compared with the one before it.

  3. 3

    Compare every 5 min

    Each signal is compared with the release before it. A signal fails only when the change is clearly past your tolerance.

  4. 4

    Confirm, then notify

    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.

agent.env
# 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

Eleven signals that move when an agent gets worse.

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.

Behavior

SignalWorse whenTolerance
Average number of tool calls in a turn. A drop usually means the agent stopped using its tools.↓ down10%
Share of turns that ended without calling any tool.↑ up5 pp
Share of tool calls that repeat a failed call with the same tool and arguments.↑ up2 pp
Share of turns with three or more identical tool calls in a row.↑ up1 pp
Median length of the agent’s answer.↓ down15%
Share of answers that aren’t valid JSON. Only for agents that answer in JSON.↑ up1 pp
Average number of turns in a conversation. By default it’s shown for context and doesn’t fail a release.↕ either25%

Reliability

SignalWorse whenTolerance
Share of tool calls that ended with an error.↑ up2 pp
Share of turns where at least one model call failed.↑ up1 pp

Cost and latency

SignalWorse whenTolerance
Average cost of a turn in US dollars, as reported on your spans.↑ up20%
95th percentile of turn latency: only the slowest 5% of turns take longer.↑ up15%

05 Where it fits

Apgar adds a release check, not another platform.

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.

The deploy pipeline sets the release version on the AI agent. The agent sends OTLP traces to an OpenTelemetry Collector, which forwards them to an observability tool and to Apgar. Apgar can also pull traces from Langfuse. Apgar reports to Slack and to a webhook.release versionOTLPOTLPLangfuse pullDeploy pipelineSets the releaseAI AgentEmits tracesOTel CollectorFans out tracesObservabilityTraces, dashboardsApgarRelease health checkSlackWebhook The deploy pipeline sets the release version on the AI agent. The agent sends OTLP traces to an OpenTelemetry Collector, which forwards them to an observability tool and to Apgar. Apgar can also pull traces from Langfuse. Apgar reports to Slack and to a webhook.release versionOTLPOTLPLangfuse pullDeploy pipelineSets the releaseAI AgentEmits tracesOTel CollectorFans out tracesObservabilityTraces, dashboardsApgarRelease health checkSlackWebhook

Reads what you have

OpenTelemetry and OpenInference traces over OTLP, or a Langfuse project. No new SDK.

Runs next to it

Self-hosted on Docker Compose or Kubernetes. Prompts and outputs are never stored.

Answers where you work

Release messages in Slack, or a signed webhook into CI or your on-call tool.

06 Get started

See it work before you connect an agent.

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.