benchmark

A command for running a TAU-bench evaluation, a test that measures how well an AI agent handles tasks, and showing the results.

In plain words
What is it for?
Use it to run baseline, comparison, or ACE-only evaluations with a selected model profile and optional command-line settings.
Why use it?
It removes the need to assemble the evaluation command, wait for the run, find the newest result file, and read its summary manually.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/kayba-ai/agentic-context-engine/benchmark
Clone the repo
git clone --depth 1 https://github.com/kayba-ai/agentic-context-engine

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 616 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00616
Opus 5 $0.00000 $0.00308
Sonnet 5 $0.00000 $0.00123
Haiku 4.5 $0.00000 $0.00062

Measured yesterday against content hash 5e6ef464b104, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

benchmark scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/benchmark.md · 62 lines

What it actually says

Run a TAU-bench evaluation end-to-end and present results.

Syntax: /benchmark <config> [mode] [extra-args]

Arguments:

  • config (from $ARGUMENTS, first word) — profile name: haiku, sonnet, gpt4.1-mini, gpt4.1, fast, default
  • mode (from $ARGUMENTS, second word, optional) — baseline (default), compare, or ace-only
  • extra-args (from $ARGUMENTS, remaining words) — forwarded verbatim to the CLI

Workflow:

  1. Parse arguments from $ARGUMENTS:

    • Split into: config (first word), mode (second word if it matches baseline/compare/ace-only, else default to baseline), and extra-args (the rest)
  2. Build the command:

    uv run python scripts/run_tau_benchmark.py --config <config> --save-detailed <mode-flag> <extra-args>
    

    Mode flags:

    • baseline--skip-ace
    • compare--compare
    • ace-only → (no flag)
  3. Show the command to the user before running

  4. Run the command with a 10-minute timeout (TAU-bench runs are long)

  5. Find the latest result: list tau_benchmark_results/ sorted by modification time, pick the newest *_summary.json

  6. Read the summary JSON and present results using this format:

    For baseline runs:

    ## <Mode>: <Model Short Name> — <Domain> (test split, k=<k>)
    
    | Setting | Value |
    |---------|-------|
    | Model | <exact model id> |
    | User LLM | <user_llm> |
    | Domain | <domain> |
    | Split | <split> (<N> tasks) |
    | Max steps | <max_steps> |
    | Seed | <seed> |
    
    | Metric | Score |
    |--------|-------|
    | pass^1 | XX.XX% |
    | pass^2 | XX.XX% |
    | ... | ... |
    

    For comparison runs, add Baseline / ACE / Delta columns.

Examples:

  • /benchmark haiku → baseline haiku run
  • /benchmark haiku compare → baseline vs ACE comparison
  • /benchmark fast → quick smoke test (3 tasks, k=1)
  • /benchmark sonnet compare --domain retail → sonnet comparison on retail

Key fields to always include in the results table: exact model ID, user LLM, domain, split + task count, skillbook status, and all pass^k metrics.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 62 lines · 0 tokens per session scan A 5e6ef464b104

Subscribe to this mod's changes

benchmark is a command published in the GitHub repository kayba-ai/agentic-context-engine (2,560 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 616 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.