Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

llm-workbench

Latest version: v0.1.1

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: skirmer
1 Versions
101 Downloads

Scan summary

llm-workbench was last scanned on 24 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 24 Nov 2026.
  • Findings: No rules fired in version 0.1.1.
  • Downloads: 101 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 24 Nov 2026 No rules fired

No rules fired in 0.1.1

Findings

Findings for v0.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Find the LLM You Need

PyPI version Python Version License: Apache 2.0

Quickstart • Install • Define a task • Run a comparison • Analyze results • Examples

Introduction

Teams often choose LLMs by vibes or minimal spot checking. Unfortunately, this process opens us up to missing real gaps in model performance or regressions, even when we're using expensive frontier models. Instead, we can apply statistical techniques to figure out which model is truly the best quality for our use cases.

The llm-workbench Python library guides data scientists and machine learning practitioners through the process of statistically evaluating multiple LLMs for performance on custom tasks, including agentic tasks. It's lightweight and flexible, but guides you on how to structure your work to get reliable and trustworthy results.

The toolkit supports the following tasks:

  • Defining your task (what your LLM needs to do)
  • Creating and calibrating evals
  • Running a small pilot study
  • Running power analysis to know how many prompts you need
  • Creating a test set of prompts
  • Running the experiment, collecting prompt/response pairs using LLMs from Anthropic, OpenAI, Ollama, or AWS Bedrock (including Bedrock Mantle)
  • Analyzing the results, selecting the best model for your use case

Install & Setup

Requires Python 3.12+.

Install it into your own project — the whole toolkit is one package with a single CLI:

uv add "llm-workbench[analysis]"        # or: pip install "llm-workbench[analysis]"

Extras keep the base install light; add the ones you need:

Install Adds You need it if…
llm-workbench Ollama + AWS Bedrock clients you only use local Ollama or Bedrock
llm-workbench[openai] OpenAI SDK you use openai/ or bedrock-mantle/ model ids
llm-workbench[anthropic] native Anthropic SDK you use the anthropic/ client
llm-workbench[analysis] pandas / scipy / statsmodels / matplotlib you run power or analyze — most users want this

Combine them as needed, e.g. uv add "llm-workbench[analysis,anthropic]".

Using conda instead of uv? It works, with a few project-specific caveats — see Installing with conda.

Everything is driven by one CLI, llm-workbench (verify the install):

llm-workbench --help

The workflow follows the sections below: define your task → create evals → run a small pilot → size the study with power analysis → build the full test set → run the comparison → analyze the results.

Read on to learn how to use it for all these steps.

Quickstart (scaffold a starter and run it)

llm-workbench init writes a tiny, self-contained example into your current directory — a general-knowledge Q&A dataset (dataset.jsonl), a prompt template (prompt.txt), and a judge eval (evals_kit/example-helpfulness/). These are yours to keep and edit, so you see the whole loop before wiring up your own task and data.

llm-workbench init          # scaffolds prompt.txt, dataset.jsonl, evals_kit/example-helpfulness/

1. Smoke test with zero credentials. The mock/echo provider just echoes the prompt, so this needs no API keys — it proves the pipeline runs end to end (no judge, so no scores):

llm-workbench run compare \
    --prompt-template prompt.txt --dataset dataset.jsonl \
    --model mock/echo --eval example-helpfulness --out-dir runs/example

2. A real local comparison with Ollama. Pull a couple of local models (ollama pull llama3.1 && ollama pull mistral), then compare them and use one as the judge to actually score answers:

llm-workbench run compare \
    --prompt-template prompt.txt --dataset dataset.jsonl \
    --model ollama/llama3.1 --model ollama/mistral \
    --eval example-helpfulness --judge-model ollama/llama3.1 --out-dir runs/example
llm-workbench analyze runs/example --reference ollama/llama3.1   # needs the `analysis` extra

From here, replace the starter with your own: write your dataset (or build one with llm-workbench dataset), create an eval with llm-workbench evals new, and — if your task needs more than filling a template — a custom --task. The repo's examples/ has custom-task templates: examples/my_task.py (minimal) and examples/org_scoped_task.py (injects per-record context and exposes derived values to the eval via aux).

A built-in task, --task llm_workbench.tasks:ReplayTask, scores an answer already stored in the record instead of calling the model under test — for calibrating the judges, regression-testing a rubric or judge-model change, or re-scoring a past run. See Replaying stored outputs.

Guided workflow with Claude Code skills

