Codnit
Contact Start a project
Service category AI Development
Not sure what you need? 30 minutes with one of our engineers.
About UsWho we are and how we work. PodcastsConversations on building software. EventsTalks, meetups and workshops. BlogsEngineering notes and insights. GuidesPlaybooks for your next build. PricingFixed scope, fixed price. CareersJoin the team. We’re hiring. TechnologiesThe stack we build with. ReviewsWhat our clients say.
Talk to us hello@codnit.com 30-min intro Book a call →
Industry Fintech
Don't see your industry? Tell us what you're building.
AI

Shipping AI agents to production without the hype

What it takes to move an agent from demo to something your support team trusts.

Robert Price Robert PriceCEO, Codnit · Nov 4, 2026 · 16 min read

Everyone is experimenting. Few are scaling.

AI agents have become the most talked-about idea in enterprise software. Vendors promise digital workers that answer tickets, reconcile invoices, update CRMs and draft reports while your team sleeps. Board members ask why the company does not have one yet. Engineering teams are asked to ship something by next quarter.

The reality is more measured. McKinsey’s 2025 global survey on the state of AI, which gathered responses from 1,993 participants between late June and late July 2025, found that 62 percent of respondents say their organizations are at least experimenting with AI agents. That sounds like mass adoption until you look closer. Only 23 percent report that their organizations are scaling an agentic AI system somewhere in the enterprise, and in any individual business function, no more than 10 percent say they are scaling agents.

In other words, the gap between a promising demo and a dependable production system is wide, and most companies are still on the near side of it. The same survey found that most organizations remain in experimentation or piloting overall, with nearly two-thirds of respondents saying their organizations have not yet begun scaling AI across the enterprise.

We have shipped agents that handle support triage, invoice matching and internal knowledge search for clients in fintech, logistics and SaaS. This article is what we have learned about crossing that gap: what to build first, how to measure it, how to keep humans in control and how to avoid the failure modes that quietly kill most agent projects.

What we mean by an agent

The word agent is used loosely, so it is worth being precise. McKinsey’s survey describes agents as systems based on foundation models that can plan and execute multiple steps in a workflow, rather than simply answering a single question. That is a useful definition. A chatbot that answers questions from a help center is not an agent. A system that reads a ticket, looks up the customer’s order, checks the refund policy, drafts a reply and updates the CRM is.

That distinction matters because each additional step multiplies the ways things can go wrong. A model that is right 95 percent of the time on a single step is right only about 77 percent of the time across five dependent steps, if errors are independent. Agents need far more engineering around the model than a chat interface does, and most of the work in a production agent is not the prompt.

In our projects, an agent is made of four parts: a model that reasons, a set of tools it is allowed to call, a memory of the task so far and a controller that decides when to stop, retry or hand off to a person. The model gets the attention. The tools, memory and controller decide whether it works.

“The demo is ten percent of the work. The other ninety is making it boring and reliable.”

Demos are easy. Trust is not.

Any competent team can make an agent look impressive in a five-minute demo. Pick a clean example, tune the prompt until it works, and record the result. The hard part is the thousandth real ticket, the customer who writes in three languages, the invoice with a typo in the PO number and the day an upstream API changes its response format without warning.

Trust is what separates a pilot from a production system. A support lead will only let an agent send replies to customers once they believe it will not embarrass the company. A finance team will only let an agent post entries once they believe it will not create an audit problem. That belief has to be earned with evidence, not enthusiasm.

The pattern we see in stalled projects is almost always the same. A team builds a broad agent that tries to handle every request type, shows a great demo, then spends months chasing edge cases without a clear way to know whether things are getting better or worse. The project loses sponsorship long before it reaches production.

Start with one narrow job

Our best agents do one thing well. Triage a support ticket into the right queue with the right priority. Match an incoming invoice to a purchase order and flag mismatches. Answer questions about internal HR policy with citations. Narrow scope makes quality measurable, failures diagnosable and wins visible.

When we pick a first use case with a client, we look for four properties. The task happens often enough that automating it matters. There is a clear right answer most of the time, so we can grade outputs. The cost of a mistake is bounded and recoverable. And the data the agent needs is accessible through APIs or documents we can reach securely.

This lines up with where McKinsey found agents being used most. In the 2025 survey, agent use was most commonly reported in IT and knowledge management, functions where tasks are frequent, well-defined and text-heavy. Those are good hunting grounds for a first agent precisely because they let you prove value without betting the business.

  • Pick a task with a clear right answer most of the time
  • Collect at least 100 real, labelled examples before writing a prompt
  • Write down what the agent must never do
  • Define the human handoff before you define the happy path

Build the evaluation before the agent

If we could give one piece of advice to every team building agents, it would be this: build the evaluation suite first. Before we write the first prompt, we collect real examples from the client’s history, label the correct outcome with the people who do the work today and turn that into an automated test set.

