Topic 4 of 5 · 4 min read
Measuring agent task completion and cost
Goal: Choose metrics for an agent feature and calculate cost per completed task from a sample of runs.
Measure an agent by finished tasks and what they cost, including the runs that failed, not by how many messages or chats it handled.
Check yourself · 1 of 3
Which metric best shows whether an agent feature does its job?
Why it matters
A chatbot can be measured by chats. An agent does work, so you measure the work. Counting messages rewards an agent that talks a lot. METR's research on long tasks makes the same shift: it measures what agents can actually complete, not how they score on short questions. For a product, "the agent was used 20,000 times" tells you nothing about whether the 20,000 jobs got done.
The core metrics
- Completion rate. Of runs started, how many reached the done state you defined, checked against the real system.
- Intervention rate. How often a person had to step in: approve, edit, take over or fix afterward. Split edits from full takeovers.
- Cost per completed task. Total spend on all runs, divided by the number of completed tasks. Spend includes model calls, tool calls and review time.
- Time to done. From request to checked completion, including time waiting for approvals.
- Cost of failed runs. Spend on runs that did not finish, plus the damage: wrong refunds, rework, apologies.
Why failed runs matter
A failed run costs money and still produces nothing. If you divide cost by all runs, the number looks better than the truth. Divide by completed tasks.
Worked example
A sample of 200 runs. Model and tool spend is $60. Completed: 150. Failed or abandoned: 50. People spent 10 hours on interventions at $30 an hour, $300.
- Completion rate: 150 / 200 = 75 percent.
- Cost per completed task: ($60 + $300) / 150 = $2.40.
- Cost per run, the misleading figure: $360 / 200 = $1.80.
If a person does the same task for $4, the agent is cheaper at $2.40, but the gap is much smaller than $1.80 suggests.
What goes wrong
- Vanity counts: messages sent, sessions, "tasks attempted".
- Completion measured by the agent's own report. Check the system.
- Averages that hide the hard tasks. Segment by task type, because an agent may do 95 percent of easy ones and 20 percent of hard ones.
- Leaving out human time. If review takes longer than doing the task, the agent has a negative return.
Examples
Cost per completed task from 200 runs
| Item | Value |
|---|---|
| Runs sampled | 200 |
| Completed and checked | 150 |
| Model and tool spend | $60 |
| Human intervention | 10 hours at $30 = $300 |
Cost per completed task = ($60 + $300) / 150 = $2.40. Completion rate = 75 percent. Cost per run, $1.80, flatters the agent because the 50 failures are spread across all runs.
Averages that hide the hard cases
An agent shows 70 percent completion overall. Split by type: password resets 95 percent, billing disputes 25 percent. The team keeps the agent on resets and moves billing disputes to draft for approval, then measures each type on its own.
Key points
- Agents are measured by finished tasks, not by messages, sessions or attempts.
- Completion rate should be checked against the real system, not the agent's own report.
- Intervention rate shows how much human work stays hidden behind the agent.
- Cost per completed task divides all spend, failed runs and human review included, by completions.
- Segment results by task type, because averages hide the hard tasks.
Common mistakes
- Reporting messages handled or sessions as the success number.
- Dividing cost by all runs instead of completed tasks.
- Leaving human review and rework time out of cost.
- Taking completion from the agent's summary instead of a system check.
Check yourself · 2 of 3
200 runs cost $360 in total including human review. 150 completed. What is the cost per completed task?
Check yourself · 3 of 3
An agent's overall completion is 70 percent. Why should you also split it by task type?
Practice items, not counted towards your mastery.
Start here
- Building effective agents (Anthropic) (opens in a new tab)ArticleFree
Separates fixed workflows from agents and says where to add human checkpoints and stop conditions.
- A practical guide to building agents (OpenAI) (opens in a new tab)ArticleFree
Covers guardrails, tool risk ratings and when to hand control back to a person.
- Levels of autonomy for AI agents (Knight First Amendment Institute) (opens in a new tab)PaperFree
Defines autonomy as a design choice with named levels, separate from how capable the model is.
More for this topic
- Measuring AI ability to complete long tasks (METR) (opens in a new tab)ArticleFree
Shows how to measure agents by tasks completed, not by messages or benchmark scores.