AI diagnosis is free now. What an on-call agent still has to do
Every tool can explain a CrashLoopBackOff in 2026. The hard part of Kubernetes on-call is noticing, deciding and acting safely at 3 a.m. Here is how we do it.
A year ago, “AI that explains your Kubernetes incident” was a product. Today it is a feature of almost everything you already pay for.
- Claude Code, Codex or Cursor with a Kubernetes MCP server will read your pods, events and logs and tell you why
checkout-apiis crash-looping, in a seat you already have. - Grafana Assistant investigates with your telemetry, and on 20 October Grafana made always-on Assistant Watchers generally available.
- AWS, Azure and Google each have an agent that investigates incidents on the cloud bill you already get.
That is good news. It also means “we use AI to diagnose your cluster” is not a reason to buy anything any more, including KubeAgent. So we changed how we describe KubeAgent. It is the always-on guardrail for your cluster, and AI diagnosis is one part of it.
This post explains why: what an on-call agent still has to do once the explaining is free.
Explaining is the easy part, and it is still not reliable
Even the explaining is far from solved. In May, Artificial Analysis and IBM published ITBench-AA. It gives a model an offline Kubernetes incident snapshot and asks for the minimal set of root-cause entities. Frontier models scored below 50%; the best was 47%.
A model at your keyboard with an engineer reading along is fine at 47%. You check its work. A model acting alone at 3 a.m. at 47% is a different proposition. That gap is what the rest of this post is about.
Job 1: notice, without anyone asking and without spending tokens
A coding agent waits for a question. At 3 a.m. nobody asks one. Something has to look at the cluster every few minutes, and if that something is a language model, you pay for tokens to hear “everything is fine” 288 times a day.
KubeAgent’s monitoring never calls a model. The in-cluster agent runs rule-based checks on an interval:
- crash loops, OOM kills, image pull failures, Pending pods and failed Jobs;
- the HTTP 5xx rate from your ingress, through Prometheus. Pods can be Ready and still return 500s;
- a rollout-regression check: did errors or restarts go up after the last Deployment revision?
- TLS certificates that are expiring, expired or stuck in a late cert-manager renewal;
- once a day, the open-source apps you run (PostgreSQL, Redis, nginx, Grafana and so on), checked against end-of-life dates and known CVEs.
None of this needs AI. It needs a loop that never gets bored.
Job 2: don’t page twice for the same thing
The second-worst page is a duplicate. Every issue the agent finds gets a fingerprint: kind, namespace, workload, reason and restart count bucket. An unchanged incident is not diagnosed or announced again for six hours, and that state survives agent restarts. AI diagnosis runs only when an incident is new or has changed, so the cost tracks your incidents, not your uptime.
Job 3: act only inside rules you wrote, and make the cluster enforce them
This is where “just let the AI fix it” goes wrong. A model that can run kubectl can do anything your kubeconfig can do. Telling it in the prompt to “only restart pods” does not change that, especially when pod logs and annotations are text an attacker can write.
KubeAgent splits the decision in two. The model proposes; code decides. The agent supports five typed actions: restart a pod, rollout restart, scale, set resources, and roll back. Arguments are validated in code. Only the actions on your allow-list run without a person. By default that is restarting a pod and doing a rollout restart; the OOM fix (raising memory) and scaling are opt-in.
Then the cluster enforces it too. On Kubernetes 1.30+ a ValidatingAdmissionPolicy limits what the agent’s ServiceAccount can change on a Deployment:
- replicas, at most 20 when going up, at most half when going down, never 0;
- the restart annotation;
- CPU and memory values that already exist, raise-only, at most 4× per change.
Image, command, env, volumes, everything else: the API server refuses it, whatever the agent sends. Even a compromised agent pod cannot ship a new image. The full list is on our security page.
Job 4: ask a person for the rest, where they already are
Everything outside the allow-list becomes a request. The in-cluster agent sends it to every connected channel; in Slack it arrives with Approve and Deny buttons. Both open a dashboard page that:
- only the account owner can use;
- works once and expires after 24 hours;
- shows the exact action and parameters.
The agent then runs exactly what was approved, nothing broader, and logs it.
This sounds like a small thing. It is the difference between an agent you will actually leave running on production and one you try once in staging.
Job 5: undo a bad deploy without trusting the thing that broke
Most incidents for small teams are a bad deploy. The fastest fix is often a rollback, and a rollback rewrites the pod template. That is exactly what we told the admission policy the agent must never do.
So rollbacks are approval-only and are never offered to the model. They are carried out by a second component, the executor. It has no AI and no shell, has its own ServiceAccount and key, and its own admission policy that allows only that patch. Before you approve, it reads the cluster and shows you the target revision, images and age, marked “verified by executor”. After you approve, it checks again that nothing changed in between, then patches. If the Deployment was recreated or someone shipped a newer rollout, it refuses.
Use both
None of this argues against coding agents or Grafana. When someone is at the keyboard, Claude Code with a Kubernetes MCP server is an excellent investigator, and we use it ourselves. Grafana is where your history lives. The split that makes sense:
- Investigating with a person present: whatever AI tool you like.
- Watching, deduplicating, acting inside rules, asking when unsure, at 3 a.m.: a guardrail built for that job.
We are also building a KubeAgent MCP server, so your coding agent can call KubeAgent’s detections and file an approval request instead of running kubectl against production itself.
If you are comparing options, we wrote dated, sourced comparisons with Claude Code + a Kubernetes MCP server, Grafana Assistant, HolmesGPT, Metoro and others. Each one says where the other tool is the better choice.
Try it
Monitoring, alerts and the app CVE/EOL scan are free forever, and the free plan includes 200K AI credits that do not expire. Paid plans are a flat $29.99, $79.99 or $199.99 a month, not per node.
npm install -g kubeagent
kubeagent login
kubeagent onboard # pick what may run without asking
kubeagent agent install # always-on, in your cluster
Or run npx kubeagent demo first. It breaks a pod in a throwaway namespace and shows the whole loop in about a minute.