Skip to main content

Your first AI SRE: Automating incident diagnosis with agents

Developers built an AI SRE system using a team of specialized agents to investigate root causes, score confidence, and open pull requests.

AI-written
Inewgen
25 Sep 2026Source: Dev.to3 min read (0 views)
Share
Your first AI SRE: Automating incident diagnosis with agents

Stock photo for illustration only, not from the actual event

Font size
  • The first hour of root-cause analysis is the most tedious and repetitive part of on-call duties.
  • Developers created an AI SRE using multiple specialized agents instead of a single hallucination-prone chatbot.
  • The system operates in read-only mode and opens pull requests for human review to ensure maximum safety.

The most dreaded and mechanical part of being on-call is the first hour of root-cause analysis. Determining which service broke, what changed, what the logs indicate, and whether to roll back or fix forward follows the exact same checklist under pressure. Humans repeat this sequence indefinitely, while idle computing resources sit by like expensive paperweights.

Most conventional AI for operations demos fail by relying on a single chatbot. Asking a chatbot what went wrong often results in a well-structured paragraph that is confidently fabricated because the model never actually inspected the underlying environment. Root-cause investigation requires gathering evidence, correlating deployments, forming hypotheses, and doubting assumptions.

Integrating AI into Site Reliability Engineering (SRE) workflows offers a promising way to reduce operational toil. However, reliability depends heavily on multi-agent consensus rather than a single model's output. By incorporating specialized investigators and a dedicated skeptic role, systems can earn their confidence metrics through rigorous cross-examination rather than relying on unverified generative text.

To solve this, the team built a multi-agent AI SRE focused strictly on the dreaded first hour of incidents. Four specialized agents utilize read-only tools: one examines code, another checks recent releases, a third looks at infrastructure, and the last evaluates metrics. A synthesizer merges their findings, while a skeptic attempts to disprove the conclusions.

developer computer screen code monitoring workspace

Stock photo for illustration only, not from the actual event

When an alert triggers, an ephemeral Kubernetes Job spins up to investigate the incident. The agents analyze the environment, post a confidence-scored verdict, and if applicable, open a pull request with a code fix. The control plane remains deliberately simple without complex frameworks or vector databases, ensuring the investigation phase cannot modify production systems directly.

Never miss the latest news?

Subscribe to get news summaries by email - not often enough to be annoying.

โฆษณา

"Confidence is not the model saying '95 percent sure' with the same cheerful energy whether it is right or hallucinating. Confidence is earned."

Sayok Bose
4Specialized AI agents
1Hour of root-cause analysis

During testing with a latent bug, the agent team disagreed initially, with some pointing to code defects and others to configuration changes. The skeptic failed to refute the findings, leading to a high-confidence verdict that combined both insights. The system successfully generated a safe code fix and opened a pull request for human engineers to review.

Source: Dev.to

Comments

Leave a Comment
0/2000

Found something wrong in this article? Report an issue with this article