lighteval-porter

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

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 agents/groq/openbench/lighteval-porter
Clone the repo
git clone --depth 1 https://github.com/groq/openbench

Made for: Claude Code.

Per session 305 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. 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.00305 $0.04004
Opus 5 $0.00152 $0.02002
Sonnet 5 $0.00061 $0.00801
Haiku 4.5 $0.00030 $0.00400

Measured yesterday against content hash d5159e8fc079, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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/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. yesterday 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 (813 stars, last pushed 6d ago), licensed MIT. It adds 305 tokens to every session and 4,004 once invoked, about $0.0015 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-30.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens