CAUTION
Run the successor, not this repo. sierra-research/tau-bench is frozen: its last functional commit was August 2025, and in March 2026 its maintainers added a README warning that its airline and retail tasks are outdated, pointing users to the successor line at sierra-research/tau2-bench 1. Its 1.x line shipped as τ³-bench (release v1.0.0, March 2026; v1.0.1, July 2026), which added a banking_knowledge domain, full-duplex voice evaluation, and 75-plus task-quality fixes across its domains 2. "τ³" names that release line, not a repository: there is no tau3-bench repo, and the URL is unchanged. The current release is τ-bench 2.0.0 (2026-10-19). It adds five languages beyond English (six language packs in all) and an intake domain, swaps 50 of the 114 tasks in each of the English retail and telecom domains for reviewed replacements under the same IDs, and moves communication checks to an LLM judge; the maintainers state that 2.0 scores are not comparable with 1.x and point to the v1.0.1 tag for 1.x-comparable numbers, shown on a separate leaderboard tab 3. This recipe pins v1.0.1 for that reason: a retail run on it uses the same tasks and graders as the 1.x leaderboard. Record the tag either way; the maintainers also state that banking_knowledge results before and after v1.0.1 are not comparable.
τ-bench is the cleanest available benchmark for "does the agent actually get the job done across multiple trials" because it ships two production-shaped domains (retail and airline), a deterministic state checker, and a user-simulator strategy that makes the conversation reproducible 4. The reason this recipe exists is the consistency story: the paper shows that agents that solve a task once routinely fail it when you ask for the same result across several trials. That is pass^k, and pass^k is the headline metric for any product where consistency matters more than peak capability.
This recipe runs the retail subset against your agent (any agent that conforms to the τ-bench interface). It reports pass@1, pass^4, average steps, and the cost per trajectory. The goal is to make the consistency drop visible: if your agent posts 70% pass@1 but 20% pass^4, you have a flaky agent, not a low-skill agent.
Background: what pass^k catches
Pass@1 is the fraction of times the agent solves the task in one trial. Pass^k is the fraction of times the agent solves the task in all k trials.
If the agent is a fair coin per attempt, pass^k decays geometrically as p^k. A 0.70 pass@1 collapses to 0.24 at pass^4. The τ-bench paper documents this for the strongest agent it tested: GPT-4o with function calling averages above 60% task success on retail, and its pass^8 falls below 25% 4. The original repository's leaderboard shows the same shape at k=4: GPT-4o function calling on retail posts 0.604 pass^1 and 0.383 pass^4 1. The implication is operational: for any product that runs the same agent more than once per user, the metric that predicts user experience is pass^k, not pass@1. Anthropic's agent-eval guide draws the same line, pass@k for tools where one success is enough and pass^k for customer-facing agents where users expect reliable behavior every time 5. The leaderboard tables on taubench.com list pass^1 (as of 2026-11-07), so the consistency number has to come from your own multi-trial runs 6.
For the 1.x line, the maintainers publish both numbers side by side in the v1.0.1 release note, which re-graded the leaderboard trajectories for banking_knowledge after its grading fixes. Five rows of that table, after the fix, show the same shape at k=4 on a current domain 7:
| Model (as labeled in the release) | pass^1 | pass^4 |
|---|
| gpt-5-5 | 46.39 | 27.84 |
| gpt-5-4 | 39.43 | 21.65 |
| claude-opus-4-7 | 30.15 | 15.46 |
| gemini-3-flash | 27.32 | 7.22 |
| grok-4-fast | 15.72 | 4.12 |
The release counts infrastructure-error simulations as failed trials when it computes pass^k, which is the leaderboard convention; match it, or say that you did not, when you compare your own pass^4 to these.
Figure: pass@1 vs pass^k on the same 8 trials: the agent runs each of two tasks 4 times, pass@1 averages per-trial success (7/8 = 0.88), while pass^4 requires all 4 trials of a task to pass, so Task A's single failed trial drops the score to 1/2 = 0.50.
Step 1: install the successor
# The successor line. tau-bench itself is frozen; this is where the maintained tasks live.
git clone https://github.com/sierra-research/tau2-bench.git
cd tau2-bench
git checkout v1.0.1 # pin the tag and record it in your run metadata
uv sync # the documented install path; needs Python 3.12 or 3.13
export OPENAI_API_KEY=... # required: the NL-assertion grader is an OpenAI model
# export ANTHROPIC_API_KEY=... # add this too if the agent or user simulator is a Claude model
The package installs as tau2 with a tau2 CLI. Domains today are mock, airline, retail, telecom, and banking_knowledge; this recipe uses retail. The original two domains were retail and airline. Each ships a tool spec, a user simulator, and a set of tasks with deterministic state-check functions 8.
Step 2: pick a subset
The full retail set is 114 tasks at v1.0.1. At pass^4 you run each task four times, so the full set is 456 trajectories. That is too many for a smoke test. Start with the first 20 tasks (80 trajectories), and price a single task first (see Cost control).
# 20 retail tasks, 4 trials each, seeded. The CLI computes pass^k for you.
tau2 run --domain retail \
--agent-llm openai/gpt-6-luna \
--agent-llm-args '{"reasoning_effort": "none", "allowed_openai_params": ["reasoning_effort"]}' \
--user-llm openai/gpt-6-luna \
--user-llm-args '{"reasoning_effort": "none", "allowed_openai_params": ["reasoning_effort"]}' \
--num-tasks 20 --num-trials 4 --seed 42
Pass --user-llm explicitly: τ-bench conversations are agent against user simulator, the simulator model is part of your experimental setup, and the CLI otherwise falls back to gpt-4.1-2025-04-14 for both sides 8. Pin it and record it with the tag; changing the user simulator changes the numbers as surely as changing the agent.
The grader has no flag. On v1.0.1, 40 of the 114 retail tasks carry natural-language assertions, including tasks 2, 3, 4, 16, and 19 in this recipe's first 20, and the evaluator scores them with DEFAULT_LLM_NL_ASSERTIONS from src/tau2/config.py, which is hardcoded to gpt-4.1-2025-04-14 at temperature 0; tasks without assertions score that component 1.0 with no model call 8. So a retail run needs an OpenAI key even when the agent and user simulator are Claude models, and after OpenAI removes that model on January 14, 2027 those 40 tasks cannot be graded as shipped. If you have to run past that date, edit the constant (and its DEFAULT_LLM_NL_ASSERTIONS_ARGS) in your checkout, record the patch with the tag, and report the result as v1.0.1 with a substituted grader: it is no longer comparable with the published 1.x numbers.
The model choice is not a reproduction of any published configuration. OpenAI removes gpt-4.1-2025-04-14 and gpt-4o-2024-08-06 (the model earlier versions of this recipe used) from the API on January 14, 2027, and lists gpt-6-luna as the replacement for both 9. GPT-6 Luna supports function calling in Chat Completions, the API the v1.0.1 harness reaches through LiteLLM, only with reasoning_effort set to none 10. Checked offline in a fresh venv on 2026-11-07, the LiteLLM release that v1.0.1 locks (1.81.11) does not treat reasoning_effort as a supported parameter for this model, and because the harness sets litellm.drop_params = True it drops the value silently instead of raising, so the request would reach OpenAI without it. Listing it in allowed_openai_params keeps it, hence the second key. The JSON replaces the CLI's default {"temperature": 0.0}, so trials sample at the model's default temperature, which is what pass^k needs.
The run writes per-trial result records to data/simulations/<run_name>/results.json plus a metrics summary that includes pass_hat_ks, the pass^k estimates, so on the successor the metric arrives computed. Step 3 exists anyway, because you should be able to defend the definition when someone asks what the number means, and because the same aggregation applies to any per-trial records your own harness produces.
Step 3: compute pass@1 and pass^k
The successor's results.json holds a simulations list whose entries carry task_id, trial, reward_info.reward, agent_cost, user_cost, and messages 8. The script below reads that shape; for the original harness's flat one-record-per-trial file, replace the loading loop. We aggregate:
"""Compute pass@1 and pass^k from a τ-bench results file."""
import json
from collections import defaultdict
from pathlib import Path
import sys
import pandas as pd
results_path = Path(sys.argv[1])
sims = json.loads(results_path.read_text())["simulations"]
# One row per (task, trial). A simulation with no reward_info (an
# infrastructure error) counts as a failed trial, the leaderboard convention.
# The CLI's own pass_hat_ks drops those runs instead, so the two differ on
# any run with infrastructure errors.
records = [
{
"task_id": s["task_id"],
"reward": (s.get("reward_info") or {}).get("reward", 0.0),
"total_cost": (s.get("agent_cost") or 0.0) + (s.get("user_cost") or 0.0),
"num_messages": len(s.get("messages") or []),
}
for s in sims
]
# Group by task_id; each task should have k trials.
by_task: dict[str, list[bool]] = defaultdict(list)
for r in records:
by_task[r["task_id"]].append(r["reward"] >= 1.0)
k = max(len(v) for v in by_task.values())
n_tasks = len(by_task)
# pass@1: per-trial success rate, averaged over every trial of every task.
trial_successes = [t for v in by_task.values() for t in v]
pass_at_1 = sum(trial_successes) / len(trial_successes)
# pass^k: fraction of tasks where ALL trials succeeded.
pass_k = sum(all(v) for v in by_task.values() if len(v) == k) / n_tasks
print(f"Tasks: {n_tasks}, trials per task: {k}")
print(f"pass@1 = {pass_at_1:.3f}")
print(f"pass^{k} = {pass_k:.3f}")
print(f"consistency gap = {pass_at_1 - pass_k:.3f}")
# Cost and length summary. Costs are LiteLLM's estimates for the agent and
# user simulator; the NL-assertion grader's calls are not included.
df = pd.DataFrame(records)
print(f"total cost USD = {df['total_cost'].sum():.2f}")
print(f"cost/trial USD = {df['total_cost'].mean():.3f}")
print(f"mean messages = {df['num_messages'].mean():.1f}")
Run it:
python compute_metrics.py data/simulations/<run_name>/results.json
Example output for a 20-task, four-trial run (illustrative; your numbers and costs will differ):
Tasks: 20, trials per task: 4
pass@1 = 0.488
pass^4 = 0.150
consistency gap = 0.338
total cost USD = 12.40
cost/trial USD = 0.155
mean messages = 24.6
The consistency gap is the headline. A 34-point drop from pass@1 to pass^4 says the agent solves the task slightly better than half the time on any single attempt but reliably solves it across four attempts only 15% of the time. That gap is the cost of inconsistency the τ-bench paper warns about 4.
Step 4: read the failure modes
The per-trial transcripts are in the same results.json, and tau2 view browses them. Open the ones where pass@1 was high but pass^k was zero. These are the tasks the agent could solve sometimes but not reliably. The paper's failure analysis of 115 GPT-4o function-calling retail trajectories names three patterns that recur 4:
- Wrong argument or information. The agent calls the right tool with slightly wrong arguments (truncated order id, wrong shipping address format). Symptom: tool calls error or return mismatched results.
- Incorrect decision-making and rule following. The agent ignores a domain rule (return windows, refund limits) on some trials but not others. Symptom: tool calls succeed but the final state violates a rule.
- Partial resolution of compound requests. The user asks for more than one thing, the agent finishes one and says the task is complete. Symptom: trajectory ends short, state check fails.
Each pattern has a different fix and you only see the pattern if you read the trajectories. The trace viewer for τ-bench output is roughly the structure described in the data viewer chapter.
Step 5: compare two agent scaffolds
The τ-bench paper's method comparison makes the point that "the agent" is the model plus the scaffolding (system prompt, tool spec, retry logic): the same models score differently under native function calling, ReAct, and Act-only, with function calling ahead of the text-formatted methods 4. Use the harness to compare your own variants:
# Baseline: bare tool-calling agent.
python run_subset.py --model openai/gpt-6-luna --trials 4
# Variant: same model, with an extra "rule-check" planning step.
# Implement in tau_bench/agents/your_agent.py and register.
python run_subset.py --model openai/gpt-6-luna --trials 4 \
--agent-strategy planning-rule-check
Read the metrics for both, and judge the variant by whether the consistency gap shrinks, not by pass@1 alone. Do not assume an extra reasoning step helps: the paper found that adding a "think" function to function-calling agents did not boost performance, although reasoning traces did help text-formatted agents 4. Anthropic's "Building Effective Agents" makes the tooling-side point: keep the design simple until added complexity demonstrably improves outcomes, and put as much effort into the tool interface as into the prompt 11. On the successor, register your agent class and select it with --agent <name> instead of using the script and path shown above; the Agent Developer Guide in the repository covers registration 8.
Cost control
Price a run before you launch it: run one task with --num-trials 4, read agent_cost and user_cost from its results.json, add the grader's OpenAI calls for tasks with NL assertions (they are not in those fields), and multiply by the task count. A 20-task pass^4 is 80 trajectories and the full retail set is 456, so the full set costs roughly 5.7 times the subset. Two ways to keep cost bounded.
- Pin a "smoke 10" subset for every PR. Run the full 114 nightly.
- Cap steps per trial, and know what a step is: the original harness stopped a task at 30 agent actions, while the successor's
--max-steps defaults to 200 on the v1.0.1 CLI 8. Read a few successful trajectories to calibrate a sane cap for your model before trusting any stuck-run heuristic.
If you are cost-bound, run k=2 in CI and k=4 nightly. Pass^2 is a weaker but cheaper consistency signal.
What this skips
This recipe runs the public benchmark. It does not build a domain-specific harness for your own tools, which is the bigger payoff and which is covered in the long-horizon planning task type. It does not compute trajectory-level rubrics (does the plan justify the calls?), which is covered in trajectory-vs-outcome. For tool-call argument correctness specifically, BFCL is a better choice than τ-bench because it scores AST equivalence directly 12. The Moshkovich observability paper is the right reading for putting trajectory-level evals into production 13.
TIP
Once you have a domain-shaped tool spec, write 20 of your most-common multi-step user flows as τ-bench-style tasks. Encode each completion check as a Python function. That set is the highest-impact golden set you can own.
What to do next
The pass^k chapter covers the math. The trajectory-vs-outcome chapter covers why outcome-only scoring misses scaffolding bugs. The SWE-bench Verified walkthrough is the autonomous-coding analog of this recipe.