# How to measure AI agent performance in production: 6 steps

> A field guide to the requests people make, the outcomes they reach, the signals that deserve attention, and the conversation turns and tool records behind each call.

---

## 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.

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

Latency, [token cost](/ai-pricing/), error rate, traces, and [offline evaluations](/blog/what-is-an-eval/) 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](/blog/ai-agent-observability/) for how these sources connect. How a token count becomes a cost per finished task is set out in [AI API pricing](https://tryabracadabra.com/blog/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. Count people or cohorts 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](/blog/user-intent-detection-ai-agents/) 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. Browse task outcome rubrics in the production agent failure & eval rubric library for copy-paste pass rules. Record the supporting record alongside the outcome label so a reviewer can check it.

| Outcome | Use it when | Example record |
| --- | --- | --- |
| **Finished** | The required result is delivered and verified by the record. | All 9 contacts are matched, updated, and logged. |
| **Partial** | Some required work is done, but a constraint or step is missing. | 3 of 9 contacts updated; 6 skipped because their emails didn’t match. |
| **Unresolved** | The result is absent or explicitly rejected. | No contacts are updated; the user repeats the request. |
| **Handed off** | The task moves to a person or system as intended. | A sales ops admin accepts the update request. |
| **Unknown** | The 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.

## 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](/blog/ab-testing-ai-agents/). The clickstream around the agent is [product analytics](/blog/product-analytics-for-ai-agents/). If the agent calls your product through MCP, the server log is a third view of the same task, covered in [MCP observability](/blog/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 of the task. When attempts stop because the agent hit a step limit, see [how step budgets work](/blog/agent-loop-design/).

| Intent | Attempts reaching step | Stopped here | Stop rate |
| --- | ---: | ---: | ---: |
| find the contacts | 2,400 | 92 | 3.8% |
| update them | 2,308 | 528 | 22.9% |
| log the activity | 1,780 | 244 | 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.

**See the conversations behind the rate.**
Explore user tasks, signals, and the exact turns that explain where work stopped in Abracadabra.
[Request access](/request-access/)

## 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. Catching loops, failed tool calls and a person rephrasing the same ask is covered in [AI agent failure detection](https://tryabracadabra.com/blog/ai-agent-failure-detection/).

### 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.

### 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 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 an empty or failed tool result deserves review. See turn-level failure signals for binary rubrics that grade each signal.

### 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.

### 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.

### 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](/blog/symptom-to-harness-component/).

- **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 1 important task and a fixed window. 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](/blog/shadow-testing-ai-agents/).

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 1 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, 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 eval tasks](/blog/what-is-an-eval/), 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 comparison window, and link the change to examples from both sets. 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](/product/) is built around exploring user tasks, signals, cohorts, and replaying the conversations behind a finding. The [features overview](/features/) shows that investigation path. Use it alongside execution traces, [Claude Managed Agents](/blog/claude-managed-agents/) session logs, and your own outcome events, especially where a task needs a product-specific completion check.

## 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 1 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.
- **1 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](/blog/what-is-an-eval/) check a change before release.

## AI agent performance FAQ

### What should I measure first?

Start with the requests users make most often, the record 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.

Sources: Google Cloud, [The KPIs that actually matter for production AI agents](https://cloud.google.com/transform/the-kpis-that-actually-matter-for-production-ai-agents); Anthropic, [Demystifying evals for AI agents](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents); AWS, [Evaluate and track ongoing agent performance](https://docs.aws.amazon.com/wellarchitected/latest/agentic-ai-lens/agentops06-bp02.html) in the Well-Architected Agentic AI Lens.

## Related guides

- [**Product analytics for AI agents: measure tasks and intent**](https://tryabracadabra.com/blog/product-analytics-for-ai-agents/): Why clickstream events cannot tell you whether someone got what they came for.
- [**A/B testing AI agents: how to compare two versions on live traffic**](https://tryabracadabra.com/blog/ab-testing-ai-agents/): One change per version, a split by person, and the task finish rate as the main number.
- [**MCP observability: how agents use your MCP server**](https://tryabracadabra.com/blog/mcp-observability/): What your server can see of each agent, and the signals that say a task stopped.
- [**What is an eval? AI evals explained for product managers**](https://tryabracadabra.com/blog/what-is-an-eval/): How to find what to test from real conversations, and what an eval suite misses.
- [**AI agent observability: how to monitor agents in production**](https://tryabracadabra.com/blog/ai-agent-observability/): How traces, evaluations and the person’s outcome fit together.
- [AI API pricing: cached input, output tokens and cost per task](https://tryabracadabra.com/blog/ai-api-pricing/)