If you use Claude Code, this toolkit ships a set of skills that guide you through the whole workflow, including setup, defining a task, creating and calibrating evals, a pilot, power analysis, the full run, and the analysis. They drive the CLI and explain how to read the results, so you can lean on them instead of the manual steps below. Open your project in Claude Code and ask something like "which model should I use for my task?".

Get them one of two ways:

  • Into your project (recommended) — scaffold them alongside the starter files:

    llm-workbench init --with-skills

    This writes them to .claude/skills/, where Claude Code loads them automatically when you open the project. Re-run with --force to refresh them after upgrading the package.

  • As a plugin, shared across all your projects — install from the Claude Code plugin marketplace:

    /plugin marketplace add Nebulock-Inc/llm-workbench
    /plugin install llm-workbench

The rest of this README is the manual walkthrough the skills follow.

Defining Your Task

A task is the thing you're testing: it takes one record from your dataset, does whatever your LLM needs to do with it, and returns the answer that your evals will score. Everything downstream — the prompts you write, the evals you design, the models you compare — is in service of measuring how well different models perform this task. So it's the first thing to pin down, even though the code for it can be as little as one file (or none).

There are two ways to define a task, and most projects only ever need the first.

The default task: just a prompt template (no code)

If your task is "fill each input into a prompt and ask the model" — the common one-prompt-per-row case — you don't write any code. You write a prompt template: a plain text file with {placeholders} that get filled from each dataset record's fields. Pass it with --prompt-template.

my_prompt.txt:

You are a helpful security analyst. Answer the question using clear, specific language.

Question: {input}

{input} is filled from the input field of each record in your dataset (see Prompt Test Set Creation). Any other field on the record can be a placeholder too — {org_name}, {context}, etc. — so multi-variable prompts also need no code; just add matching fields to your JSONL. (List/dict fields are rendered as readable JSON.) That's the whole task: run compare --prompt-template my_prompt.txt ... fills the template, calls each model, and hands the answer to your evals.

A custom task: when producing the input takes extra steps

Write a custom task (a small Python class) only when getting to the answer needs steps beyond filling one template — resolving identifiers, injecting tenant/org scoping computed from an id, retrieving context, or a multi-call generate → run → summarize pipeline. A task is any class with a name and a run(record, client) -> TaskOutput method, where client is the model under test:

# my_task.py
from llm_workbench.object_types import GenerationRequest
from llm_workbench.tasks.base import TaskOutput

class MyTask:
    name = "my-task"

    def run(self, record, client):
        # 1. do any prep: resolve ids, fetch context, build the prompt from record fields
        prompt = f"Assisting {record['org_name']}.\n\nQuestion: {record['input']}"
        # 2. call the model under test as many times as your workflow needs
        resp = client.generate(GenerationRequest(prompt=prompt, max_tokens=512))
        # 3. return the answer; expose any derived values to eval prompts via `aux`
        return TaskOutput(output=resp.text, prompt=prompt, response=resp,
                          aux={"org_name": record["org_name"]})

Point run compare at it with --task my_task:MyTask (the module just needs to be importable from your working directory — --task and --prompt-template are mutually exclusive). The aux dict is how a task surfaces derived values — retrieved context, generated queries, a resolved org — so your eval rubric prompts can reference them as {placeholders} exactly like {input} and {output}.

Two runnable examples ship in the repo: examples/my_task.py (minimal) and examples/org_scoped_task.py (injects scoping and exposes aux). For the full contract — what run receives, everything TaskOutput can carry, how aux reaches your evals, and multi-step pipelines — see Complex Prompts and Custom Tasks. A built-in ReplayTask scores a pre-existing answer instead of calling the model under test (the judge model still runs), for judge calibration and re-scoring (see the Quickstart note).

Eval Creation

An eval is a folder (eval.yaml + prompt.md) describing how to score a model's output — a scoring rubric (an LLM judge picks one level) and/or deterministic checks. Evals live in evals_kit/ by default.

Create one with the guided wizard — it walks you through the rubric and the judge prompt:

llm-workbench evals new

