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.
npx agentmods add agents/groq/openbench/lighteval-portergit clone --depth 1 https://github.com/groq/openbenchWhat 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 | $0.00305 | $0.04004 |
| Opus 5 | $0.00152 | $0.02002 |
| Sonnet 5 | $0.00061 | $0.00801 |
| Haiku 4.5 | $0.00030 | $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 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.
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.
- yesterday First seen · 357 lines · 0 tokens per session scan A d5159e8fc079
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.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
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.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
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.
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.
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.