AI agents
DevOps AI agents: what they can safely do, and what should stay with a person
Reading logs and changing infrastructure are different jobs, and most of the risk in a DevOps agent sits in the gap between them.
What are DevOps AI agents, and what can they do?
DevOps AI agents are language-model systems that read operational data and call tools such as CI pipelines, cloud APIs and ticketing systems. They are most useful for read-heavy work: triaging alerts, summarising incidents, explaining failed builds. Anything that changes production should still pass through a human approval step, because agents fail confidently.
The short version
- A DevOps AI agent is a language model with tool access: it reads logs, queries metrics and calls APIs, rather than only suggesting text.
- The safest first uses are read-only: alert triage, incident summaries, failed-build explanations and runbook lookup.
- Changes to production should need human approval, because an agent's wrong answer reads exactly like its right one.
- An agent's credentials are its blast radius, so give it its own identity with the narrowest permissions that still work.
- If you cannot replay what an agent saw and did, you cannot debug it, so log every tool call with its inputs and outputs.
What is a DevOps AI agent?
A DevOps AI agent is a language model connected to operational tools and allowed to decide which tool to call next. It might read a failed CI log, query a metrics API, look up the last three deploys and post a summary to the incident channel. It chooses each step based on what the previous one returned.
That is the difference from a script. A script runs the same steps every time, which makes it predictable and easy to audit. An agent picks its steps at run time. That flexibility is the whole value, because incidents rarely follow the runbook exactly. It is also the whole risk, because the same flexibility lets it take a step nobody planned for.
It is also different from a coding assistant. A coding assistant suggests text that a developer accepts or rejects. An agent acts. Once it holds credentials and can call an API, the question is no longer whether its suggestion is good. The question is what it is allowed to touch.
What can AI agents do in DevOps today?
The work that suits agents today is read-heavy and light on judgement: gathering context, summarising it and pointing a person at the likely cause. Alert triage, incident timelines, failed-build explanations, runbook lookup and first-pass review of infrastructure changes all fit. In each case a person still makes the call.
Agents are good at the tedious first stretch of an incident, when someone has to open six dashboards, read the recent deploys and scroll through a log. They are much less trustworthy at the decision that follows. A fluent explanation of the wrong cause looks exactly like a fluent explanation of the right one.
Which DevOps tasks suit an agent, and who should act?
| Task | What the agent does | Who takes the action | Cost of a wrong answer |
|---|---|---|---|
| Alert triage | Groups related alerts, pulls recent deploys and relevant dashboards | On-call engineer | Low: a person still decides |
| Incident summary | Drafts a timeline from chat, tickets and logs | Incident lead edits and posts | Low: errors get corrected in review |
| Failed build explanation | Reads CI logs and points to the likely failing step | Developer | Low: the developer checks the log |
| Change review | Flags risky configuration, missing tests or wide permissions | Human reviewer | Medium: a clean pass breeds false confidence |
| Diagnostic runbook steps | Runs pre-approved, read-only checks | Agent, unattended | Medium: noisy or misleading output |
| Rollback or scaling | Proposes the action with its reasoning | Human approves | High: wrong action during an incident |
| Infrastructure or IAM changes | Drafts the plan only | Human applies | High: outage or security exposure |
Are companies actually deploying AI agents in operations?
Some are, but the answer depends on who you ask. A vendor-run PagerDuty survey of 1,000 IT and business executives reported that more than half of companies have deployed AI agents. A Stack Overflow pulse survey of 1,100 developers and working professionals found that agentic AI at work remains mostly single-agent and monitored.
Those findings do not conflict. Executives answering a vendor survey and practitioners describing their working day are measuring different things. The word 'deployed' covers everything from a pilot in one team to an agent with write access to production. For planning, the practitioner view is the more useful assumption: one agent, doing one job, with a person watching.
That is also a sensible place to start. Multi-agent setups, where agents hand work to each other, multiply the places a mistake can enter. They also make it harder to tell which step went wrong.
Why does faster coding create more work for DevOps?
Because code generation sped up and the stages after it did not. GitLab's survey of 3,266 DevSecOps professionals, conducted by The Harris Poll, calls this an 'AI paradox': faster coding creates new bottlenecks. More changes arrive at review, testing, security scanning and deployment, and those stages still run at the old pace.
That pressure is what pulls agents into pipeline work. The tempting fix is an agent at every bottleneck. That helps where the bottleneck is mechanical, such as reading a long test log. It does not help where the bottleneck is human judgement, such as deciding whether a change is safe to ship. An agent that approves changes faster than people can understand them has moved the risk, not removed it.
What should a DevOps agent never do without approval?
Anything destructive, irreversible or security-sensitive. That means deleting resources, applying infrastructure changes, editing IAM policies or firewall rules, reading or rotating secrets, force-pushing and silencing alerts. The agent can draft the action. A person approves it.
The reason is not that agents are usually wrong. It is that their mistakes are hard to spot. A person who is unsure tends to hesitate. A model uses the same confident tone whether it has found the cause or invented one. An approval step puts a moment of human scepticism between a plausible plan and a production change.
Silencing alerts needs particular care. An agent asked to reduce noise can hit its target by muting whatever was noisy, and sometimes that noise is the only sign that something is broken.
How do you give a DevOps agent access safely?
Give it its own identity with the narrowest permissions that still let it do the job, and make write access the exception. An agent running under an engineer's personal token inherits everything that engineer can do. Its actions also become indistinguishable from theirs in the audit log.
Enforcement has to happen outside the model. Putting 'do not delete anything' in its instructions is a request, not a control. The control is that its credentials cannot delete anything, or that every delete call goes through an approval service the model cannot bypass.
What is the minimum control set for a DevOps agent?
- A dedicated service identity, never a person's credentials.
- Read-only scopes by default, with each write permission added for a named task.
- Short-lived credentials issued per run, not long-lived tokens sitting in configuration.
- An approval step for every high-risk action, enforced by infrastructure rather than by the prompt.
- Separate access per environment, so work in staging cannot reach production.
- A log of every tool call with its inputs and outputs, kept long enough to replay an incident.
- A rate limit on actions, and an off switch that does not depend on the agent.
How do you tell whether a DevOps agent is helping?
Measure the specific job it was given against how that job went before, using your own incidents. General productivity claims will not answer the question for your team, and even careful studies struggle. METR is changing the design of its developer productivity experiment and says its follow-up trial's estimate is biased, because more developers refused to work without AI.
Your measurement will be rougher than a controlled trial, so keep it concrete. For an incident agent, track how long it takes from alert to a usable summary. Track how often the on-call engineer used the summary as written and how often they rewrote it. Track how many proposed actions were rejected. A rising rejection rate is an early warning, not a failure.
Keep a set of past incidents with known causes and replay them whenever you change the model, the prompt or the tools. That is the closest thing an agent has to a regression test. Public research gives useful context. Google Cloud's 2025 DORA report on AI-assisted software development surveyed nearly 5,000 technology professionals, but it describes the industry, not your on-call rota.
When is a DevOps AI agent not worth building?
When the team is small, incidents are rare, or a deterministic script would do the job. An agent pays for itself on work that is varied, frequent and depends on context. If the same three things keep going wrong and the fix is known, write the script.
It is also not worth it when the foundations are missing. An agent can only read what is logged and follow what is documented. If observability is thin and the runbooks live in one engineer's head, the agent's answers will be confident and vague. Fixing the logging and writing the runbooks costs less, and it makes any later agent better.
Budget honestly. Coding assistants are bought per seat, and GitHub publishes a per-seat list price for Copilot Business. An operations agent connected to your own systems has no equivalent line item. Its cost is the integration work, the model usage per incident, and the evaluation set someone has to keep current.
Questions people ask
Is a DevOps AI agent the same as AIOps?
Not quite. AIOps usually means statistical or machine learning models applied to monitoring data, for jobs like anomaly detection and alert correlation. A DevOps agent adds a language model that can read unstructured text, such as logs and tickets, and decide which tool to call next. The two fit together: an agent can treat an AIOps anomaly as one input among several when it assembles context for an incident.
Can an AI agent resolve production incidents on its own?
It can call the APIs, so technically yes. Whether it should is a separate question. For most teams the sensible design is propose and approve: the agent gathers context, suggests a cause and drafts the fix, and a person approves anything that changes production. Start with read-only diagnostics. Let actions run unattended only when they are reversible and well understood.
What access does a DevOps agent need?
It needs read access to whatever an on-call engineer would open first: logs, metrics, recent deploys, CI results and the ticket or incident record. Write access is usually limited to its own outputs, such as a comment or a summary. Give it a dedicated service identity rather than a person's token. That way its actions can be traced to it, and its permissions can be narrowed without affecting anyone else.
Should we buy a DevOps agent or build one?
Buy when the task is generic and your stack is mainstream, because a vendor that already integrates with your tools will get you there faster. Build when the value depends on your own runbooks, internal services or unusual infrastructure that no product understands. Either way, the controls are yours. Permissions, approvals, logging and evaluation do not arrive configured for your environment.
How do we start without risking production?
Pick one read-only task, such as summarising alerts for the on-call engineer, and run the agent in shadow mode alongside the existing process. Compare its output with what the engineer actually found. Once it is reliably useful, let its output go to the incident channel. Only then consider letting it take actions, starting with reversible ones and keeping an approval step in place.
Will DevOps agents replace on-call engineers?
Not on current evidence. A 2026 Stack Overflow pulse survey describes agentic AI at work as mostly single-agent and monitored by a person. For now, the realistic role is a first responder that gathers the context and leaves the decision to someone accountable for it. That still matters. The first minutes of an incident are often the most tedious, and handing them over frees the engineer to think.
Related on this site
Sources
- The results of the 2026 Developer Survey are here!, Stack Overflow's annual online Developer Survey, open for seven weeks, with more than 30,000 respondents · Stack Overflow, data from 2026
- Agents on a leash: Agentic AI remains mostly single-agent and monitored at work, Stack Overflow pulse survey of 1,100 developers and working professionals, fielded from late April 2026 · Stack Overflow, data from 2026
- GitLab Survey Reveals the "AI Paradox," Faster Coding Creates New Bottlenecks Requiring Platform Solutions, Survey of 3,266 DevSecOps professionals across IT operations, IT security and software development, conducted for GitLab by The Harris Poll · GitLab, data from 2025
- PagerDuty Report Finds More Than Half of Companies Have Deployed AI Agents, Vendor-run survey of 1,000 IT and business executives across the U.S., U.K., Australia and Japan · PagerDuty, data from 2025
- How are developers using AI? Inside our 2025 DORA report, Global survey of nearly 5,000 technology professionals for the 2025 DORA State of AI-assisted Software Development report · Google Cloud (DORA research program), data from 2025
- Plans for GitHub Copilot - GitHub Docs, Vendor's published list price for the Copilot Business plan · GitHub, data from 2026
- We are Changing our Developer Productivity Experiment Design, Follow-up randomized controlled trial in which experienced open-source developers did real issues with and without AI tools; METR says the estimate is biased because more developers refused to work without AI · METR, data from 2025-2026