A good evaluation suite has three layers. The first checks final outcomes: did the ticket end up in the right queue, did the invoice match the right PO. The second checks intermediate steps: did the agent call the right tools in a sensible order, did it retrieve the right documents. The third checks safety: did it ever take an action it was not allowed to, reveal data it should not have, or make a claim it could not support.

That suite runs on every change. When someone edits a prompt, swaps a model, adds a tool or updates a retrieval index, the scores update automatically. Quality becomes a number on a dashboard rather than a feeling in a meeting, and regressions are caught before customers see them.

Evaluations also make model choices rational. When a new model is released, we can run it against the same suite in an afternoon and see whether it is better, worse or simply more expensive for this specific job. Without evaluations, model upgrades are guesswork.

Tools, permissions and blast radius

An agent is only as safe as the tools it can call. We treat every tool as a privileged API and design it with the same care we would give a public endpoint. Each tool has a narrow purpose, validates its inputs strictly and returns structured outputs the controller can check.

Permissions follow the principle of least privilege. A triage agent can read tickets and set their queue, but cannot send replies. A drafting agent can write replies to a review queue, but cannot send them. An accounting agent can propose journal entries, but only a person can post them. When we expand an agent’s authority, we do it one permission at a time, with evidence from the evaluation suite that it is ready.

We also limit blast radius with simple engineering: rate limits on actions, hard caps on refund amounts or record changes per run, idempotency keys so retries do not duplicate work, and a kill switch that a non-engineer can use. None of this is glamorous. All of it is what lets a risk team say yes.

Keep a human in the loop, on purpose

Human review is not a sign that an agent has failed. It is how trust is built. In early releases, anything risky goes to an approval queue with the agent’s full reasoning attached: what it read, which tools it called, what it concluded and how confident it is. Reviewers approve, edit or reject with one click, and every decision becomes a new labelled example for the evaluation suite.

Over time, the data tells you what can be automated. If reviewers approve 99 percent of a certain category without edits for several weeks, that category is a candidate for full automation. If another category is edited half the time, it stays in review, or the agent’s scope is narrowed. The team that does the work today decides, based on evidence, what the agent does tomorrow.

This approach also handles the inevitable incidents gracefully. When something goes wrong, there is a trace of exactly what the agent saw and did, a person who reviewed it and a clear path to fix the underlying cause.

Grounding and citations

Many agent failures are really retrieval failures. The model reasons well but is handed the wrong document, an outdated policy or half of a contract. We spend as much time on retrieval as on prompts: cleaning source documents, chunking them sensibly, tagging them with ownership and freshness dates and testing whether the right passages come back for real questions.

Every factual claim an agent makes to a user should be traceable to a source. Our agents cite the document and section they relied on, and the interface makes those citations easy to check. When the agent cannot find a supporting source, it says so and hands off, rather than filling the gap with a confident guess.

Governance that does not slow you down

Regulators and risk teams are paying closer attention to AI, and for good reason. In the United States, the National Institute of Standards and Technology published its AI Risk Management Framework in January 2023 as a voluntary guide organized around four functions: govern, map, measure and manage. We find it a practical checklist rather than a bureaucratic burden.

In practice, that means each agent has a named business owner, a written description of its purpose and limits, a risk assessment, an evaluation suite with agreed thresholds, monitoring in production and a documented process for incidents. For most clients this fits on a few pages and takes days, not months, to put in place. It also makes the conversation with legal, compliance and security teams much shorter.

Monitoring in production

Shipping an agent is the start, not the end. Real-world inputs drift. Customers find new ways to phrase requests. Upstream systems change. A model provider updates a model behind the same name. Without monitoring, quality decays silently.

We monitor three things continuously. Outcome quality, sampled from production and graded against the evaluation rubric. Operational health: latency, error rates, tool failures, cost per task. And behavior: how often the agent hands off, how often reviewers edit its work and whether any safety checks fired. Each has alerts with owners, and each feeds back into the evaluation suite.

  • Sampled outcome quality, graded weekly
  • Latency, cost and tool error rates per task
  • Handoff and edit rates by category
  • Safety check triggers, reviewed every time

Measuring the business value

The McKinsey survey highlights a small group of AI high performers, roughly 6 percent of respondents, whose organizations attribute more than 5 percent of EBIT to AI. What distinguishes them is not access to better models. It is that they redesign workflows around AI and measure results in business terms.

We agree on the business metric before we build. For support triage, it might be time to first response and the share of tickets routed correctly the first time. For invoice matching, it might be days to close and exceptions per thousand invoices. For knowledge search, it might be time saved per employee and reduced escalations to experts. We measure a baseline before launch and report against it monthly.

This discipline also helps decide when to stop. Not every agent earns its keep. If an agent is not moving the business metric after a fair trial, the honest move is to narrow it, rethink it or switch it off, and put the effort somewhere it will matter.

