live
/health

AI agent performance monitoring that pins every regression to the exact commit

BenchVault watches latency, cost, completion rate, error count, and tokens on every agent run, holds a rolling baseline per agent, and surfaces pass/fail with the offending metric attached. A latency spike or a token-cost jump never reaches production without your team seeing it first.

Stream metrics from every agent run
After each invocation, POST avg_latency_ms, cost_usd, total_tokens, completion_rate, and error_count to /api/measurements. One authenticated call wires the agent into continuous performance monitoring.
Continuous baseline per agent
BenchVault holds a rolling baseline of every metric, per agent, with full version history. New measurements are compared to the active baseline so slow drifts and one-off spikes both surface as pass/fail with the violating metric named.
Block regressions in CI
Read the passed boolean from the response and fail the build on false. The violations array points straight at the regressing metric — latency, cost, tokens, completion, or errors — so the offending commit is identifiable before merge.
# Record a measurement — wire performance monitoring into any agent
curl -X POST https://benchvault.ai/api/measurements \
  -H "Authorization: Bearer $BENCHVAULT_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id":        "my-support-agent",
    "avg_latency_ms":  1240,
    "cost_usd":        0.0031,
    "completion_rate": 0.97,
    "error_count":     1,
    "total_tokens":    3800
  }'

# Response — pass/fail plus the exact metric that regressed
{
  "passed": false,
  "violations": ["avg_latency_ms exceeded baseline by 32%"]
}

Frequently asked questions

What is AI agent performance monitoring?

AI agent performance monitoring is the continuous practice of capturing latency, cost, completion rate, error count, and tokens on every agent run, then comparing each run against an established baseline so latency spikes, cost overruns, and silent quality drops are flagged as soon as they appear.

How does BenchVault detect performance regressions?

Every POST to /api/measurements is compared against the current rolling baseline for that agent. BenchVault returns a passed boolean and a violations array inline, so a regression in latency, cost, completion rate, error count, or tokens is visible in the same response — no separate dashboard lookup required.

Which metrics should I watch for AI agent performance?

BenchVault tracks the five metrics that most often correlate with shipped regressions: avg_latency_ms, cost_usd, total_tokens, completion_rate, and error_count. Together they span speed, spend, answer quality, and reliability, so a single endpoint covers most performance monitoring needs.

Can I gate pull requests on agent performance?

Yes. POST a measurement from your CI step and read the passed boolean in the response. If passed is false, fail the job — the violations array tells your team exactly which metric (latency, cost, tokens, completion, or errors) crossed the baseline threshold.

How is performance monitoring different from evaluation?

Evaluations judge whether the agent produced the right answer. Performance monitoring tracks how the agent behaved doing it — how long it took, what it cost, how often it failed, and how many tokens it burned. BenchVault pairs naturally with eval frameworks by adding the operational layer eval suites typically do not cover.

Do I need to deploy any infrastructure?

No. BenchVault is a hosted API — you POST measurements and read pass/fail in the response. There is no agent to run, no storage to provision, and no SDK to install. A single curl call from any CI runner is enough to start gating pipelines on performance.