---
canonical: https://sincllm.com/blog/ai-agents-software-maintenance-after-launch
kind: agent-digest (verbatim extract of the canonical article; the article is authoritative)
author: Mario Alexandre
updated: 2026-12-06
---

# The Biggest Opportunity for AI Agents Starts After Launch

AI agents matter most after launch because most software work is recurring maintenance, not new code. Agents can draft dependency fixes, repair failing tests, triage alerts, and cut toil. Start with tasks that are reversible and easy to verify with tests. Keep production changes, data deletion, and incident decisions behind human approval and hard permission limits.

The biggest payoff from AI agents comes after launch. They can take over the recurring work that keeps software alive, like dependency updates, small fixes, and toil. The key is to match each task to the right level of autonomy and keep risky actions behind human approval.

## Launch is where the recurring work begins
Software maintenance is the modification of software after delivery. That definition comes from the [Wikipedia entry on software maintenance](https://en.wikipedia.org/wiki/Software_maintenance). It is the work that starts the day you ship and never stops.

### Who does the work matters more than how fast it gets done
Most talk about AI in software is about speed. How many lines per hour. How fast a feature ships. That framing misses where the hours go after launch.

## Toil is the clearest target for AI agents
Toil is the best first target for a maintenance agent. Google SRE defines it as manual, repetitive, automatable work with no lasting value, and that is the kind of work agents can take on with the least risk.

- **Manual.** A person runs it by hand.
- **Repetitive.** You have done it before, and you will do it again.
- **Automatable.** Per the SRE book, "If a machine could accomplish the task just as well as a human, or the need for the task could be designed away, that task is toil."
- **Tactical.** It is driven by interrupts, not by a plan.
- **No enduring value.** The book says that if the service "remains in the same state after you have finished a task, the task was probably toil."
- **Scales with size.** If the work grows linearly with traffic, users, or service count, it is probably toil.

### The 50 percent cap shows how heavy toil gets
Google SRE treats toil as something to cap, not just reduce. According to the toil chapter, at least 50% of each SRE's time should go to engineering project work. The [chapter on being on-call](https://sre.google/sre-book/being-on-call/) says the same from the other side: SREs spend at most 50% of their time on operational work.

### Measure toil before you hand it to an agent
The [Google SRE workbook on toil](https://sre.google/workbook/eliminating-toil/) asks teams to "adopt a data-driven approach to identify and compare sources of toil" and to "quantify the time saved." You cannot judge an agent if you never measured the work it replaced.

## Dependency bots already do part of this work
Dependabot and Renovate already automate one slice of maintenance: they open pull requests that bump dependency versions. AI agents do not replace them. Agents pick up where the bots stop, when a version bump breaks the build and someone has to fix the code.

### What Dependabot does
[GitHub's docs on Dependabot version updates](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/about-dependabot-version-updates) describe them as "automated pull requests that keep your dependencies updated," even when there is no known vulnerability. You turn them on "by checking a dependabot.yml configuration file into your repository."

### What Renovate does
The [Renovate docs](https://docs.renovatebot.com/) describe a similar tool with more knobs. It opens "pull requests to update your dependencies and lock files." It lets you "reduce noise by scheduling when Renovate creates PRs." It can also open "replacement PRs to migrate from a deprecated dependency to the community suggested replacement."

### Where the bots stop and agents can start
Here is the gap. A bot can tell you a new major version exists. It cannot rename the call sites that changed. It cannot read a failing test, trace it to a removed option, and patch your code. It cannot write a clear note on why the change is safe.

| Task | Rule-based bot (Dependabot, Renovate) | AI agent | Human |
|---|---|---|---|
| Detect a new version | Yes | Not needed | Not needed |
| Open a version bump PR | Yes | Not needed | Not needed |
| Group and schedule updates | Yes, by config | Not needed | Sets the policy |
| Fix code broken by an API change | No | Yes, in a branch | Reviews the diff |
| Summarize release notes for risk | No | Yes, as a draft | Checks the summary |
| Decide to merge a major upgrade | No | Recommends | Decides |
| Pin or reject a suspect release | By rule only | Flags it | Decides |

## Workflows and agents are different tools
An AI workflow runs a model through fixed steps you wrote. An AI agent lets the model choose its own steps and tools. For maintenance, most tasks need a workflow, and only a few need a full agent.

### Five workflow patterns mapped to maintenance jobs
The Anthropic guide names five workflow patterns. Each one has a natural home in maintenance work.

### When a full agent is worth it
The guide says agents suit "open-ended problems where it's difficult or impossible to predict the required number of steps, and where you can't hardcode a fixed path." Debugging a failure you have never seen is like that. So is fixing a build after a major upgrade.

### Why coding work suits agents
The guide gives specific reasons coding is a good fit. "Code solutions are verifiable through automated tests," and agents "can iterate on solutions using test results as feedback." Maintenance work inherits that strength. A fix for a broken build has a clear pass or fail signal.

## What SWE-bench and SWE-agent actually measure
SWE-bench measures whether a model can write a patch that makes a real GitHub issue's tests pass. SWE-agent measures how much a better tool interface helps an agent do that. Neither one measures deploys, rollbacks, or the call about when not to act.

### How SWE-bench works
[SWE-bench](https://arxiv.org/abs/2310.06770) is a benchmark from a paper published at ICLR 2024. It holds 2,294 problems "drawn from real GitHub issues and corresponding pull requests across 12 popular Python repositories."

### How SWE-agent changed the setup
[SWE-agent](https://arxiv.org/abs/2405.15793) asked a different question. What if the model gets tools built for it? The authors "posit that LM agents represent a new category of end users with their own needs and abilities." They argue such agents "would benefit from specially-built interfaces to the software they use."

### What the benchmarks leave out
A benchmark score is a useful signal. It is not a job description. Here is what SWE-bench style tests do not cover:

- **Deploy and rollback.** The task ends at a passing test, not at a safe release.
- **Production state.** No live data, live traffic, or live users are at risk.
- **Missing tests.** Real repos often lack a test for the bug. The benchmark always has one.
- **Ambiguous issues.** Real reports can be vague, wrong, or duplicates.
- **When not to act.** No task rewards the agent for saying "this should wait."
- **Supply chain trust.** No task asks if a new release is safe to accept at all.

## Match each maintenance task to an agent by risk
The safe way to give work to agents is to sort tasks by risk first. Rate each task on how easy it is to undo, how much it can break, and how well you can check it. Then give the agent only as much freedom as that rating allows.

### Three questions that set the risk tier
Ask three questions about any task before an agent touches it.

1. **Can you undo it?** A branch can be deleted. A merged commit can be reverted. A dropped table may be gone for good.
2. **How far can it reach?** A doc fix touches one file. A config push can touch every user.
3. **Can a machine check it?** A test suite gives a clear signal. A judgment about customer impact does not.

### A decision table for maintenance tasks
Tier 0 work has no side effects. Tier 1 work ends in a pull request. Tier 2 work needs a human to approve each step. Tier 3 work stays with a human.

| Task | Undo | Reach | Check | Tier | Agent role |
|---|---|---|---|---|---|
| Summarize release notes | Easy | None | Human read | 0 | Acts alone, output is a note |
| Fix a failing test in a branch | Easy | One repo | Tests | 1 | Opens a PR, human merges |
| Fix build after a minor bump | Easy | One repo | Tests | 1 | Opens a PR, human merges |
| Triage a new alert | Easy | None | Human read | 1 | Writes findings, no actions |
| Major framework upgrade | Medium | Many files | Tests, partial | 2 | Drafts in stages, human reviews each |
| Restart a stuck worker | Easy | One service | Health check | 2 | Runs a named runbook step after approval |
| Change prod config or flags | Medium | All users | Weak | 3 | Proposes only |
| Rotate secrets or keys | Hard | All users | Weak | 3 | Proposes only |
| Delete data or drop tables | None | All users | None | 3 | Never |
| Decide during an incident | Varies | All users | None | 3 | Gathers facts for the commander |

### Use the error budget as a brake
Google SRE gives a ready tool for this. The [chapter on embracing risk](https://sre.google/sre-book/embracing-risk/) describes the error budget as "a clear, objective metric that determines how unreliable the service is allowed to be within a single quarter." While budget remains, "new releases can be pushed."

### Consistency is a strong reason to automate
The [Google SRE chapter on automation](https://sre.google/sre-book/automation-at-google/) makes a point that is easy to miss. For "the execution of well-scoped, known procedures," the value of consistency is often the main reason to automate. Humans skip steps when tired. Scripts do not.

## Illustrative arithmetic: what an agent can free up
This section is illustrative arithmetic, not a measurement. It shows how to size the gain from a maintenance agent, using inputs you would replace with your own logged hours. The main lesson is that review time decides whether the agent saves anything.

### The inputs
Suppose a small team logs its maintenance work for four weeks. In this example, the weekly totals look like this:

### The agent scenario
Now suppose an agent drafts a fix for each dependency PR, each failing test, and each small bug. It also writes a triage note for each alert. A human still reviews every output.

| Task | Items | Review time | Rework items | Rework time | New total |
|---|---|---|---|---|---|
| Dependency PRs | 6 | 60 min | 1.5 | 45 min | 105 min |
| Failing tests | 4 | 40 min | 1 | 45 min | 85 min |
| Alert triage | 10 | 100 min | 2.5 | 37.5 min | 137.5 min |
| Small bug fixes | 3 | 30 min | 0.75 | 45 min | 75 min |
| **Total** | 23 | 230 min | | 172.5 min | 402.5 min |

### What the numbers teach
Look at alert triage. It saves the least. Ten short tasks each need a full review, so the review cost eats most of the gain. An agent helps most on long tasks with fast checks.

## Agents acting on production carry specific risks
An agent that can act on production can do damage fast when its output is wrong, unclear, or manipulated. OWASP calls this excessive agency. The fix is to limit what the agent can do in code, not to ask it to be careful in a prompt.

### Excessive agency, defined
The [OWASP LLM06:2025 entry on Excessive Agency](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/) defines it as "the vulnerability that enables damaging actions to be performed in response to unexpected, ambiguous or manipulated outputs from an LLM." Note the last part. It does not matter why the model went wrong. What matters is what it was allowed to do.

- **Excessive functionality.** The agent has a shell when it only needed to run tests.
- **Excessive permissions.** The agent's token can push to main, not just open a branch.
- **Excessive autonomy.** The agent merges and deploys with no human gate.

### Automation can fail at machine speed
Automation failures are not new, and they are not unique to LLMs. The Google SRE chapter on automation tells the story of Diskerase. A decommission job failed partway, then was restarted. On the second run, the set of machines left to wipe was empty. "Unfortunately, the empty set was used as a special value, interpreted to mean 'everything.'" The automation sent almost every machine in every site to be wiped.

### Untrusted text is an attack path
Maintenance agents read a lot of text they did not write. Issues, changelogs, commit messages, error logs, and package READMEs all flow in. Any of them can carry an attack.

### Supply chain updates need human judgment
Dependency updates look like the safest agent task. Most of the time they are. But an update can also carry an attack.

### Incidents need one set of hands
The [Google SRE chapter on managing incidents](https://sre.google/sre-book/managing-incidents/) is direct. "The operations team should be the only group modifying the system during an incident." An agent that keeps fixing things on its own during an outage is a second team. It can undo the fixes the humans are trying.

### People trust machines too much
The last risk is on the human side. [EU AI Act Article 14](https://artificialintelligenceact.eu/article/14/) asks people overseeing high-risk AI systems "to remain aware of the possible tendency of automatically relying or over-relying on the output produced by a high-risk AI" system. It names this automation bias.

## Controls that keep a maintenance agent safe
A safe maintenance agent runs with the least access it needs, in a sandbox, with checks enforced outside the model and a human gate on high-impact steps. These controls come straight from OWASP LLM06 and from how coding agent tools ship today.

### Enforce limits outside the model
OWASP's mitigation list is the core of this section. Four items do most of the work.

- **Least privilege.** "Limit the permissions that LLM extensions are granted to other systems to the minimum necessary." Give the agent a token that can open branches and PRs, not one that can push to main.
- **Complete mediation.** "Implement authorization in downstream systems rather than relying on an LLM to decide if an action is allowed or not." Branch protection in your git host is mediation. A rule in the prompt is not.
- **Human approval.** "Utilise human-in-the-loop control to require a human to approve high-impact actions before they are taken."
- **Rate limits and logs.** OWASP advises you to log and monitor agent actions and to "implement rate-limiting to reduce the number of undesirable actions that can take place within a given time period."

### Start read-only and sandboxed
The Claude Code docs show the pattern a coding agent tool can use. It "starts with read-only permissions. When it needs to edit files, run tests, or execute commands, it asks you first." It also offers a sandboxed Bash tool that can "sandbox Bash commands with filesystem and network isolation."

### Wire the agent to alerts as a subscriber, not an operator
The safe way to connect an agent to monitoring is one way in and one way out. Alerts flow to the agent. Findings flow back as text. Nothing else crosses the line at first.

1. **Fan out, do not reroute.** Send each alert to your human channel first, then copy it to the agent with a webhook. The agent is an extra reader. If it fails, people still get paged.
2. **Send a fixed payload.** Pass the alert name, severity, start time, affected service, and a link to the dashboard. Keep the format the same every time so the agent's output can be compared across incidents.
3. **Give read-only query access.** Let the agent read metrics, recent logs, and the deploy history through scoped tokens. Do not give it write access to the monitoring system, so it cannot silence or edit alerts.
4. **Treat alert text as untrusted.** Log lines and error messages can carry text an attacker controls. The agent should summarize them, not follow instructions inside them.
5. **Post findings to the incident thread.** The output is a short note: likely cause, evidence links, the runbook that fits, and what the agent is unsure about. A human decides what to do.
6. **Score it after each incident.** In the postmortem, mark whether the agent's first guess was right and whether it saved time. Only promote it to taking actions after a run of correct, useful notes.
7. **Rate limit it.** Cap how many alerts it handles per hour. An alert storm should not become an agent storm that floods the thread.

### Build a stop button
Article 14 describes a way to "interrupt the system through a 'stop' button or a similar procedure that allows the system to come to a halt in a safe state." Every maintenance agent needs one.

### Record what the agent did and why
Each agent run should leave a trail. Record the task, the inputs it read, the tools it called, the diff it made, the tests it ran, and who approved what. The page on [what an AI agent audit trail must record](/blog/what-ai-agent-audit-trail-must-record) lists the fields.

## A step-by-step rollout for your first maintenance agent
Roll out a maintenance agent one task type at a time. Measure the work first, run the agent in shadow mode, then let it open pull requests, and only widen its scope when the numbers say it helps. Each step below has a clear exit test.

1. **Log the work for two to four weeks.** Record each recurring task, its type, and the minutes it took. This is the SRE workbook's data-driven step. Without it you cannot tell gain from noise.
2. **Cut what should not exist.** Go down the list and ask if each task can be rejected or designed away. The workbook says rejecting toil should be the first option. Some tasks will vanish.
3. **Script the known procedures.** If a task is a fixed sequence, write a plain script or a workflow. Keep agents for the open-ended part.
4. **Pick one tier 1 task type.** A good first choice is "fix the build after a dependency bump." It has a clear test signal and ends in a pull request.
5. **Set up the sandbox and token.** Run the agent in CI or a container. Give it a token that can open branches and PRs only. Keep production secrets out of its reach.
6. **Add hard stops.** Set a cap on steps per run and on PRs per hour. Wire a stop flag that disables the job. Press it once to prove it works.
7. **Run in shadow mode for two weeks.** The agent drafts fixes but does not open PRs. A human does the task as usual, then compares. Count how often the draft would have been right.
8. **Turn on pull requests.** Let the agent open PRs with a clear label. Require a human review on every one. Track merges without edits, rework, and reverts.
9. **Compare against your baseline.** Use the arithmetic method above with your real review time and rework rate. If the saved time is near zero, stop and fix the task choice or the tools.
10. **Widen one step at a time.** Add the next task type only when the first is clearly net positive. Never skip from tier 1 to tier 3.

### Know when the agent should not act
Proposition seven in this series says to delegate execution, not accountability. Part of that is knowing when not to act. Agents do not need to change software all the time to keep it alive.

## Failure modes and how to detect them
Maintenance agents fail in a small set of repeatable ways. Most can be caught with simple counters on the pull requests and runs the agent produces. The table lists each failure, how it shows up, and the signal to watch.

| Failure mode | What it looks like | How to detect it |
|---|---|---|
| Test gaming | Agent edits or skips a test to make the build pass | Flag any diff that changes test files in a fix PR |
| Scope creep | A small fix turns into a large refactor | Alert when diff size passes a set line count |
| Silent rework | PRs merge, but humans edit them heavily first | Track the share of agent PRs edited before merge |
| Revert spike | Merged agent changes get rolled back | Count reverts per task type each week |
| Loop burn | Agent retries the same failing step many times | Cap steps per run and log runs that hit the cap |
| Review fatigue | Review time per PR drops to near zero | Track review time and sample PRs for a second check |
| Injected intent | Agent acts on text from an issue or log | Diff agent actions against the task it was given |
| Stale baseline | Saved time is claimed but never measured | Recompute the arithmetic each month from logs |

## Checklist and what to do this week
A maintenance agent is ready to widen its scope only when every item below is true. If you do one thing this week, log your recurring work for five days so you have a baseline to judge any agent against.

### Readiness checklist
- [ ] You logged recurring work by task type for at least two weeks.
- [ ] You cut or redesigned tasks that should not exist.
- [ ] Fixed procedures run as scripts or workflows, not agents.
- [ ] The agent runs in a sandbox with no production secrets.
- [ ] Its token can open branches and PRs, but cannot push to main.
- [ ] Branch protection enforces review in your git host, outside the model.
- [ ] Steps per run and PRs per hour are capped.
- [ ] A stop flag exists, and someone has pressed it in a test.
- [ ] Every run leaves a trail: inputs, tools, diff, tests, approvals.
- [ ] Fix PRs cannot change test files without separate review.
- [ ] Core dependency major versions need a human merge.
- [ ] During incidents, the agent only gathers facts for the commander.
- [ ] You track merges without edits, rework, reverts, and review time.
- [ ] The agent can end a run with "no action" and a reason.

### This week
Pick one person. Give them a simple sheet. For five working days, they log every task that kept the product alive: updates, broken tests, alerts, small fixes. Note the type and the minutes.

## FAQ
Q: Why do AI agents matter more after launch than before?
A: Software maintenance is the change you make after delivery, and it never stops. Lehman's law of Continuing Change says a system must keep adapting or it gets less useful. That work is recurring, so it repeats every week. AI agents change who does that recurring work. Writing new code faster helps once. Taking over a weekly task helps every week for the life of the product.
Q: What maintenance tasks are safe to give an AI agent first?
A: Start with tasks that are reversible, easy to check, and done in a branch. Good first tasks are dependency update fixes, failing test repair, changelog summaries, and alert triage notes. Each one ends in a pull request or a written report that a human reviews. Avoid tasks that change production state, delete data, rotate secrets, or touch billing until your controls are proven.
Q: What does SWE-bench measure?
A: SWE-bench gives a model a real codebase and a real GitHub issue. The model must write a patch. The patch counts as resolved if it applies and the related unit and system tests pass. The benchmark has 2,294 problems from 12 Python repositories. It measures patch quality against tests. It does not measure deploys, rollbacks, on-call work, or judgment about when not to act.
Q: How is an AI agent different from Dependabot or Renovate?
A: Dependabot and Renovate are rule-based bots. They open pull requests to bump dependency versions on a schedule you set. They do not read a failing build and fix your code to match a new API. An AI agent can pick up where the bot stops. It can read the error, edit the code, run the tests, and explain the change in the pull request.
Q: What is excessive agency in AI agents?
A: Excessive agency is the OWASP LLM06 risk. It means an LLM system can take damaging actions when its output is wrong, unclear, or manipulated. OWASP lists three root causes: too much functionality, too many permissions, and too much autonomy. For a maintenance agent, the fix is narrow tools, least privilege, human approval for high-impact actions, and checks enforced outside the model.
Q: Should an AI agent ever act on production directly?
A: Rarely, and only for narrow, reversible actions with a tested rollback. Most maintenance agents should work in a branch or a sandbox and hand changes to the normal deploy path. Google SRE guidance says only the operations team should modify a system during an incident. Treat the agent as a helper to that team, not a second team acting on its own.
Q: How do I measure whether a maintenance agent is helping?
A: Measure toil before you start, as the Google SRE workbook advises. Log hours per task type for two to four weeks. Then track, per task type, how many agent pull requests merge without edits, how many need rework, and how many get reverted. Count the review time too. If review time eats the saved time, the agent is not helping yet.