Use AI in DevOps to read and draft, and keep people on every change to production. Let it summarize logs and alerts, suggest alert groups, explain failed pipeline jobs, and write first drafts of infrastructure code, runbooks and postmortems. Your team keeps production changes and rollbacks, incident command, security and access settings, and decisions to silence alerts.
Pilot the split for 30 days on one service or one on-call rotation. Give the AI read-only access, and remove secrets and personal data from logs before they reach a prompt. Before you give the AI more access, compare four numbers with your baseline: time to the first useful hypothesis, alerts per on-call shift, change failure rate and the share of AI suggestions your team accepted.
Where AI in DevOps helps today and where it fails
Have AI read, group, summarize and draft, and start where your engineers know the system least. Engineers interviewed for the ARGUS study, from Chalmers University of Technology and the University of Gothenburg, estimated that a read-only Kubernetes assistant saved 20 to 30 minutes on unfamiliar NATS scenarios. On routine Kubernetes ones, they put the saving at two to five minutes.
Plan for three failures:
- A confident but wrong root cause. In ORCA-bench, a set of 1,079 on-call tasks from an arXiv paper, the best of five frontier agents reached 25.3% root-cause accuracy on medium tasks and 10.0% on hard ones. The weakest model invented an implausible cause in 40% of incident reports. Treat any cause the AI names as a guess to test.
- Made-up names. Check arguments, API versions and flags against the docs for your version. In an arXiv study of 458 Terraform tasks, 62.9% of the scripts GPT-4o wrote failed technical validation, and 309 of 326 unsupported-argument errors came from arguments the model had invented.
- Missing context. In one real incident, the ARGUS assistant saw a failed image pull but not that an ECR lifecycle policy had deleted the image. It had no connection to AWS, and its brief did not show the gap. Attach runbooks, past incidents and code to each request, and have the AI list what it could not read.
The split: what AI drafts and what people decide
Plan AI for DevOps one task at a time. Let AI draft anything an engineer can check before it takes effect, and have a named person decide on work that changes production, access or who gets paged.
| Work | AI's part | Who decides |
|---|---|---|
| Logs and alerts | Summary with source lines | On-call engineer |
| Alert groups | Suggested groups and duplicates | Service owner, including what to silence |
| Failed pipeline jobs | Likely cause | Engineer who made the change |
| Terraform, Kubernetes and Helm files | First draft | Reviewer, after the plan and diff |
| Runbooks | Draft from incident notes | On-call engineer, after a drill |
| Postmortems | Draft timeline | Service owner, for causes and next steps |
| Incident command and rollbacks | Summary of events so far | Incident commander |
| Security and access settings | None | Service owner |
In the Grafana Labs Executive Survey 2026, done with ETR, 84% of 300 IT and engineering decision-makers were comfortable with AI recommending a fix and 56% with AI making code or config changes. Put your own limit between those two tasks.
| Read-only investigation | 85% |
|---|---|
| Recommending a fix | 84% |
| Code or config changes | 56% |
| Full autonomous remediations | 52% |
| Deploying to production | 50% |
First steps: one rotation, read-only access and masked logs
Keep your first DevOps AI pilot small enough that one person can read every suggestion.
- Pick one service or rotation. Choose one whose owner will run the pilot. DORA says its metrics are best suited for measuring one application or service at a time.
- Record a baseline. Collect the four numbers for the past 30 days.
- Enforce read-only access. Give AI DevOps tools their own account. The ARGUS server ran under a dedicated service account bound to a read-only ClusterRole. Do the same, and leave Secrets out of the role.
- Mask the logs. The OWASP Logging Cheat Sheet lists data you should usually not record directly in logs: access tokens, passwords, database connection strings, encryption keys, session IDs, sensitive personal data and payment card data. Replace each with a placeholder before a log reaches a prompt, as Datadog's engineers did with suspected secrets. Mask names, emails, phone numbers and internal addresses too.
- Check the vendor. OWASP advises regulatory and security checks before you send event data to third parties. Do not let text inside a log trigger an action.
- Post suggestions with sources. Put AI output in the incident channel or merge request, with a source on each evidence line, as ARGUS did. Leave out confidence labels. Two ARGUS participants found them useful, and three ignored them under stress or saw them as harmful.
What to check before anyone acts
Root-cause guesses
Name the metric that should have moved if the guess is right, and check it first. In AI incident response, check the fix harder than the diagnosis. All six engineers interviewed for ARGUS singled out the recommended fixes as the part they questioned. Confirm the target of each command too, because one suggested command looked in ECR for an image from Docker Hub.
Infrastructure changes
Send every AI draft through plan and diff review, policy checks and normal approval. In the Terraform study, 46 of the 170 GPT-4o scripts that passed technical validation did not do what the task asked, and the authors caught them with Open Policy Agent checks. Return failed checks to the AI before a person reviews the diff.
Rules that silence alerts
Replay each rule on past alerts to see that it hides no critical one, then have the service owner approve it. In the AlertGuardian study at a large internet company, SREs accepted 375 of the 1,174 alert rules the AI had reworked, or 32%. Start with duplicates. Across four datasets, acceptance ran from 80.0 to 83.3% for removing them and from 7.5 to 14.0% for time-based conditions.
| Removing duplicates | 80% |
|---|---|
| Merging rules | 28% |
| Changing thresholds | 23.3% |
| Time-based conditions | 7.5% |
Runbooks and postmortems
Try each AI-drafted runbook in a drill and mark the steps that fail. In It's a Plan, you can keep the runbook in Docs, in the same project as the issues, and select a failed step to turn it into an issue.
Compare postmortem drafts with the final timeline. Datadog's engineers found that LLM drafts recalled exact events well but sometimes leaned too much on outdated statements in Slack. Ask for a source beside each claim, and have people write the system context and next steps.
The numbers to compare before and after
| Number | How to count it |
|---|---|
| Time to the first useful hypothesis | Minutes from the page to the first guess the metrics support |
| Alerts per on-call shift | Alerts that reached the on-call engineer, divided by shifts |
| Change failure rate | Deployments that needed immediate intervention, divided by all deployments |
| AI suggestions accepted | Accepted suggestions, divided by all AI suggestions |
Count change failure rate by DORA's definition of change fail rate. Write the minutes and the accepted suggestions on each incident's record. In It's a Plan, you can put them in custom fields and see those as columns in a saved table view.
When to give AI more access
Judge the AI DevOps pilot after 30 days. Let the AI open merge requests if the time to the first useful hypothesis fell, alerts per shift and change failure rate did not rise, and the accepted suggestions were worth the reading time. Otherwise, stay read-only and fix the cause.
No ARGUS participant proposed full autonomy. They wanted read-only by default and more access only after sustained correct output: whitelisted commands first, then changes that can only restrict access, and approve-before-execute workflows.
Never let AI apply a change to production without a person's approval, and make sure that person sees what will change. DataTalks.Club founder Alexey Grigorev told Rootly how an AI agent ran terraform destroy on the production database. Grigorev had agreed to it without knowing that the state file had become the production one.
Show the approver the environment, the state file and the resource count. Keep permission checks on, and give an agent in development no path to production. Deleting the database also removed the snapshots Grigorev expected to restore, so keep backups that a destroy cannot remove.
Start with your next incident
Write down the timeline and the follow-ups while people still remember them. Log each incident and its follow-ups as issues in It's a Plan, and let an AI agent draft the runbook from the incident notes for the on-call engineer to approve. The agent changes only what you allow, and you can open every step it took.
Key takeaway
Give AI the operations work an engineer can check against logs, metrics, a plan or a diff: log and alert summaries, suggested alert groups, and first drafts of infrastructure code, runbooks and postmortems. People keep production changes and rollbacks, incident command, security and access settings, and decisions to silence alerts. Pilot the split for 30 days on one service or one on-call rotation with read-only access and masked logs, then compare four numbers with your baseline before you give the AI more access.
Frequently asked questions
What can you hand over to AI in DevOps?
Let AI summarize logs and alerts, suggest alert groups, explain failed pipeline jobs, and write first drafts of infrastructure code, runbooks and postmortems. An engineer checks each result before it takes effect.
Which DevOps work should stay with people?
Production changes and rollbacks, incident command, security and access settings, and decisions to silence alerts. The service owner approves any rule that silences alerts, and a person approves every production change.
How do you start a DevOps AI pilot?
Pick one service or one on-call rotation and run the pilot for 30 days. Record a baseline for the past 30 days, give the AI its own read-only account, mask secrets and personal data before a log reaches a prompt, and post AI output with sources in the incident channel or merge request.
When can you give AI more access?
Judge the pilot after 30 days. Let the AI open merge requests if the time to the first useful hypothesis fell, alerts per shift and change failure rate did not rise, and the accepted suggestions were worth the reading time. Never let AI apply a change to production without a person's approval.

Andrii founded It’s a Plan and leads its product and roadmap, from the open-source edition to Pro for teams. He works with the project’s contributors and the teams that run It’s a Plan.
All posts by Andrii Poluosmak