Run benchmark

From Melvynx/benchmarks · View interactive version

Run benchmark is an AI agent skill from the GitHub repository Melvynx/benchmarks. Run reproducible coding-model benchmarks from a model name, CLI harness, and task list, or build comparison pages from results that already exist. Use when creating, executing, resuming, verifying, or comparing benchmark runs with Codex, Claudex via ccx, Claude Code, Cursor Agent, or OpenCode in thi

How to use this skill

Skill file

Run Benchmark

Create one independently resumable session per task. Put the app in benchmarks/<task>/<YYYY-MM-DD>-<harness>-<model>/ (with -2, -3, and so on for repeated identical runs) and final/global evidence in runs/<run-id>/data/. Every invocation gets a unique benchmark_id; a Markdown plan generates it once and shares it across every enabled model/task run so the comparison UI can recover the exact benchmark group.

Reuse first

When asked to compare models, build a comparison page from existing apps. Do not invoke any model unless the user explicitly asks for a run or rerun ("lance", "rerun", "relance", "run again"). Report missing cells instead of filling them.

.agents/skills/run-benchmark/scripts/create-comparison.mjs \
  --models 'claude-opus-5-5:xhigh,gemini-4-argon@cursor-agent:high' \
  --tasks all \
  --title 'Opus 5.5 vs Gemini 4 Argon'

Workflow

  1. Read references/task-catalog.md for task names, application types, and seed sources.
  2. Read canonical prompts locally from <benchmark-repository>/prompts/<slug>/ (or BENCHMARK_PROMPTS_DIR when explicitly overridden). Select the numerically highest v<number>.md, including uncommitted local versions, and fail closed if the version is missing. Save the exact local file path, https://benchmark.melvynx.dev/prompts/<slug>/<version>, and prompt in the immutable run snapshot; do not fetch either website.
  3. Confirm the requested model exists in the chosen harness when the harness exposes a model catalog. Never substitute a model silently.

Every benchmarked model must have a price in the comparison UI. Before the first run of a new model, add its official per-MTok rates (input, cache read, cache write, output) to benchmark-compare/src/lib/model-pricing.ts with a test in model-pricing.test.ts. run-benchmark.sh refuses unpriced models. After a run, confirm the run page shows a dollar cost for every model, not "Not recorded".

  1. Run:

```bash

.agents/skills/run-benchmark/scripts/run-benchmark.sh \

--model '<model-name>' \

--harness '<codex|ccx|cc|cckimi|cursor-agent|opencode>' \

--tasks '<task-a,task-b>' \

--effort '<level>'

```

Or run a reusable Markdown plan:

```bash

.agents/skills/run-benchmark/scripts/run-benchmark-plan.sh \

benchmark-plans/<plan-name>.md

```

  1. Inspect the printed run directory and each verification.json. A completed process is not proof unless the transcript is valid, a session ID was captured, and a non-empty final response was captured.
  2. Run scripts/verify-benchmark-run.sh <run-dir>... for task-appropriate build/runtime checks, then scripts/validate-benchmark-run.sh <run-dir>... as the deterministic final gate.
  3. Resume a task using its generated resume-command.sh; append new output to a new transcript file rather than overwriting the original.
  4. When a one-shot result fails verification, send a neutral fix prompt with scripts/iterate-benchmark-task.sh <run-dir>/data/<task> <prompt-file>. It resumes the same session inside the original isolated workspace and records iterations/<n>/ with prompt, transcript, timing, and usage. Keep the one-shot score separate and list every iteration prompt and cost in the plan's ## Iterations notes.

Modes

Markdown plans

names against references/task-catalog.md. Treat

a missing newly-added task as a runner bug to fix before the run starts.

Constraints

self-test or a single first-frame screenshot as visual proof. Exercise the

real browser state across representative interactions, timeline positions,

scenes, or viewport sizes; if the browser render fails after a self-test

passes, preserve that as the model result.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.