llmops
LLMOps for AI Agents: How to Run Agents Reliably in Production
57% of teams surveyed by LangChain now have AI agents in production, and quality is the biggest thing holding them back: 32% cite it as a top barrier, according to the State of Agent Engineering report, based on more than 1,300 practitioners. The research backs that worry up. On the τ-bench benchmark, even a strong function-calling model like gpt-4o completed fewer than half of realistic customer-service tasks, and when the same task was run eight times, it succeeded on all eight attempts less than 25% of the time.
LLMOps is the set of practices that keeps applications built on large language models reliable after launch: versioning what changes their behaviour, releasing changes safely, supervising what they do, controlling cost, and responding when something goes wrong.
Most LLMOps guides were written for chatbots and RAG apps, where the job is managing prompts and models. Agents break that frame. They call tools, update records and spend money on their own, many steps in a row. This guide gives you a five-stage operating loop built for that reality, with a risk tiering table, an incident runbook and a checklist you can use this week.
In a hurry? The short version: reliability lives in the operations layer, not in the framework. Run your first agent (we call them coworkers) with live logs and approvals, free for 5 days.
Key takeaways
- Agents fail quietly. A broken script throws an error. A broken agent keeps going, confidently.
- Reliability is measured across repeated runs, not one lucky demo. Track pass^k, not pass@1.
- LLMOps for agents is a loop: Version, Release, Supervise, Budget, Respond. Every incident feeds the next version.
- Approvals are a policy, not a feeling. Tier actions by risk and put a human in front of the irreversible ones.
- LLMOps for agents is AgentOps. The unit you operate is a worker that acts, not a model that answers.
- Your framework does not do this for you. LangGraph, CrewAI or raw API calls all need the same operations layer around them.
What is LLMOps?
Stanford HAI describes LLMOps as the practices and tooling used to manage the lifecycle of large language model applications, from development to deployment and monitoring. It grew out of MLOps, the discipline that turned machine learning models from notebooks into production systems.
The difference is in what you manage. In MLOps you train a model, measure its accuracy on a labelled test set and redeploy when the data drifts. In LLMOps you rarely train anything. Most teams use a hosted model and shape its behaviour with prompts, retrieved context and tools. In a separate finding, LangChain's survey shows that 57% of organisations are not fine-tuning at all, so "LLMOps is only for teams that train models" is a myth worth dropping early.
LLMOps vs MLOps
| Dimension | MLOps | LLMOps |
|---|---|---|
| What you change | Training data, model weights | Prompts, context, tools, model choice |
| How you measure quality | Accuracy on a labelled test set | Judged quality, task success, consistency across runs |
| Typical failure | Data drift, slow accuracy decay | Confident wrong answers, prompt regressions, tool misuse |
| Cost profile | Training spikes, cheap inference | No training, inference cost on every single call |
| Release unit | A model artifact | A bundle of prompt, model, tools and config |
From LLMOps to AgentOps
Classic LLMOps assumes one input and one output. An agent takes a goal and decides its own path: it plans, calls a tool, reads the result, calls another tool, and keeps going. That changes four things at once:
- Paths are not known in advance. You cannot review a flow you have never seen.
- Actions have side effects. A wrong answer is embarrassing. A wrong refund is expensive.
- Errors compound. One bad step early in a long task poisons everything after it.
- Cost keeps running. A looping agent spends tokens until something stops it.
That is why the industry is starting to say AgentOps or agent ops. MLflow frames its LLMOps material the same way, with agents as the hard case. In this article, LLMOps means LLMOps for agents.
A broken Zap stops. A broken agent continues, confidently.
Why AI agents fail in production
Agents rarely crash. They drift, loop, or do slightly the wrong thing with total conviction. The failure modes worth planning for:
- Silent failure. The run finishes, the status is green, the output is wrong. No exception, no alert.
- Non-determinism. The same input produces different paths. τ-bench introduced pass^k, the probability an agent succeeds on all k attempts, precisely because single-run success hides this.
- Long-task decay. METR's research shows the length of tasks models can complete is doubling roughly every seven months, but reliability still drops sharply as tasks get longer.
- Excessive agency. OWASP lists Excessive Agency (LLM06) in its Top 10 for LLM applications: agents holding more permissions, functions or autonomy than the job needs.
- Runaway loops and spend. An agent retrying a failing tool call can burn a day's budget in minutes.
The LLMOps lifecycle for agents: a 5-stage loop
Here is the loop. It wraps any framework and any model, and it never really ends: stage five feeds stage one.
1. Version everything that changes behaviour
An agent's behaviour comes from more than its prompt. If any of these change, you have a new agent, whether you meant to ship one or not:
- the system prompt and instructions
- the tools it can call, and the permissions on each one
- the model and its exact version
- memory, knowledge sources and retrieval settings
- config such as temperature, step limits and timeouts
Treat the whole bundle as one versioned artifact and tag every run with that version ID. When a customer complains on Tuesday, you need to know which agent they talked to, not which prompt file was in the repo that morning.
agent: invoice-chaser
version: 2026-10-17.3
model: claude-sonnet-4-5-20250929
prompt: prompts/invoice-chaser@a41f9c
tools:
stripe.read_invoices: allow
gmail.send_email: require_approval
stripe.refund: deny
limits:
max_steps: 25
max_cost_per_run_usd: 0.80
owner: finance-ops
2. Release in stages: shadow, canary, full rollout
Never swap an agent version for everyone at once. Borrow the playbook software teams have used for years with feature toggles:
- Shadow. The new version runs on real inputs but its actions are not executed. Compare its decisions with the current version.
- Canary. Route 5 to 10% of real work to the new version, with tighter limits and more approvals.
- Full rollout. Promote only when task success, cost per task and intervention rate hold steady.
- Rollback. Write the rollback criteria before you release, not during the incident.
3. Supervise: decide what needs a human
Supervision is where agents and chatbots part ways. A chatbot's worst case is a bad sentence. An agent's worst case is a bad action. So the core LLMOps decision is a policy: which actions run alone, which get logged, and which wait for a person.
| Action type | Example | Default policy |
|---|---|---|
| Read-only | Search the CRM, read an inbox | Run automatically |
| Reversible write | Add a label, draft a reply, update a field | Run automatically, log every change |
| External communication | Send an email to a customer | Human approval until trust is earned |
| Money movement | Issue a refund, pay an invoice | Always human approval |
| Destructive or irreversible | Delete records, change permissions | Deny by default, approval with a named owner |
4. Budget: put guardrails on tokens, cost and loops
Google's SRE teams manage reliability with error budgets: an agreed amount of failure a service may spend before releases slow down. Agents need the same idea for three resources:
- Steps. A hard cap per run, so a confused agent stops instead of looping.
- Cost. Per-run and per-day ceilings, with an alert well before the ceiling.
- Failure. An agreed error budget per agent. Burn through it and the agent moves back to canary with more approvals.
5. Respond: incidents, rollback and the feedback loop
Something will go wrong. The teams that recover fast decided what to do before it happened. A minimal agent incident runbook:
- Detect. An alert fires on cost, error rate, an unusual tool call or a user report.
- Pause. One click stops the agent. No new runs, pending actions held.
- Scope. Pull the runs of the affected version and list every external action they took.
- Roll back. Restore the last good version from stage 1.
- Repair. Undo or compensate the side effects, with a human signing off.
- Learn. Add the failing case to your regression set and write a blameless review.
LLMOps tools and stack for agents
LLMOps tooling sorts into four layers. They are complementary, and most production teams end up with something in each:
| Layer | Job | Examples of the category |
|---|---|---|
| Build | Define the agent's logic and tools | LangGraph, CrewAI, OpenAI Agents SDK, plain API calls |
| Measure | Traces, evals, quality scoring | Tracing and eval platforms, LLM-as-judge |
| Route | Pick models, retry, fail over, cache | LLM gateways |
| Operate | Run, supervise, approve, budget, stop | An operations layer around the running agents |
Where Rerun fits, and where it does not
Rerun is one example of that operations layer. On Rerun, agents are called coworkers. Each workspace gets its own private, always-on machine, every action a coworker takes shows up live with its tokens and cost, and sensitive steps wait for a human approval from the app or Slack before they run. It runs on Claude, ChatGPT, Gemini and more, either hosted by Rerun or on your own subscription or API key.
LLMOps checklist for production agents
Copy this list into your next release review. If you cannot tick an item, that is your next piece of work.
- Every run is tagged with an agent version ID
- Prompt, tools, permissions, model and config are versioned as one bundle
- New versions go through shadow or canary before full rollout
- Rollback criteria are written down before release
- Every tool call is visible, with inputs and outputs
- Actions are tiered by risk, and irreversible ones need approval
- Each agent has a step cap and a cost ceiling per run and per day
- Alerts fire before a budget is exhausted, not after
- There is a one-click way to pause an agent
- A written runbook exists and someone owns it
- Every incident adds a case to the regression set
- Reliability is tracked across repeated runs (pass^k), not single successes