Shipping an Agent
← All modules Shipping an agent

Module 7 · Agent Field Guides · about 25 minutes

Shipping an agent: rollout, experience and economics

The research assistant from modules 1 to 5 passes its evals. Now it has to reach real users without surprises, feel trustworthy when they use it, and pay for itself. This module covers the product work around launch: staged rollout, designing the experience, unit economics, build or buy, and what the first six weeks really looked like.

Words with a dotted underline, like , are technical terms. Tap one for a plain-English definition.

Interactive demo

Run a staged rollout

Each click is one week. Look at the numbers, then decide: move to the next stage, hold, roll back, or hit the kill switch. Pick a scenario to see what can go wrong between stages.

Simulation.Users, metrics and events are scripted to show typical rollout decisions. Nothing is deployed.
    Week 1
    0 reports with made-up citations seen₹0 over budget

    1 · Rollout

    A rollout playbook

    Agents fail in ways your test cases didn't imagine. A staged rollout limits how many people see each new failure, and gives you a moment to fix it.

    The stages, and the bar for each

    StageWho sees itTypical lengthMove on when
    ShadowNobody. The agent runs on real questions, and its output is logged but not shown.1 to 2 weeksHard rules pass on real traffic, and cost and wait are within budget
    InternalYour own team1 to 2 weeksNo open serious bugs, and the team uses it without being asked
    BetaAbout 5% of users, who know it's new and how to give feedback2 weeksTask success, ratings and complaints at or better than target
    GeneralEveryone, in steps: 25%, 50%, 100%About a week per stepThe numbers hold at each step, and on-call is quiet

    Write the bar down before the stage starts. Deciding afterwards whether 82% is "good enough" is how teams talk themselves into bad launches.

    The tools that make it safe

    Feature flags

    A decides who gets the agent: a percentage, a team, a customer tier. Moving between stages becomes a setting, not a release.

    Kill switch and fallback

    One switch turns the agent off for everyone. Decide in advance what users see instead: the plain workflow, a "temporarily unavailable" note, or a human channel.

    Pinned model versions

    Use a dated model version, not "latest". A provider's update can change behaviour overnight. Treat a model upgrade like a release: evals, then shadow, then stages.

    Decision rights

    Name who may move a stage forward, who may roll back, and who may hit the kill switch. Rolling back should need one person, not a meeting.

    Upgrading the model safely

    1. Run the eval set on the new version, several times per case, next to the current one.
    2. Compare cost and wait, not just quality. A "better" model that costs twice as much may not be.
    3. Shadow it on real traffic for a few days, scoring both versions.
    4. Roll it out in stages, with the old version one setting away.

    Check your understanding · Rollout

    At 25%, made-up citations jump from 0 to 3.5 per 1,000 overnight. Nothing in your code changed. What do you do first?

    2 · Experience

    Designing an experience people can trust

    An agent is slower and less predictable than a normal feature. Good design makes that visible and manageable, instead of hiding it.

    1 · Set expectations

    Say what it does and doesn't do, before the first question: "Researches public web sources and writes a short cited summary. Doesn't use company data or give investment advice."

    2 · Show progress

    A 40-second wait feels broken behind a spinner. Stream steps as they happen: "Searching… Reading 3 sources… Writing…"

    3 · Show the sources

    Put citations next to each claim, with links. People trust what they can check, and checking catches mistakes.

    4 · Say when it's unsure

    "I could only verify 2 sources" or "Sources disagree on this" beats a confident paragraph that hides the gap.

    5 · Make failure useful

    When it can't finish, say why and offer the next step: try a narrower question, see the sources it did find, or ask a person.

    6 · Let people correct it

    Edit the draft, remove a source, or ask for a shorter version. Corrections are also your best feedback data.

    7 · Ask for feedback in context

    Thumbs up or down on each report, with quick reasons: "wrong source", "too long", "missed the point". Save it on the run's trace.

    8 · Design approvals worth reading

    Show the reviewer exactly what will happen and what changed, with approve, edit and reject. Ten approvals a day get read; two hundred get rubber-stamped.

    What a good report card looks like

    ✓ Searched✓ Read 3 sources✓ Wrote report38 s

    Is remote work better for productivity?

    For focused, individual tasks, remote work can raise output[1]. Hybrid work looked like a safe middle ground in a two-year trial[2]. The main cost is cross-team collaboration[3].

    Sources mostly agree. One study covered a single company, so treat it with care.

    1. Does working from home work? · econ-journal.example
    2. Hybrid working improves retention · science-weekly.example
    3. Remote work and collaboration · behaviour-research.example
    👍👎 Wrong source · Too long · Missed the pointEditShorter
    Progress, citations next to claims, an honest note about the evidence, sources you can open, and feedback with reasons. Every element maps to one of the eight principles above.

    Check your understanding · Experience

    Users say reports “feel unreliable”, though evals score them well. Which change is most likely to help?

    3 · Economics

    Unit economics: what one report really costs

    Model tokens are the cost everyone tracks, and often not the biggest one. Add the platform, the human review, and the work redone when the agent fails.

    ₹0all-in cost per report
    ₹0per task, counting failures an analyst redoes
    ₹0same task done by an analyst
    ₹0agent cost per month
    0%of the all-in cost is model tokens
    ₹0saved per month vs analysts alone

    Levers that move the numbers

    LeverWhat it changesWatch out for
    Raise the success rateEvery failure costs an analyst's time. Going from 88% to 94% often saves more than halving token costs.Measure success on real tasks, not just eval cases
    Route simple steps to a small modelGrading and note-taking rarely need the large model. Often cuts token cost by a third or more.Check the small model on your eval set first
    Cache the fixed part of the promptInstructions and tool descriptions repeat every turn. Providers charge less for cached input.Only helps when the start of the prompt stays the same
    Trim what goes into memoryMain text only, not whole web pages. Fewer tokens on every later turn.Don't cut the evidence the report needs
    Review smarterReview only flagged or low-score reports, plus a small random sample.Keep the random sample, or you can't measure what the flags miss

    Pricing an agent feature

    ModelHow it worksGood forRisk
    Included in the planNo extra chargeDriving adoption of a core featureHeavy users eat your margin. Add a fair-use limit.
    Usage-basedPer report, or creditsCosts that vary a lot between usersUsers ration it and never build the habit
    Outcome-basedPer successful taskClear, checkable outcomesYou must agree on what "success" means, and you carry the cost of failures
    Price on the heavy users, not the average. Agent costs are lopsided: one user researching long PDFs all day can cost twenty times the median. Look at the 90th percentile of cost per user before you set a price or a limit.

    Check your understanding · Economics

    Token cost is ₹4 per report. Success is 88%, and an analyst redoes each failure at ₹1,000. Where's the bigger saving?

    4 · Build or buy

    Should you build it at all?

    Before the team spends a quarter building an agent, check whether someone sells one that's good enough.

    Build on frameworksBuild on a provider's agent platformBuy a product
    ExampleLangGraph, LangChain and Langfuse, as in modules 2 to 5A model provider's agent SDK or hosted agent serviceAn off-the-shelf research or support assistant
    Best whenThe agent is core to your product, or needs your data and rulesYou want speed and are happy with one providerThe job is common, and not where you compete
    ControlFullHigh, within the platform's limitsLow: settings and prompts at most
    Time to first versionWeeks to monthsDays to weeksDays
    Ongoing workYour team owns everything: evals, upgrades, on-callShared with the providerMostly the vendor's
    Ask aboutWho maintains it in a year?How hard is it to switch provider?Where does our data go? Can we see traces and run our own evals?
    A useful test. If a competitor bought the same product tomorrow, would you lose anything that matters? If not, buying is probably fine. If yes, that's the part worth building.

    5 · Case study

    The research assistant's first six weeks

    An illustrative story, built from problems teams commonly hit. Each week shows what happened, how it was spotted, and what changed.

    1. Week 0 · Shadow

      Paywalled sources

      One in five "read" pages was a login wall. The agent cited them anyway, from the snippet. Spotted by the citation check: the cited text wasn't in the page. Change: fetch_page now reports "page needs a login", and the agent picks another source.

    2. Week 1 · Internal

      Reports nobody finished reading

      The team skimmed the first line and stopped. Spotted by feedback reasons: "too long" on a third of reports. Change: a one-line answer first, then the detail. Thumbs-down fell by half.

    3. Week 2 · Beta 5%

      Questions it wasn't built for

      Users asked about their own company's numbers, which it can't see. It searched the web and guessed. Spotted by reviewing low-score traces. Change: an input check that says what it can't do, and 12 new test cases.

    4. Week 3 · 25%

      A quiet model update

      The provider updated the model behind an unpinned name. Made-up citations reappeared. Spotted by the citation-accuracy alert within an hour. Change: rolled back to 5%, pinned a dated version, and added "upgrade the model" to the release checklist.

    5. Week 4 · 50%

      The cost spike

      The legal team started researching 200-page PDFs. Cost per report tripled for them. Spotted by cost per user in the dashboard. Change: pages trimmed to the relevant sections, notes moved to a small model, and a fair-use limit.

    6. Week 6 · 100%

      Steady state

      89% task success, 0 made-up citations in automated checks, p95 wait of 44 seconds and ₹3.90 per report. Weekly review of 50 bad traces keeps feeding the eval set, now at 140 cases.

    What changed in v2

    • Answer first, detail after
    • Login-wall detection
    • Scope check on input
    • Pinned model, with an upgrade process
    • Small model for notes
    • Fair-use limit

    What caught the problems

    • Citation check (twice)
    • Feedback reasons
    • Weekly trace review
    • Cost per user dashboard
    • Not a single one came from the original eval set

    The lesson

    Evals get you to launch. Monitoring, feedback and a staged rollout find the problems your evals didn't imagine, while only a few users can see them.

    Keep this

    One-page cheat sheet

    Ship in stages, design for trust, price on all-in cost, and keep a kill switch within reach.

    Rollout checklist

    • Stages and their bars written down in advance
    • Feature flag controls who gets it
    • Kill switch and fallback tested
    • Model version pinned, with an upgrade process
    • Named owners for move on, roll back and switch off

    Experience checklist

    • Says what it does and doesn't do
    • Shows progress during long runs
    • Citations next to claims
    • Says when it's unsure or stuck
    • Users can correct it and give reasons
    • Approvals that are rare enough to be read

    Numbers to know

    • All-in cost per report, not just tokens
    • Cost per task, counting failures
    • 90th-percentile cost per user
    • Task success rate on real traffic
    • Users exposed at each stage

    Questions to ask

    • What's the bar for moving to the next stage?
    • Who can switch it off, and has anyone practised?
    • What do users see when it's off?
    • What does a heavy user cost us?
    • Could we buy this instead?

    Glossary

    Learn from others

    3 common mistakes at launch

    1

    The big-bang launch

    What it looks like
    Evals pass, so it goes to everyone on day one. The first unexpected failure reaches every user before anyone notices.
    Fix
    Shadow, internal, beta, then 25%, 50%, 100%, each with a written bar. A feature flag and a kill switch from the start.
    2

    Hiding the machinery

    What it looks like
    A spinner for 40 seconds, then a confident paragraph with no sources. Users can't tell good answers from bad, so they trust none of them.
    Fix
    Show progress, cite sources next to claims, say when it's unsure, and ask for feedback with reasons.
    3

    Pricing on averages and tokens

    What it looks like
    The business case uses average token cost. Then review time, platform costs, redone failures and a few heavy users turn the margin negative.
    Fix
    Model the all-in cost per successful task, check the 90th-percentile user, and set fair-use limits before launch.
    ← Module 6 · Metrics for a compliant wealth AI bot Glossary and further reading →