It asks for a name, description, a rubric (a 1-5 or binary preset you can edit, or a fully custom scale), which {variables} the judge reads (usually input = the question and output = the model's answer), and any programmatic checks. It previews the files and validates before saving. To skip the prompts (e.g. in CI):

llm-workbench evals new answer-quality --labels 1-5 --yes

Manage existing evals:

llm-workbench evals list                 # table of evals, their scales, and variables
llm-workbench evals validate             # check every eval in evals_kit/ parses

Scoring options an eval can use:

  • LLM judge — a rubric of label: score pairs; a judge model reads the prompt and picks one level.
  • Programmatic checks — deterministic, no model needed: exact_match, contains, regex, json_schema, numeric_tolerance.
  • Operational — latency thresholds read from each call's metadata.

For the full eval.yaml key list, how the judge prompt is filled and scored, and each scorer's parameters, see the Eval Reference. For guidance on what evals to create and how to design good rubrics, see the FAQ.

Pilot Study

In order to know how large your full experiment needs to be for statistical significance, you'll need to run a small pilot test first.

The number of prompts you need depends on how different your candidate models actually are on your task — a gap you can't know in advance. If they're far apart, a handful of prompts settles it; if they're close, you need many more to tell them apart reliably. A pilot measures that gap in miniature, and the power analysis (next section) turns it into a concrete target sample size.

1. Make a small, representative prompt set. Hand-write or generate ~10–20 prompts that resemble production traffic (see Prompt Test Set Creation for the JSONL format and the dataset builders). It doesn't need to be large — only representative enough to estimate the models' relative quality.

2. Run the comparison on it, using the same models, evals, and judge you intend to use for the full study, so the measured effect is realistic:

llm-workbench run compare \
    --prompt-template my_prompt.txt \
    --dataset pilot.jsonl \
    --model ollama/llama3.1 --model anthropic/claude-sonnet-4-5 \
    --eval answer-quality \
    --judge-model bedrock/anthropic.claude-3-5-sonnet-20240620-v1:0 \
    --out-dir runs/pilot

This writes runs/pilot/results.jsonl, which is the input to llm-workbench power --from-run below. (Runs resume, so you can also grow the pilot later by re-running with more prompts — new prompts are appended, already-scored ones are skipped.)

A pilot is worth the cost because it uses your task and your evals; a sample size guessed from a generic effect size can be off by an order of magnitude. If you genuinely can't run one, the power tool also accepts an assumed effect size directly (see below).

Power Analysis - How Many Prompts?

Because every prompt is run on every model, this is a paired (repeated-measures) design: the unit is the per-prompt difference between models. llm-workbench power turns a difference of a given size (effect size dz = mean difference / SD of differences) into the number of prompts needed to detect it reliably. Needs the analysis extra.

From your pilot run (recommended) — size the full study from the effects you actually observed:

llm-workbench power --from-run runs/pilot --reference ollama/llama3.1

This reports, per model vs. the reference, the observed effect, the power your pilot already achieved, and the prompts needed to reach your target power — plus a recommended N for the smallest (hardest to detect) effect, since that gap sets the sample size for the whole study. Tune with --alpha (default 0.05), --power (default 0.8), and --alternative.

Without a pilot — if you can only assume an effect size, size it directly:

llm-workbench power --effect-size 0.5              # -> N prompts at alpha=0.05, power=0.8
llm-workbench power --mean-diff 0.4 --sd-diff 0.8  # dz = 0.4 / 0.8 = 0.5, so same N

Sample sizes use the paired t-test; the Wilcoxon test used in analyze is ~95% as efficient, so add a small margin if you rely on it.

Prompt Test Set Creation

Your test set is a JSONL file — one JSON object per line. input is the standard field the default task fills into your prompt template; add expected (used by checks like exact_match) and any other fields your task needs. An id gives each record a stable identity (used for resume); if omitted, one is generated.

{"id": "q1", "input": "What hunts cover LaunchAgent persistence?", "expected": "..."}
{"id": "q2", "input": "Summarize the last 24h of failed logins for acme-corp."}

Author it by hand, or build it:

From a spreadsheet (every column becomes a field):

llm-workbench dataset from-csv prompts.csv -o test_set.jsonl --id-col qid

Generated by an LLM (a starter set to review and edit):

llm-workbench dataset generate --model anthropic/claude-sonnet-4-5 \
    --instructions "security-analyst questions about threat hunts and detections" \
    -n 30 --with-expected -o test_set.jsonl

Running the Experiment

Point run compare at your dataset, list the candidate models, and choose the eval(s) to score with. Supply --judge-model to enable LLM-judge scoring.

llm-workbench run compare \
    --prompt-template my_prompt.txt \
    --dataset test_set.jsonl \
    --model ollama/llama3.1 --model openai/gpt-4o-mini --model anthropic/claude-sonnet-4-5 \
    --eval answer-quality \
    --judge-model bedrock/anthropic.claude-3-5-sonnet-20240620-v1:0 \
    --out-dir runs/experiment-1

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases llm-workbench

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229