Choosing a model without the guesswork

Teams often start an agent project by debating which model to use. We think that is the wrong first question. The right model depends on the task, the latency budget, the cost per run, data residency rules and how the model performs on your evaluation suite. None of that can be known before the suite exists.

In practice, we usually benchmark three or four candidates: one or two frontier hosted models, a smaller and cheaper hosted model, and an open-weight model that can run inside the client’s cloud. For many narrow tasks, a smaller model with good retrieval and well-designed tools matches a frontier model on quality at a fraction of the cost and latency. For complex reasoning across many steps, the larger models still earn their price.

We also design for change. Model providers release new versions every few months, and pricing moves just as often. Our agents call models through a thin internal interface, so swapping one model for another is a configuration change followed by an evaluation run, not a rewrite.

Cost control is a feature

Agents that call models many times per task can become expensive quickly, especially when volumes grow. We treat cost per task as a first-class metric from the first week, alongside quality and latency.

The levers are straightforward. Cache results for repeated lookups. Route simple cases to smaller models and reserve larger ones for hard cases. Trim prompts and retrieved context to what the task actually needs. Set hard budgets per run so a confused agent cannot loop indefinitely. On most projects these measures cut model spend by half or more without hurting quality, and they make the economics predictable enough for finance teams to plan around.

Five failure modes we see most often

After building and reviewing many agent projects, we see the same failure modes again and again. Naming them makes them easier to avoid.

  • Scope creep: an agent that tries to handle every request type and handles none of them well
  • No evaluation: quality judged by demos and anecdotes instead of a labelled test set
  • Over-permissioned tools: agents that can take irreversible actions before they have earned trust
  • Stale or messy knowledge: retrieval over outdated, duplicated or unowned documents
  • No owner: an agent built by engineering that nobody in the business is accountable for

What the people doing the work think

The most important stakeholders in any agent project are the people whose work it changes. Support agents, analysts and operations staff know where the edge cases are, which policies are ambiguous and what a good outcome looks like. They are also the people who will decide, informally, whether the agent is trusted.

We involve them from Discovery onward. They label examples for the evaluation suite, review agent output in shadow mode and help decide which categories to automate. In our experience, teams that feel ownership of an agent become its strongest advocates, and they spend the time it frees up on the harder, more human cases that never should have been in a queue to begin with.

A realistic timeline

Clients often ask how long a production agent takes. For a narrow, well-defined task with accessible data, our typical path looks like this. Two weeks of Discovery to pick the use case, gather examples and agree the metric. Two to three weeks to build the evaluation suite, tools and a first version of the agent. Two to four weeks of shadow mode, where the agent runs on live inputs but a person makes every decision. Then a staged rollout with human approval, followed by gradual automation of the categories that prove reliable.

That is roughly two to three months from kickoff to an agent doing real work, and it is the timeline we commit to in a fixed-price scope. It is slower than a hackathon demo and much faster than the year-long pilots that never ship.

Data privacy and where models run

Most of our clients handle data they cannot send anywhere they like: customer records, financial transactions, health information or confidential contracts. Before we pick a model, we agree where data may flow, how long it may be retained and who may see it.

In practice, that usually means one of three patterns. Hosted models through enterprise agreements that exclude client data from training and offer regional processing. Models hosted in the client’s own cloud account, where data never leaves their environment. Or open-weight models running on infrastructure the client controls. We also strip or mask sensitive fields before they reach a model whenever the task does not need them, and we log every model call with enough detail to support an audit without storing more personal data than necessary.

These decisions are easier to make at the start than to retrofit later. They also tend to unblock approvals from security and legal teams, which in our experience is where many agent projects quietly stall.

Questions to ask before you start

Before committing budget to an agent, a few questions will save a lot of time. What specific task will it do, and how often does that task happen today? How will we know an output is correct? What is the worst thing it could do, and how will we prevent it? Who in the business owns the result? And what metric will tell us, three months after launch, whether it was worth it? If those questions have clear answers, the project is ready to start. If they do not, answering them is the first piece of work.

The bottom line

The data says most organizations are experimenting with agents and very few have scaled them. The gap is not about models. It is about engineering discipline: narrow scope, real evaluations, careful permissions, human review, grounded answers, steady monitoring and honest measurement.

None of that is hype. It is the unglamorous work that turns an impressive demo into something your support team, finance team and customers can trust. That is the work we like doing, and it is the reason our agents stay in production after the excitement fades.

Robert Price Written by Robert PriceCEO of Codnit. Has shipped software for startups and enterprises across fintech, healthcare and retail.

Keep reading.

All articles →
Engineering · 16 min readHeadless commerce: when it is worth it, and when it is not Performance · 15 min readLighthouse 100 is a business metric Mobile · 16 min readOffline-first mobile apps: lessons from HealthStream