
What it is
Pager is an on-call agent. When an alert fires, it investigates with read-only access to metrics, logs, traces, deploy history, the database and runbooks. Then it writes a structured incident report: the root cause, evidence for and against each hypothesis, and a proposed fix.
Every claim in the report must cite a tool result by id (E1, E2, …). A report that cites an id that doesn’t exist is rejected. A separate tool, pagerops, rolls back a change only after a person approves it.
To measure the agent I built the lab it runs against:
- seven Go services (gateway, auth, orders, inventory, payments, worker, notifications) with Postgres, Redis Streams and a fake payment provider;
- Prometheus, Loki, Tempo and Alertmanager, with SLO burn-rate alerts;
- 26 injectable faults with known root causes: bad deploys, feature flags, DB locks and missing indexes, Redis pauses, file-descriptor limits, expired TLS certs and more;
- an offline scorer that compares each report to the ground truth.

How it works
Each incident goes the same way: reset the lab, start load, pass a health gate, inject a fault plus up to two decoy changes, wait for the page, run every agent configuration on the same live fault, then revert. Ground truth is written only after the investigations finish.
The agent is a checkpointed LangGraph loop with 16 read-only tools. Each run has a budget of 30 model calls, 120 seconds and a dollar cap.
Results
I ran two low-cost models on 20 of the 26 faults. The other 6 depend on host CPU, memory or pause behaviour, so I left them out on the cloud host. 77 incidents were injected and 74 paged. Each was investigated by six configurations, once each.
| Configuration | Right root cause (of 74) | Valid reports | Harmful fix | Cost per run |
|---|---|---|---|---|
| Claude Haiku 5.5, tool agent | 42 (57%) | 65 | 2 | $0.016 |
| Claude Haiku 5.5, tool agent, no runbooks | 44 (59%) | 68 | 1 | $0.014 |
| GLM-5.3-flash, single prompt | 35 (47%) | 57 | 2 | $0.0006 |
| GLM-5.3-flash, tool agent | 14 (19%) | 39 | 2 | $0.009 |
| GLM-5.3-flash, tool agent, no runbooks | 10 (14%) | 42 | 0 | $0.009 |
| Claude Haiku 5.5, single prompt | 0 | 0 | n/a | $0.002 |
What I took from it:
- The best configuration named the right service and mechanism in 57% of incidents (95% CI 45 to 67%). Runbooks made no measurable difference.
- GLM scored higher with one prompt than with the tool loop, 35 against 14, at about a fourteenth of the cost. Its tool loop hit a budget in 45 of 74 incidents.
- Citation checking caught real problems. Haiku wrote sentences into fields that take evidence ids only, in 69 of 74 tool-loop incidents. In the tool loop it usually fixed that on retry. In single-prompt mode there was no retry, so none of its reports survived.
- Harmful fixes were rare: 7 of 271 valid reports. Six rolled back the decoy deploy instead of fixing the fault, and one restarted Redis when deleting the leaked keys would do. An earlier version of my scorer flagged 63, because it counted the correct rollback of a config change as harmful.
Fixing the harness, then re-running
Most of GLM’s tool-loop losses traced back to my harness. The request-size cap counted reasoning text the client never sent (42% of counted bytes), and a run that hit any limit ended with no report. After fixing both, adding a metric-name lookup and tightening the report fields, I re-ran GLM on one incident per fault (19 paged), all three setups on the same live incidents:
| Configuration | Right root cause (of 19) | Right fix | Harmful fix | Total cost |
|---|---|---|---|---|
| GLM-5.3-flash, single prompt | 10 | 10 | 1 | $0.0046 |
| GLM-5.3-flash, tool agent | 11 | 11 | 0 | $0.067 |
| GLM-5.3-flash, tool agent, no runbooks | 13 | 14 | 1 | $0.076 |
All 57 investigations finished with a report. Before the fix, 55 of 74 tool-loop runs ended on a budget or the deadline. The tool loop no longer loses to the single prompt, but 19 incidents can’t show that it wins (exact McNemar p = 1.0).
On the lab side, 95 of 100 valid injections paged, with a median of 42 seconds. The benchmark found one blind spot: a gateway out of file descriptors fails in accept(), which server metrics never see. Adding a synthetic edge probe took it from 0 of 3 to 4 of 4 without loosening any alert thresholds.
All the studies together cost $4.25 in model calls.
Running it on a real system
Version 0.4.0 points Pager at your own Prometheus, Loki, Tempo, Postgres or Redis with one config file. pager check tests that every source is reachable without calling a model, and pager serve receives Alertmanager or Grafana webhooks. It can also read Elasticsearch, Jaeger, VictoriaMetrics, and Kubernetes and Argo CD through read-only kubectl. Only the tools whose sources are configured are offered to the model, and any OpenAI-compatible endpoint works, so a local model can keep everything inside the network. One end-to-end run on a real Alertmanager webhook is recorded. The PagerDuty, Opsgenie and Datadog adapters are built from vendor docs and haven’t been run against live accounts yet.
Limits
- The lab is synthetic.
- Each configuration ran once per incident, on one cloud host.
- The study was planned for 100 incidents and stopped at 77 when the API account ran out of credits.
Stack
Python, LangGraph, Anthropic and OpenRouter APIs, Go, Postgres, Redis Streams, Prometheus, Loki, Tempo, Alertmanager, Grafana, k6, Docker Compose.