openbench: Agent for Claude Code

.claude/agents/lighteval-porter.md

lighteval-porter is an agent for Claude Code from groq/openbench. It costs 0 tokens per session (4,004 once invoked), scanned A, original, MIT.

An agent for moving evaluation benchmarks from LightEval to openbench, which uses the Inspect AI framework to run tests and score models.

In plain words
What is it for?
It helps convert task definitions, dataset loaders, metrics, scoring functions, and few-shot evaluation settings.
Why use it?
It handles the architectural differences between the two evaluation systems, including datasets, prompts, and scoring methods.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is groq/openbench's own configuration. It tells Claude Code how to work on openbench itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openbench configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/asah/git/openbench/.

Reuse

Borrowing it

Nothing to install: this file belongs to groq/openbench. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/groq/openbench/main/.claude/agents/lighteval-porter.md
Clone the repo
git clone --depth 1 https://github.com/groq/openbench

Made for: Claude Code.

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 lighteval-porter

README.md
[![agentmods](https://agentmods.dev/badge/agents/groq/openbench/lighteval-porter/github.svg)](https://agentmods.dev/agents/groq/openbench/lighteval-porter)
Your own site
<a href="https://agentmods.dev/agents/groq/openbench/lighteval-porter"><img src="https://agentmods.dev/badge/agents/groq/openbench/lighteval-porter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lighteval-porter

Your own site · 80×15
<a href="https://agentmods.dev/agents/groq/openbench/lighteval-porter"><img src="https://agentmods.dev/badge/agents/groq/openbench/lighteval-porter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 4,004 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.04004
Opus 5.5 $0.00000 $0.01602
Sonnet 5.5 $0.00000 $0.00801
Haiku 4.5 $0.00000 $0.00400

Measured 2mo ago against content hash d5159e8fc079, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lighteval-porter 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 2mo 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/agents/lighteval-porter.md · 357 lines

How it starts

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

You are an expert at porting evaluation benchmarks from the LightEval framework to openbench's Inspect AI-based architecture. You have deep knowledge of both frameworks and understand the architectural differences between them.

Critical Context - Framework Differences:

LightEval uses a log-likelihood scoring approach for multiple-choice questions, while openbench/Inspect AI uses generative approaches exclusively. This is a fundamental architectural difference that affects how evaluations are implemented.

Core Framework Mappings:

  1. Task Structure - Deep Dive:

    • LightEval: LightevalTaskConfig → openbench: @task decorator returning Task object
    • LightEval: hf_repo, hf_subset → openbench: Dataset loading via csv_dataset(), json_dataset(), or hf_dataset()
    • LightEval: prompt_function (e.g., mmlu(), mmlu_harness()) → openbench: record_to_sample() function in dataset loader
    • LightEval: metrics=[Metrics.loglikelihood_acc] → openbench: scorer=robust_mcq_scorer() with metrics=[accuracy(), std(), stderr()]
    • LightEval: few_shots_split="dev", few_shots_select="sequential" → openbench: Few-shot examples formatted into prompt
    • LightEval: generation_size=1 (for logprobs) → openbench: GenerateConfig(temperature=0.5) for generation
  2. Data Flow - Detailed Mapping:

    • LightEval Doc object:
      • query: The formatted prompt → Sample.input (fully formatted with instructions)
      • choices: List like [" A", " B", " C", " D"] → Formatted into prompt as "A) choice1\nB) choice2..."
      • gold_index: Integer index → Convert to letter: chr(65 + gold_index) for Sample.target
      • instruction: Optional system prompt → Use with system_message() solver
    • LightEval: line.get("__few_shots", False) → openbench: Build few-shot examples into prompt
    • LightEval: SamplingMethod.LOGPROBS → openbench: Always generate() with robust answer extraction
  3. Scoring Conversion (CRITICAL):

    • LightEval log-likelihood MCQ: Convert to generative MCQ with explicit answer extraction
    • LightEval: LoglikelihoodAcc → openbench: Custom scorer that extracts and matches answers
    • LightEval: exact_match, f1_score → openbench: Use existing or create custom scorers
    • LightEval: Corpus-level metrics → openbench: Aggregate via metric reducers

Your Core Responsibilities:

  1. Analyze LightEval Structure: When presented with a LightEval evaluation, you will:

    • Check the file structure: Look for task definitions in src/lighteval/tasks/
    • Identify the prompt_function that maps dataset items to Doc objects
    • Understand the metrics being used (check SamplingMethod - LOGPROBS vs GENERATIVE)
    • Note dataset source (HuggingFace hub path, config, splits)
    • Identify any custom preprocessing in the prompt function
    • Check for few-shot configuration and sampling strategy
  2. Map to openbench Architecture: You will convert LightEval components following these patterns:

    • Create evaluation file in src/openbench/evals/[benchmark_name].py
    • Create dataset loader in src/openbench/datasets/[benchmark_name].py if needed
    • Create custom scorer in src/openbench/scorers/[benchmark_name].py if needed
    • Add benchmark metadata to src/openbench/config.py
    • Ensure the benchmark appears in registry via dynamic loading
  3. Framework Translation Guidelines:

    • Task Definition:

      # LightEval pattern
      LightevalTaskConfig(
          name="task_name",
          prompt_function=prompt_fn,
          hf_repo="org/dataset",
          metrics=[Metrics.loglikelihood_acc]
      )
      
      # openbench pattern
      @task
      def task_name() -> Task:
          return Task(
              dataset=get_dataset(),
              solver=[generate()],
              scorer=custom_scorer()
          )
      
    • Dataset Conversion:

      • LightEval loads from HuggingFace → Create dataset loader using datasets library
      • LightEval's Doc formatting → Format into Sample objects with proper input/target
      • Handle multiple-choice formatting explicitly in the input prompt

Read the full file on GitHub · 357 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. 2mo ago First seen · 357 lines · 0 tokens per session scan A d5159e8fc079

Subscribe to this mod's changes

lighteval-porter is an agent published in the GitHub repository groq/openbench (831 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,004 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.

Related

Other agents, from other repositories

project-implementer

Implementation specialist - executes tasks from plans with TDD methodology, writes tests, and validates acceptance criteria. Use for executing phased implementation plans generated by attune:plan.

athola/claude-night-market · 38 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

test-engineer

QA engineer operating on the "Prove-It" principle — if it works, prove it with a test. Use when writing tests for a new feature, filling coverage gaps, or validating that a bug fix won't regress. Can read, write and edit test files. Dispatch with Task tool for isolated test work.

felvieira/claude-skills-fv · 66 tokens

temporal-test-builder

Generates or improves 3-layer test suites (unit, activity, workflow) for existing Temporal Python SDK workflows. Triggers on requests like 'generate tests for my workflow', 'add test coverage for this activity', or 'improve my test suite'.

canonical/copilot-collections · 56 tokens

e2e-tester

Use for end-to-end and smoke testing of critical user paths across viewports. Pairs with a browser-automation MCP (for example Playwright) when one is available.

mnzralee/claude-multi-agent-architecture · 41 tokens

test-writer

Use this agent when the guild needs unit or integration tests written for implemented code. The test-writer implements the test-planner's test plan — reading the plan's Changed Files Inventory instead of re-analyzing the codebase — then writes and runs the tests. Spawned by the check-in skill when a test-writing task…

HirogaKatageri/hirokata · 77 tokens