all posts

How to measure AI agent performance in production: 6 steps

A practical way to read what people ask an agent, judge whether the task finished, and find the turns and tool results behind friction and policy signals.

Playbook 12 min read Updated
What people asked“Update these contacts from the trade-show list.”
2,400task attempts
64%finished
The step with the most problemsupdate them528 stops

Illustrative site example · one task, with the conversation turns beneath each count

What does agent performance mean?

To measure AI agent performance, first define it. An agent performs well when it helps people complete the work they asked it to do, with acceptable effort and within the rules of the product. That definition has several parts. The agent needs to understand the request, carry out the necessary steps, produce a usable result, and handle boundaries correctly.

Measure these parts separately. A successful tool call shows that a step ran. A user saying “thanks” is a conversational response. Neither, on its own, proves the requested work was finished. Similarly, a refusal may be the correct outcome when a request crosses a policy boundary.

QuestionMeasureWhat to inspect
What did people ask?Task and intent mixThe user’s request, constraints, and any later change of goal
Did it get done?Finished, partial, unresolved, handed off, unknownArtefact, transaction, tool result, user follow-up, or review
How much effort did it take?Corrections, repeats, unnecessary clarification, retriesThe turns before the result and the action that followed it
Was the behaviour acceptable?Policy adherence, refusal quality, unsafe action attemptsApplicable rule, request, response, and tool action
Who is affected?Rate by task, cohort, agent version, and entry pointA consistent population and linked example conversations

Latency, model token cost, error rate, traces, and offline evaluations still matter. They explain execution and test defined behaviours. The measures above add the user’s task and experience to that picture. See the observability guide for how these sources connect. How a token count becomes a cost per finished task is set out in AI API pricing.

The unit of measurement changes with the question. Count requests to learn demand, and task attempts to calculate outcomes. Count turns to understand friction (where people repeat themselves, correct the agent or give up). Count people or cohorts (groups who share a plan, a segment or an entry point) to understand reach. A conversation may contain several tasks. A task may span several runs. Keep stable identifiers between those objects so a rate can lead back to the exact exchange that produced it.

Give every rate a task, population, period, and denominator. “64% finished” is useful only when a reader knows which task the 64% describes and whether the unknown attempts are included. In the worked example below, the task is updating contacts from a trade-show list and the denominator is 2,400 attempts. The figures are illustrative, not customer results.

What are users asking your agent to do?

Before choosing a performance rate, group requests by the job the person is trying to complete. “Update contacts from a list,” “build a pipeline report,” and “change a billing setting” have different completion criteria. Combining them into one agent-wide rate conceals which job changed. A simple intent list is enough to start.

Read the opening request and the turns that refine it. Capture the task, the object of work, constraints, and expected output. In the illustrative CRM conversation, the person has 1 trade-show list and needs the matching contacts updated. The agent checks whether existing customers count too. The person says just the new leads, so the expected result is 9 contacts updated and logged.

“Update these contacts from the trade-show list.”

Starting point
1 trade-show list
What the user needs
9 new leads updated and logged
Work to do
find the contacts · update them · log the activity

Keep broad topics apart from tasks. “Managing contacts” is a topic. Updating these 9 contacts from the list is the task. It has 3 smaller intents: find the contacts, update them, and log the activity. This structure shows where work stopped without forcing every request into a fixed menu.

Track new and unexpected asks as well. Repeated requests for an unsupported file format, a new integration, or an action the agent cannot take are product demand signals. They should not automatically count as model failures. Record what people requested, whether it is supported, how the agent responded, and whether they found another path.

Review changes in the mix of requests before interpreting a headline rate. If more people start asking for bulk updates across several lists, the overall completion rate can move even when each existing task performs the same. Compare like tasks with like tasks, then look at the total mix separately.

What counts as a completed task?

Define completion for each common task before calculating a rate. Here, success means all 9 contacts are updated and logged. Updating 3 contacts is progress, but it does not finish the request. Other tasks need their own proof. Record the supporting turn and tool payload alongside the outcome label so a reviewer can check it.

OutcomeUse it whenExample proof
FinishedThe required result is delivered and confirmed by the run record.All 9 contacts are matched, updated, and logged.
PartialSome required work is done, but a constraint or step is missing.3 of 9 contacts updated; 6 skipped because their emails didn’t match.
UnresolvedThe result is absent or explicitly rejected.No contacts are updated; the user repeats the request.
Handed offThe task moves to a person or system as intended.A sales ops admin accepts the update request.
UnknownThe record cannot support a defensible outcome call.Agent reports an update, but the contact records cannot be checked.

If the contact records cannot be checked, label the result unknown. A polite reply from the user or the agent saying “done” does not prove the contacts were updated. You can copy ready-made 3-state outcome contracts and judge schemas from the task outcome rubric library, including the contact update rubric.

How do you calculate task completion rate and cost per task?

Two rates answer most of the question. Write them down before you add any other score.

Task completion rate is finished attempts divided by attempts that started the task. On the CRM task that is 1,536 / 2,400 = 64%.

Cost per finished task is the spend on those attempts divided by the finished attempts. If the 2,400 attempts cost C, cost per finished task is C / 1,536. Cost per attempt is C / 2,400. The first number is higher, because the 864 that stopped still spent money.

Google Cloud’s note on agent KPIs makes the same point: a cheap run that fails half the time doubles the cost of a success. Pair the spend with the finished task, not with the token.

Hold these two rates still when you compare versions. That comparison is an A/B test. The clickstream around the agent is product analytics. If the agent calls your product through MCP, the server log is a third view of the same task, covered in MCP observability.

How do you track how many steps a user needs to finish a task?

The 3 intents inside the task make the problem easier to locate. First, the agent finds which contacts on the list match records in the CRM (find the contacts). Next, it updates those contacts (update them). Finally, it logs the activity against each one (log the activity). In this illustrative dataset, most attempts that stopped did so on update them. Each percentage below uses only attempts that reached that step. When attempts stop because the agent hit a step limit, see how step budgets work.

Share that stopped at this step0% 30%
find the contacts92 stopped · 2,400 reached this step
3.8%
update them528 stopped · 2,308 reached this step
22.9%
log the activity244 stopped · 1,780 reached this step
13.7%
The biggest problem is update them: 528 attempts stopped here, or 22.9% of those that reached this step. Illustrative data.

If the team fixes half of the 528 stops on update them, 264 more attempts could continue. If all 264 then finish, the finished share would rise from 64% to 75%. That is an illustration of how to prioritise a fix, not a forecast.

Read the count and percentage together. The count shows how many attempts were affected. The percentage shows how often a problem occurred among attempts that reached that step. Later steps have fewer attempts because some already stopped earlier.

Which signals show how the task went?

An outcome tells you what happened. Signals help explain the path. Read them as clues to investigate, not automatic verdicts. The same phrase can mean different things in different tasks. See the turn-level failure signals library for copy-ready detectors. Catching loops, failed tool calls and a person rephrasing the same ask is covered in AI agent failure detection.

Request fidelity

Constraints get lost

Compare the opening request with the result. Check dates, entities, exclusions, formats, and required sources. A result can be fluent and still omit the one condition that mattered.

User effort

People repeat or repair

Look for “I meant…”, “you missed…”, and the same entity restated across turns. Check whether the correction worked. A repeat can also reflect a changed goal, so read the surrounding turns.

Tool grounding

Tool output does not match the answer

Compare tool results with claims in the final response. Empty results, truncated pages, stale records, and permission errors need explicit handling. A confident answer after a blank tool return deserves review.

Conversation flow

The task stalls

Watch repeated clarification, loops, retries, and a handoff that never reaches anyone. For each case, ask whether the agent had enough information to proceed safely.

User response

The result is rejected or revised

Corrections, edits, follow-up requests, and an explicit rejection reveal work still needed. A thank-you or exit alone cannot settle the outcome.

Demand

People ask for something new

Cluster unsupported requests and repeated workarounds. This shows unmet demand, missing product affordances, or unclear expectations about what the agent can do.

Keep each signal linked to the turn or tool event that triggered it. That lets a reviewer distinguish a real pattern from a noisy detector and lets engineering reproduce the issue.

Interpret a signal against the user’s intent. A clarification can be helpful when permission is missing, and a repeat can mean the user changed their mind. Conversely, a smooth conversation may still hide skipped contacts. Check the result before giving the experience a positive label.

A practical review records the signal name, the span of turns it covers, the supporting text or event, and a reviewer’s decision. Group similar examples by task. If one detector starts flagging every mention of “again,” sample its false positives before using that count as a monitor.

Why did the conversation stop?

The chart points to the update step. The conversation explains what went wrong: the agent found 9 contacts, but 6 of their emails didn’t match, so those contacts were skipped. It updated and logged the other 3 anyway. The person then asked for the rest. Once you know where it stopped, find which part of the agent failed.

t1 · Person

Update these contacts from the trade-show list.

t2 · Agent

Just the new leads, or existing customers too?

t3 · Person

Just the new leads.

t4 · Agent

Found 9 contacts.

t5 · Person

Great, go ahead.

t6 · Agent

Updating the 9 contacts now.

t7 · Agent tool result · 6 skipped

6 of the 9 emails didn’t match. Updating the other 3.

t8 · Agent

Done. 3 contacts updated and logged.

t9 · Person user correction

Where are the rest? Can you try that again?

“Contacts” means the 9 new leads from the trade-show list. The highlighted turns show the skipped contacts and the user’s response. Illustrative conversation.

Outcome: the requested update was not completed. The tool result at t7 explains the immediate shortfall. The person’s t9 response confirms that the missing contacts mattered. “Found 9 contacts” at t4 only means the agent knows which records to update. Updating 3 contacts at t8 is a partial result; the user asked for 9.

The follow-up is specific. Find out why 6 emails didn’t match, and decide whether the agent should retry them on a different match. Then make the incomplete result clear to the user. Keep the tool output and conversation together so the fix can be checked against this failure.

How do you check that the agent follows your rules?

Performance includes staying within the rules that apply to the task. That may mean protecting private information, respecting account permissions, asking for approval before an external action, or refusing a request the product must not fulfil. A correct refusal is successful policy behaviour even when the requested task is not performed.

Start by naming the rule and the action it governs. “Policy violation” is too broad to diagnose. Record whether the agent attempted a restricted action, performed it, exposed restricted content, or responded correctly with a refusal or safe handoff. These are different severities and need different responses.

Review a suspected policy issue in context

  • Request: What did the user ask, and what access did they have?
  • Rule: Which policy or permission applied at that moment?
  • Action: What did the agent say, retrieve, or execute?
  • Record: Which turn, tool call, approval, or audit event supports the label?

Keep suspected risks separate from confirmed violations. A detector can flag sensitive terms or risky intent, but a reviewer may find that the agent refused correctly or that the data was authorised. Track false positives and missed cases when you change the detector or policy version. Escalate confirmed high-severity actions through your existing incident process.

Use a denominator that matches the policy. For an approval rule, count agent actions that required approval and show how many proceeded without it. For a disclosure rule, count responses that had an opportunity to reveal protected material. “Violations per conversation” can be useful for trend monitoring, but it does not tell you which boundary failed.

Sample correct refusals too. An agent can comply with policy yet make the product unusable by refusing authorised work. Separating correct refusal, over-refusal, suspected issue, and confirmed violation keeps safety and utility visible at the same time.

How do you turn these numbers into a weekly review?

Start with one important task and a fixed time range. Sample its finished, partial, unresolved, and unknown attempts. Read the conversations and tool events, then write a short outcome definition that another reviewer can apply. Once the labels are reliable, expand to more tasks. To check a fix without risk, try it as a shadow test.

For each task, review the volume of requests, outcome mix, leading friction signals, and policy findings. Break down the result by agent version, cohort, entry point, or other context you can act on. Keep the denominator clear: users, conversations, or task attempts. If one conversation contains 2 tasks, decide how each attempt is counted before making a chart.

Sample deliberately. Take examples from every outcome group, including successful attempts, and include important cohorts and agent versions. Only reading flagged failures will overstate the problem and may hide false positives. When reviewers disagree, refine the definition with the exact conversation that caused the disagreement.

Prioritise a pattern when it is frequent, costly to users, or severe. Open representative conversations, identify the deciding turn (the turn after which the task stops heading towards its outcome), and check the related trace or tool payload. For the contact-update task, the 528 stops on update them make that step the first place to investigate. A fix might retry skipped contacts by name and company or make partial results clearer. Save confirmed failures as regression examples in your eval suite, then compare the same task and population after the change.

Report the improvement with the same task definition and denominator. Show the current rate beside the previous period, and link the change to examples from both periods. If the request mix, model, or detector changed, say so. Otherwise a cleaner chart may reflect a changed population rather than a better agent.

Abracadabra’s workspace is built around exploring user tasks, signals, cohorts, and replaying the conversations behind a finding. The features overview shows that investigation path. Use it alongside execution traces and your own outcome events, especially where a task needs a product-specific completion check. The plan is free to start: see pricing.

When do these measures mislead you?

A rate is a way to decide which conversations to read. It is not a verdict.

  • Small samples. A rate built on a few dozen attempts can swing on one conversation. Report the count beside the percentage.
  • Stops that are the right outcome. Someone who stopped because an earlier turn answered the question did not fail. Decide what counts as finished before you count stops.
  • Labels nobody has checked. Read a sample from every outcome group before you trust a classification, including the finished ones.
  • One average across tasks. Tasks differ in difficulty and in who attempts them. Break the result down by task before comparing agent versions.
  • Debugging and release gates. These measures say where people stop. Traces explain why a run failed, and evals check a change before release.

AI agent performance FAQ

What should I measure first?

Start with the requests users make most often, the proof of whether each task finished, and the conversations where the result is unclear.

Does a final answer mean the task is complete?

No. Check whether the requested result was delivered and, where possible, confirmed by a product event or a reviewer. Keep uncertain outcomes separate.

How should policy issues be counted?

Count confirmed violations separately from suspected risks and correct refusals. Review the relevant policy, user request, agent response, and tool action together.

all posts

Measure each task from the conversations.

See what people asked, where work finished or stalled, and which conversations explain the pattern.