AI Agents
Shipping AI agents to production: start with the evals
Most agent projects stall between a promising demo and a system people trust. The fix is to build the evaluation suite before the agent.
Almost every AI agent project starts the same way. Someone wires a model to a few tools, runs it against ten hand-picked examples, and the demo looks great. Three months later the same agent is still "almost ready", because nobody can say whether a change made it better or worse.
The teams that get agents into production do one thing differently: they treat evaluation as the first deliverable, not the last.
1. Build the eval set from real work
Before writing agent code, collect a few hundred real examples of the task: support tickets, analyst requests, documents to process. For each one, record what a good outcome looks like. It does not need to be a perfect answer. Often it is a checklist: the right order was looked up, the refund policy was respected, the tone was appropriate, nothing sensitive leaked.
This set becomes the definition of "done". It also exposes ambiguity early. If two people on your team disagree about the right outcome for a case, the agent will not do better.
2. Score automatically, review by sampling
Use deterministic checks wherever possible: was the right tool called, with valid arguments, and did the final action match policy? For qualities that need judgment, such as tone and completeness, use a model-based grader with a written rubric, and regularly compare its scores against human review on a sample. A grader you have not calibrated is just a second opinion you cannot trust.
3. Design tools for the model, not for the API
Agents fail most often at the boundary with your systems. Wrapping every endpoint as a tool gives the model too many options and too little context. Instead, design a small set of task-shaped tools, such as get_order_status(order_id) rather than a generic query endpoint, with clear descriptions, strict input validation and helpful error messages the model can recover from.
4. Put guardrails where the risk is
Not every action needs a human. Reading data is low risk. Issuing refunds, sending external emails or changing records is not. We classify every tool by risk and route high-risk actions through an approval queue at first. As the eval data shows the agent handling a category reliably, autonomy is expanded one category at a time, with a clear audit trail.
5. Observe everything
In production, every agent run should be traced: the prompt, each tool call, latency, cost and the final outcome. Failed or low-scoring runs flow back into the eval set. This loop, from production to evals to improvement, is what turns a demo into a system that gets better every week.
The takeaway
If you are planning an agent project, spend the first two weeks on the eval set, tool design and risk classification. It feels slower. In our experience it is the fastest path to an agent your operations team will actually let run.