benchmark-reference

A command for creating or updating a reference file that documents a benchmark, dataset, or evaluation task, along with its entry in the project index.

In plain words
What is it for?
Use when adding a benchmark, correcting evaluation details, enriching an existing entry, or creating a reference from scratch.
Why use it?
It keeps benchmark information in a consistent, searchable place and supports corrections, additions, and new references.

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/zayne-sprague/dr-claude-code/benchmark-reference
Clone the repo
git clone --depth 1 https://github.com/Zayne-sprague/Dr-Claude-Code

Made for: Claude Code.

Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,740 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.00031 $0.01740
Opus 5 $0.00015 $0.00870
Sonnet 5 $0.00006 $0.00348
Haiku 4.5 $0.00003 $0.00174

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

Security

Grade A, and why

benchmark-reference 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.

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/raca/benchmark-reference.md · 157 lines

How it starts

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

Handle Benchmark Reference

Reference files live at .claude/references/datasets_and_tasks/{name}.md. The index lives at .claude/references/datasets_and_tasks/datasets_and_tasks_map.md.

The argument has two parts:

  1. Benchmark name (required) — first word or quoted phrase (e.g., Countdown, "GSM8K", "SWE-bench Verified")
  2. Context (optional) — everything after the name. This is either:
    • A correction ("Countdown evaluation should check equation validity, not direct string match")
    • Additional info to merge ("add that GSM8K has 8.5K training examples")
    • Empty — means "create from scratch" or "review and enrich existing"

Step 1: Determine mode

IF reference file exists for this benchmark:
  IF context provided → UPDATE mode (apply correction / add info)
  IF no context      → ENRICH mode (research and fill gaps)
ELSE:
  CREATE mode (build from scratch)

Read the existing file if it exists. Read datasets_and_tasks_map.md to check for an entry.

Normalize the benchmark name to a filename: lowercase, hyphens for spaces, no special chars. Example: "SWE-bench Verified" → swe-bench-verified.md

Step 2: Research (CREATE and ENRICH modes)

Use web search and paper search to find authoritative sources. Prioritize:

  1. The original paper introducing the benchmark
  2. Official HuggingFace dataset page (if it exists)
  3. Official code repository
  4. Leaderboard or evaluation harness docs (e.g., lm-evaluation-harness, BigCode, HELM)

Gather enough to fill every section in the template below. If a section cannot be filled, mark it *Unknown — needs investigation*.

Step 3: Write or update the reference file

CREATE mode

Write a new file using this template:

# {Benchmark Name}

## Overview

{2-3 sentence description: what does this benchmark measure, who introduced it, why does it matter}

- **Introduced in:** {Paper title} ({Authors}, {Year}) — [{arxiv link}]({url})
- **Official HuggingFace:** [{org/dataset}]({url}) or *None*
- **Code repo:** [{org/repo}]({url}) or *None*
- **Leaderboard:** [{name}]({url}) or *None*

## Task Description

{What does the model need to do? Be specific. Include input/output format, number of examples/splits, any subtasks or difficulty levels.}

## Evaluation

### Method
{How are answers scored? Direct string match, equation equivalence, LLM-as-judge, execution-based, F1, exact match, pass@k, etc. Be precise — this is what experiment code will rely on.}

### Metric(s)
{Primary metric and any secondary metrics. Include formulas or references if non-obvious.}

### Known Pitfalls
{Common mistakes in evaluation: wrong normalization, off-by-one in pass@k, answer extraction regex failures, etc.}

## Running It

### Requirements
{Does it need Docker, a sandbox, network access, a compiler, specific packages? Is it agentic / multi-turn? How long does a typical run take?}

### Recommended Setup
{Best way to run: lm-eval-harness task name, custom script, official repo instructions, etc. Link to working configs if available.}

### Prompt / Few-Shot Format
{Reference prompt template or describe the standard format. Include few-shot count if conventional. If there's a canonical prompt, quote it in a code block.}

## Typical Results

{Brief table or notes on SOTA / baseline performance ranges so we know if our numbers are in the right ballpark.}

| Model | Score | Source |
|-------|-------|--------|

## Setup Checklists

Context-specific questions to resolve BEFORE writing code. These prevent common mistakes and wasted compute by surfacing ambiguities early. Not every benchmark needs all three sections — include only those that apply.

### For Evaluation
{Bulleted list of questions you should answer before writing an evaluation script for this task. Focus on: answer extraction, scoring edge cases, metric configuration, dataset split selection, prompt format.}

### For Distillation / Data Generation
{Bulleted list of questions you should answer before generating training data from this task. Focus on: output format, trace style, filtering criteria, dataset size, deduplication, quality checks.}

### For RL Training
{Bulleted list of questions you should answer before setting up an RL training run with this task as the reward signal. Focus on: reward function design, format reward, partial credit, hyperparameter choices tied to the task, known failure modes.}

## Notes

{Anything else: known dataset contamination issues, version differences, community conventions, licensing.}

Read the full file on GitHub · 157 lines

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 · 157 lines · 31 tokens per session scan A fd2d07f35492

Subscribe to this mod's changes

benchmark-reference is a command published in the GitHub repository Zayne-sprague/Dr-Claude-Code (5 stars, last pushed 5mo ago), licensed MIT. It adds 31 tokens to every session and 1,740 once invoked, about $0.0002 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-08-31.