Agents Guide 14 of 25
Agents in production: lessons from Uber, LinkedIn, DoorDash, and Shopify
A demo takes weeks; a dependable agent takes quarters. Candid engineering write-ups from teams that shipped show where that time goes, and which habits separate durable systems from stalled pilots.
Key takeaways
- Production agents are deliberately constrained: most run ten steps or fewer before a human steps in, use off-the-shelf models, and follow structured workflows.
- The last 20% of quality takes most of the effort, and big gains often come from fixing documents, data, and tool outputs rather than prompts.
- Trust an LLM judge only after measuring its agreement with your experts. Keep each judge narrow, ideally a single yes-or-no question.
- Design the failure path first: a cheap check on every response, a costlier check only when flagged, and a short path to a human.
- Once agents act, give each one its own scoped, short-lived credentials and log the full chain from the person who asked to the tool that ran.
On this page 8 sections
Production agents are smaller than the label suggests. In a UC Berkeley–led study of deployed systems, 68% of agents in production or pilot ran at most 10 steps before a human intervened. Of the 20 teams the researchers interviewed in depth, 17 wrote their own orchestration rather than adopt an agent framework.
That gap between the agent of demos and the agent of production is where projects succeed or stall. It is also where the useful knowledge lives, because launch announcements skip it. As of October 2026, enough teams have published candid engineering write-ups that the patterns are clear.
This guide draws on seven of them, from Uber, LinkedIn, DoorDash, and Shopify. It also uses that study, Measuring Agents in Production, which surveyed 306 practitioners, 86 of them running agents in production or pilot, and interviewed 20 deployment teams between April and November 2025. The lessons are consistent, and few of them are about the model.
What do production agents actually look like?
The label agent suggests software that plans freely across dozens of steps. The rest of the Berkeley-led study fills in a more modest picture: 16 of the 20 interviewed teams used structured workflows rather than open-ended planning, and the 17 with custom orchestration called model application programming interfaces (APIs) directly.
Fourteen of the 20 teams prompted off-the-shelf models rather than fine-tuning them. Their top challenge was reliability, which the authors define as consistently correct behavior over time.
The company write-ups match that picture. Uber’s Genie, an on-call assistant in Slack, uses retrieval-augmented generation (RAG): it fetches passages from internal docs and grounds its answer in them. LinkedIn’s assistant routes each question to a specialist agent that calls internal APIs wrapped as skills. Shopify’s Sidekick is the most autonomous, looping through tool calls to work on a merchant’s store.
In production, then, an agent is usually a large language model (LLM) making bounded decisions inside a system engineers control. That is not a lack of ambition. It is how teams get reliability they can defend.
The deployments at a glance
| System | Job | Hardest problem | What worked | Reported result |
|---|---|---|---|---|
| Uber Genie (2024) | Answer on-call questions in Slack | Made-up answers | Answer only from retrieved docs, cite sources, easy escalation | 70,000+ questions, 48.9% helpfulness rate |
| LinkedIn assistant (2024) | Questions about posts and jobs | Last-mile quality, malformed output, latency | Repairing parser, end-to-end streaming | Schema errors from ~10% to ~0.01% |
| DoorDash support chatbots (2024–2026) | Resolve courier and customer issues by chat | Hallucination, policy compliance | Two-tier guardrail, calibrated judges, simulation | Guardrail cut hallucinations 90% and potentially severe compliance issues 99% |
| Shopify Sidekick (2025) | Act on a merchant’s store | Tool sprawl, grading at scale | Just-in-time instructions, calibrated judges | Judge agreement near human level |
None of these numbers is a benchmark; each is one company measuring its own product, at the time of writing.
Why do narrow agents beat ambitious ones?
The first recurring lesson is scope. Shopify’s Sidekick team found that up to about 20 tools stay easy to debug, 20–50 tools blur the boundaries, and beyond 50 there are several ways to do one task. Its system prompt also grew into a pile of special cases and contradictory rules, which slowed the agent and made the prompt almost impossible to maintain.
Shopify’s fix is worth copying. Sidekick returns the relevant instructions together with a tool’s output, at the moment they apply, instead of loading every rule up front. The core prompt stays focused, each rule appears only where it applies, and instructions can change without invalidating the prompt cache. Shopify also advises against multi-agent designs early, because a single agent handles more than most teams expect.
LinkedIn made a related choice about model size, using smaller models to route and retrieve and larger ones to write the answer. Routing is classification; frontier-model prices buy little there. Uber chose RAG over fine-tuning for Genie because it needed no curated training examples to start, which shortened time to market.
The common thread: start with the simplest architecture that could work. Add autonomy only where measurement shows it pays.
Where does the time go after the demo?
Demos arrive fast because models handle the common case well. The remaining months go into the uncommon cases, and that work is rarely about the model.
Fix the knowledge before the prompt
When Uber pointed Genie at security and privacy policies, answers came back incomplete or wrong. Its May 2025 fix was mostly upstream of the model, as our guide to RAG shows.
DoorDash reached the same conclusion from the other side. Its LLM judge’s quality reviews drove updates to knowledge-base articles that removed misleading wording. An agent cannot be more accurate than what it reads.
Treat output format and latency as engineering problems
Validate every output before acting on it. Our guide to production prompts tells how LinkedIn’s repairing parser tamed malformed output; provider-enforced structured outputs now remove most of that repair work.
Latency also compounds in ways demos hide. LinkedIn calculated that for a 200-token reasoning step, 10 extra milliseconds per token adds two seconds. Its team streamed end to end and fired each API call as soon as its parameters appeared. Reasoning that improves quality shows up in time-to-answer, so budget for it.
How do teams know the agent works?
The teams that published converged on similar machinery: a reference set built with experts, an automated judge checked against those experts, and a regression gate. Humans still anchor it. In the Berkeley-led study, 74% of deployed agents relied primarily on human evaluation; automation extends expert review rather than replacing it.
Calibrate the judge before trusting it
Uber had subject-matter experts curate a golden set of more than 100 test queries drawn from their own support work. An LLM judge then scored answers on a 0–5 scale against the experts’ reference responses, cutting evaluation from weeks to minutes. A judge is still a model, though, and an unchecked one is noise. Shopify’s first judges agreed with its experts barely better than chance; prompt iteration brought them close to human-to-human agreement.
DoorDash’s January 2026 write-up gives a routine any team can follow. Hand-label a sample of conversations as pass or fail, then score the judge’s verdicts against those labels with precision and recall. Study its reasoning on each disagreement, fix the prompt, and repeat until both numbers clear your bar.
The same post explains why a judge can be trusted when the bot cannot, an idea DoorDash calls the generator-verifier gap. Each judge answers one narrow yes-or-no question, such as whether the bot followed a given policy. Checking one behavior is far easier than doing the whole support job.
Simulate before you ship
Multi-turn agents are hard to test, because each reply changes the customer’s next message. DoorDash built an LLM-driven customer simulator seeded from real transcripts, with personalities, pushback, and mocked tool responses. A batch of over 200 simulated conversations finishes in less than five minutes, and the suite now holds more than 50 evaluations. One change, replacing raw tool logs in the context with a structured summary of the case, cut hallucinations by 90% in simulation, and the gain held in production.
The resulting loop is simple enough to adopt this quarter:
- Collect real failures from production or a pilot, not imagined ones.
- Write a narrow, binary evaluation for each failure mode.
- Hand-label a sample and calibrate the judge until precision and recall clear your bar.
- Run the current system to get a baseline pass rate.
- Change one thing, rerun, and compare.
- Block any prompt change that fails the suite, as DoorDash does with Promptfoo, an open-source test tool, and rerun it before swapping models.
- Ship behind an A/B test and keep the same evaluations running on live traffic.
What happens when the agent is wrong?
Guardrails need a budget. DoorDash first tried a sophisticated guardrail model, but it cost too much in latency and tokens. It moved to two tiers: a cheap similarity check between the response and knowledge-base passages, then an LLM evaluator that runs only on flagged responses.
Each retry adds latency, so DoorDash leans on handing the courier to a human support agent when a response fails. Because problem responses are rare, that fallback protects quality while most conversations stay automated. Uber’s Genie pairs the same idea with transparency: it is instructed to answer only from retrieved passages and cite their source links, and users can escalate to the on-call team when it falls short.
Be honest about what success looks like. Genie answered more than 70,000 questions at a 48.9% helpfulness rate, saving an estimated 13,000 engineering hours, per its October 2024 write-up. A helpfulness rate near 50% can still be worth a great deal when an unhelpful answer just means waiting for a human, as before. Choose use cases where a miss is cheap and recoverable.
Who did that? Identity and permissions for agents
Once agents act rather than answer, a new question appears: who is responsible? Uber’s May 2026 write-up illustrates it with an on-call agent that hands work to an investigation agent, which passes the fix to a monitoring agent that opens a pull request changing an alert threshold. The pull request names only the monitoring agent, not the engineer who started the chain.
Uber’s answer gives every agent its own verifiable identity, registered to the workload it runs on. A central token service issues short-lived tokens valid for one hop to one destination, each carrying the full chain from human to every agent involved. Tool calls pass through a Model Context Protocol (MCP) gateway that enforces policy. As of that post, thousands of internal agents used the system, and token exchange stayed under 40 milliseconds at the 99th percentile.
Few teams need Uber’s scale, but every team needs the principle. Never let an agent borrow a shared service account. Uber also shipped a standard agent-to-agent client library so the secure path was the easy one, because adoption follows convenience.
What this means for your team
- Pick a job where a miss is cheap. Internal support, triage, and drafting tolerate errors because a person sees the output. Hold back irreversible actions until evals and guardrails have a track record.
- Budget for the last 20%. LinkedIn reached 80% of the basic experience it wanted in a month, then spent four more months pushing past 95%. Plan for a similar ratio, and say so to stakeholders early.
- Fund evaluation before features. An expert-built reference set, a calibrated judge, and a regression gate come first. Without them, every prompt change is a guess.
- Audit the inputs. Check the documents, APIs, and tool outputs the agent reads. Uber and DoorDash both found major gains there.
- Keep the architecture small. One agent, a short list of well-described tools, and instructions delivered when relevant. Add sub-agents only when measurements show a single agent failing.
- Design the handoff first. Decide what happens when a check fails, and keep escalation to a human one step away.
- Give agents identities. Use scoped, short-lived credentials, per-action audit logs, and an actor chain from person to tool.
- Watch the common pitfalls. Judging by vibes, trusting an uncalibrated judge, and letting tool lists grow without pruning all appear in these write-ups.
At SurgeX Labs, we build agents in this order — evaluations, handoffs, and permissions before autonomy — because that is the part that decides whether an agent survives its first quarter.
Sources
-
Measuring Agents in Production (opens in new tab) — UC Berkeley, Stanford, UIUC, IBM Research, and Intesa Sanpaolo (arXiv), 2025 arxiv.org
-
Musings on building a Generative AI product (opens in new tab) — LinkedIn Engineering, 2024 linkedin.com
-
Genie: Uber’s Gen AI On-Call Copilot (opens in new tab) — Uber Engineering, 2024 uber.com
-
Enhanced Agentic-RAG: What If Chatbots Could Deliver Near-Human Precision? (opens in new tab) — Uber Engineering, 2025 uber.com
-
Solving the Identity Crisis for AI Agents (opens in new tab) — Uber Engineering, 2026 uber.com
-
Path to high-quality LLM-based Dasher support automation (opens in new tab) — DoorDash Engineering, 2024 careersatdoordash.com
-
A simulation and evaluation flywheel to develop LLM chatbots at scale (opens in new tab) — DoorDash Engineering, 2026 careersatdoordash.com
-
Building production-ready agentic systems: Lessons from Shopify Sidekick (opens in new tab) — Shopify Engineering, 2025 shopify.engineering
Where this shows up in our work
- Case study · client work Every sales tour, scored and coached — AI tour coaching: speech-to-text + LLM scoring
- Solution blueprint Tier-1 support that resolves, not deflects — AI agent for service-desk automation