benchmark-models

benchmark-models is a skill for Claude Code, Codex from rjmurillo/ai-agents. It costs 104 tokens per session (2,085 once invoked), scanned A, original, MIT.

A tool for running the same prompt or skill through Claude, GPT, and Gemini and comparing their speed, usage, cost, tool calls, and optional quality scores.

In plain words
What is it for?
Use it to compare model providers, check readiness before a benchmark, and optionally save or judge the results.
Why use it?
It replaces guesswork about which model works best with results from the same task run across multiple models.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also runs codex exec. Also seen: reads .claude/ paths; names the AskUserQuestion tool; positional $N argument.

Part of the project-toolkit plugin — 95 skills, 26 commands, 33 agents, 4 hooks shipped together

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 skills/rjmurillo/ai-agents/benchmark-models
Any agent
npx skills add rjmurillo/ai-agents --skill benchmark-models
Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: Claude Code, Codex.

Or install project-toolkit, the plugin that ships this one along with the rest of its 95 skills, 26 commands, 33 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for benchmark-models

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjmurillo/ai-agents/benchmark-models.svg)](https://agentmods.dev/skills/rjmurillo/ai-agents/benchmark-models)
Your own site
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/benchmark-models"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/benchmark-models.svg" alt="Measured on agentmods" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,085 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.1 $0.00104 $0.02085
Opus 5 $0.00052 $0.01043
Sonnet 5 $0.00021 $0.00417
Haiku 4.5 $0.00010 $0.00209

Measured 2d ago against content hash e6dc6102a86b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

benchmark-models 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/model_benchmark.py, tests/test_model_benchmark.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/skills/benchmark-models/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

benchmark-models

Run the same prompt across providers and compare them on data, not vibes. The deterministic work lives in scripts/model_benchmark.py (stdlib-only, ported from gstack's bun benchmark; no SDKs, no gstack runtime). This skill is the interactive wrapper: pick a prompt, preview auth with a dry-run, confirm providers, run, interpret, optionally save.

Providers wrap existing CLIs and their own auth (no API keys needed except the optional judge):

  • claude via claude -p --output-format json
  • gpt via codex exec ... -s read-only --json
  • gemini via gemini -p ... --output-format stream-json

Triggers

Invoke this skill when the user says any of:

  • benchmark models
  • compare models
  • model shootout
  • which model is best
  • cross-model comparison

Do NOT invoke for web page performance (that is a different concern).

Preconditions

  • At least one provider CLI installed and authenticated. The Step 1 dry-run reports exactly which are ready; if none are, the skill stops.
  • The optional quality judge needs ANTHROPIC_API_KEY (adds ~$0.05/run).

Process

Resolve the driver first. In a repository checkout, use BENCH="$(git rev-parse --show-toplevel)/.claude/skills/benchmark-models/scripts/model_benchmark.py". From an installed skill copy, use the local skill path: BENCH="$PWD/scripts/model_benchmark.py" when your shell is in the benchmark-models skill directory.

Step 1: Pick a prompt and preview auth (dry-run)

Decide the prompt with AskUserQuestion:

  • A) Benchmark a skill: pass that skill's SKILL.md path as the prompt. To list candidates, search the installed skills dir, not just . (skills usually live under ~/.claude/skills/ or ~/.copilot/skills/, not the project root).

    Allowed-root constraint: $BENCH reads a prompt file only when it resolves under the repo checkout, the current directory, or a path listed in MODEL_BENCHMARK_SKILL_ROOTS (see resolve_prompt and _allowed_prompt_roots in the benchmark script). A SKILL.md under ~/.claude/skills/ or ~/.copilot/skills/ is outside the repo and cwd, so the run aborts with exit code 2 ("prompt file must be under an allowed root") and benchmarks nothing. Before running, export the skills dir, for example export MODEL_BENCHMARK_SKILL_ROOTS=~/.claude/skills (or ~/.copilot/skills), or copy the file into and run from an allowed root. A prompt already inside the repo or cwd needs no env var.

  • B) Inline prompt: pass --prompt "<text>".

  • C) A prompt file on disk: pass its path (verify it exists first).

Read the full file on GitHub · 177 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 177 lines · 104 tokens per session scan A e6dc6102a86b

Subscribe to this mod's changes

benchmark-models is a skill published in the GitHub repository rjmurillo/ai-agents (45 stars, last pushed today), licensed MIT. It adds 104 tokens to every session and 2,085 once invoked, about $0.0005 per session on Opus 5. 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-09-03.