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

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:

  1. Paths are not known in advance. You cannot review a flow you have never seen.
  2. Actions have side effects. A wrong answer is embarrassing. A wrong refund is expensive.
  3. Errors compound. One bad step early in a long task poisons everything after it.
  4. 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:

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:

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:

  1. Shadow. The new version runs on real inputs but its actions are not executed. Compare its decisions with the current version.
  2. Canary. Route 5 to 10% of real work to the new version, with tighter limits and more approvals.
  3. Full rollout. Promote only when task success, cost per task and intervention rate hold steady.
  4. 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:

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:

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.