What is an AI SRE Agent?
An AI SRE agent is an autonomous software system that investigates production incidents. It receives an alert, decides what to investigate, queries your monitoring tools, reasons about the evidence, and produces a structured incident report — the way an experienced site reliability engineer would, but without the 3 AM wake-up call.
What Makes It an "Agent"?
Not all AI tools are agents. A chatbot answers questions. An AI SRE agent acts autonomously toward a goal.
The key properties of an AI SRE agent:
Goal-directed: Given an alert, the agent pursues a goal — understand what's happening and why. It doesn't just answer one question and stop.
Tool use: The agent has access to tools: run a Prometheus query, check Kubernetes pod status, read application logs. It decides which tools to use based on what it's learned so far.
Multi-step reasoning: Incident investigation requires multiple steps — gather initial context, form hypotheses, gather more targeted evidence, revise hypotheses, reach conclusions. An agent executes this loop autonomously.
Adaptive: If the first hypothesis doesn't pan out, the agent pivots. If a Kubernetes check returns nothing interesting, it moves to application metrics. Human-like reasoning, not brittle scripts.
How AI SRE Agents Differ from Runbook Automation
Runbook automation (like PagerDuty Automation) executes predefined scripts in response to specific alerts. It works well for known, well-defined incidents with known remediation steps.
AI SRE agents handle the unknown:
- New types of incidents you haven't seen before
- Multi-service failures with complex blast radius
- Incidents that don't match any existing runbook
- Root causes that require reasoning across multiple data sources
The tradeoff: runbook automation is predictable and fast for known incidents. AI agents are more flexible but less deterministic.
The Investigation Workflow
A typical AI SRE investigation in OpenSRE.in:
1. Alert received
An alert arrives via Slack, Teams, or the web console: "High error rate on payments-service: 5xx errors at 12%, up from baseline 0.2%."
2. Session start
sre-agent creates or resumes a thread and opens an InteractiveAgentSession (Claude Agent SDK). The root investigator agent plans the work and loads investigation skills on demand.
3. Parallel evidence gathering
The root agent delegates specialist subtasks via the SDK Task tool — for example checking Kubernetes pod health, querying Prometheus, reading traces, and reviewing recent deployments — often in parallel.
4. Memory and topology on demand
After concrete symptoms are known, the agent may call memory-search for similar past investigations and infrastructure-neo4j for dependencies and blast radius. Nothing is pre-loaded into the first prompt; recall is agent-driven.
5. Streaming progress and answer
Tool calls, thoughts, subagent progress, and the final answer stream to the client as Server-Sent Events.
6. Turn completion
When the turn finishes, a lifecycle hook upserts a Neo4j :Episode (one per conversation) with a condensed summary, and the full tool trace is persisted to PostgreSQL for replay in the web UI.
The Role of LLMs
LLMs are the reasoning engine inside an AI SRE agent. They handle:
- Planning: deciding which tools to use and in what order
- Interpretation: understanding what metrics and logs mean in context
- Synthesis: combining evidence from multiple sources into a coherent conclusion
- Communication: writing clear, actionable incident reports
LLMs alone aren't enough — without the tool ecosystem, memory, and knowledge graph, an LLM can only reason about what you tell it directly. OpenSRE.in combines all these components.
OpenSRE.in's Implementation
OpenSRE.in implements AI SRE agents using:
- The Claude Agent SDK as the runtime: one session, skills loaded on demand, subagents for parallel work
- 50+ investigation skills for querying your specific tools
- Memory for learning from past investigations
- Neo4j knowledge graph for service topology context
- LiteLLM for routing to any LLM provider