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.
curl -O https://raw.githubusercontent.com/groq/openbench/main/.claude/agents/lighteval-porter.mdgit clone --depth 1 https://github.com/groq/openbenchWrote 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.
[](https://agentmods.dev/agents/groq/openbench/lighteval-porter)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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:
-
Task Structure - Deep Dive:
- LightEval:
LightevalTaskConfig→ openbench:@taskdecorator returningTaskobject - LightEval:
hf_repo,hf_subset→ openbench: Dataset loading viacsv_dataset(),json_dataset(), orhf_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()withmetrics=[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
- LightEval:
-
Data Flow - Detailed Mapping:
- LightEval
Docobject: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)forSample.targetinstruction: Optional system prompt → Use withsystem_message()solver
- LightEval:
line.get("__few_shots", False)→ openbench: Build few-shot examples into prompt - LightEval:
SamplingMethod.LOGPROBS→ openbench: Alwaysgenerate()with robust answer extraction
- LightEval
-
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:
-
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_functionthat maps dataset items toDocobjects - 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
- Check the file structure: Look for task definitions in
-
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].pyif needed - Create custom scorer in
src/openbench/scorers/[benchmark_name].pyif needed - Add benchmark metadata to
src/openbench/config.py - Ensure the benchmark appears in registry via dynamic loading
- Create evaluation file in
-
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
datasetslibrary - LightEval's
Docformatting → Format intoSampleobjects with properinput/target - Handle multiple-choice formatting explicitly in the input prompt
- LightEval loads from HuggingFace → Create dataset loader using
-
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.
- 2mo ago First seen · 357 lines · 0 tokens per session scan A d5159e8fc079
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.
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.
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.
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.
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'.
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.
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…