PluginBench
Are these skills, plugins, or instructions worth using?
PluginBench gives a coding agent the same tasks in several arms: one with no added guidance ("vanilla"), and one for each set of guidance you want to test. The harness, model, reasoning effort, and tasks stay fixed, so the guidance is the only difference. It then compares correctness, tokens, and the code each attempt added.
What you get
- Arms. Vanilla is always included. Each treatment is a named set of instruction files, skills, or plugins that you declare in the config. Every treatment is compared with vanilla.
- Attempts. Each task runs once per arm and repeat, in a fresh Docker container, through Harbor 0.24.0. Each attempt passes or fails: the task's own verifier grades the submitted patch without the agent's own test files. A timeout or agent error is graded with that attribute. An attempt that cannot be graded is an infrastructure error: it counts in no total, and
pluginbench run <run-dir>codes or grades it again, with at most three calls for each attempt slot. Correctness. - Measures. You select them in the config:
| Measurement | What it counts | Extra requirement |
|---|---|---|
tokens |
Input, cached, output, and reasoning tokens, and coding time | None |
lines |
Source and test lines added and removed | None |
cyclomatic, cognitive |
Complexity the attempt added | An analyzer for the task's language |
dead_code |
Unused code the attempt introduced | An analyzer for the task's language |
coverage |
How much of the added code the attempt's own tests run | A coverage command for the task image |
review |
Findings from an independent AI review with fixed criteria | A reviewer block in the config |
- Report.
runs/<run>/report/report.htmlcompares the arms, with each task one click away.results.jsonholds the metrics and deltas against vanilla.results.csvholds each measurement. Failed attempts and missing measurements stay visible.
When a task ships a reference solution (solution/solution.patch), code measures are also shown as a ratio to that reference. What each measure means.
Requirements
PluginBench executes on Linux only: run, check, review, measure and judge run refuse on a host without a reachable systemd user manager, which includes macOS and most containers. Commands that only read saved results, such as status, compare and dashboard, do not need it. Every run needs:
| Tool | Version | Why |
|---|---|---|
| systemd | 255 or later, with a user manager for your account (systemctl --user is-system-running prints running or degraded) |
Each run and each call runs in its own transient scope, so it outlives the terminal that started it and is stopped completely |
| cgroup v2 | Mounted at /sys/fs/cgroup |
Proves a scope's processes are gone before the next command starts |
| Python | 3.12 or later | Runs PluginBench |
| Git | Any recent | Task sources and patches |
| Docker | Linux containers on a local Unix socket, with Compose and Buildx | Each attempt and its verifier run in containers |
| Codex CLI | Logged in; verified trace versions: 0.162.1, 0.167.0, 0.167.1, 0.167.2 | Coding agent for runner.harness: codex. PluginBench copies its login from ~/.codex/auth.json to the pinned container CLI. Unverified versions warn and continue; incompatible traces or unverified inherited history leave tokens unavailable. |
| Claude Code CLI | Only for runner.harness: claude; qualified version: 2.1.322 |
Coding agent. Write your subscription token, such as one from claude setup-token, to ~/.config/secrets/claude-oauth-token (mode 600), or set CLAUDE_CODE_OAUTH_TOKEN; API keys are refused for coding, reviews, and judges. Other versions warn and continue. The host CLI is needed only when runner.cli_version is omitted. |
Set runner.cli_version: "0.167.0" (Codex) or "2.1.322" (Claude Code) to select the exact coding CLI version installed in task containers.
When omitted, preparation pins the host CLI's version. Resume keeps that pin across host CLI updates.
Independent reviews use the host CLI. See verified coding CLIs for credential compatibility, and Claude Code coding for the Claude launch and token rules.
Some measures and commands need more:
| Needed for | Tool |
|---|---|
| JS/TS complexity and dead code | Node (this repository pins 22.20), Corepack, and Fallow 3.18.0 |
| Python, Go, Rust analysis | Pinned analyzers; see Measurements |
coverage |
A coverage command that the task image supports |
Analysis measures that run on the host, and review |
Bubblewrap (bwrap on PATH) on Linux, or sandbox-exec on macOS |
pluginbench tasks pick |
fzf, and for --copy a clipboard tool (pbcopy, wl-copy, xclip, or xsel) |
Install
pipx install pluginbench
pluginbench --version
uv tool install pluginbench works too. Either one also installs Harbor 0.24.0. If your default Python is older than 3.12, add --python python3.12.
To change PluginBench itself, install from a clone instead:
git clone https://github.com/filipgutica/pluginbench.git
cd pluginbench
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
Quickstart
This run uses one public DeepSWE task, vanilla only, and one repeat. It needs no private input.
-
Save this as
evaluation.yaml:name: First run runner: harness: codex model: gpt-6.1-sol reasoning: medium treatments: {} # vanilla only tasks: urls: - https://github.com/datacurve-ai/deep-swe/tree/0b9fabbb63b9104d678fe965e1632f2dd9eaa2ea/tasks/testem-per-launcher-reports measurements: [tokens, lines] repeats: 1
-
Run every check that needs no model:
pluginbench check evaluation.yaml
This downloads and prepares the task, checks Docker capacity, the Codex version, and the verifier, then prints a readiness table. It shows whether each vanilla attempt is already cached, writes
runs/check-<timestamp>/check.json, and exits with code 2 if the run would fail or lose data. If it reports thatjobsexceeds Docker capacity, addjobs: 1to the config or give Docker more CPU and memory. -
See the plan and the call count:
pluginbench run evaluation.yaml --dry-run
The
Coding attemptsline shows one attempt for this config. It counts attempts, not model requests: subagents are on by default, so one attempt can make several requests. -
Start the run. This makes paid model calls with your Codex login.
pluginbench run evaluation.yaml
runprints the plan and asksStart evaluation?(--yesskips the question; in a script with no answer to give, pass--yes). It then runs the same checks ascheck, starts the run in the background, and prints the run directory, for exampleruns/20261110T101500123456Z. -
Follow it:
pluginbench status runs/<run> --watch
statusshows the phase, attempts and outcomes per arm, tokens, vanilla reuse, and measures. It never writes. For a local web page of every run under a folder, runpluginbench dashboard runs; it also only reads. -
Open
runs/<run>/report/report.htmlwhen the phase iscomplete.
Paths under runs/ are relative to the directory where you run the command. For a fuller template, pluginbench init template.yaml writes a starter config with /path/to placeholders to replace.
Test your own guidance
A treatment is the guidance you want to test. It can be instruction files, skills, plugins, or a mix. Every treatment runs on the same tasks as vanilla, so you can see what each one changes.
-
Put the guidance next to your config. Paths in the config are relative to the config file.
my-eval/ ├── evaluation.yaml ├── AGENTS.md # instructions: UTF-8 .md or .txt files, 32 KiB in all ├── skills/ │ └── write-tests/ │ └── SKILL.md # a skill └── review-plugin/ ├── .codex-plugin/ │ └── plugin.json # a Codex plugin └── skills/ └── self-review/ └── SKILL.mdEach
SKILL.mdstarts with YAML front matter that has a kebab-casenameand adescription:--- name: write-tests description: Add focused tests for every behaviour you change. --- Write one test per changed behaviour. Run it and confirm it fails without your change.
A plugin needs a manifest with a kebab-case
name. Its skills go inskills/:{ "name": "review-plugin", "version": "0.1.0", "description": "Review your own diff before you finish." }
-
Declare one treatment per thing you want to compare:
name: Guidance comparison runner: harness: codex model: gpt-6.1-sol reasoning: medium treatments: instructions: guidance: [./AGENTS.md] test-skill: skills: [./skills] # one skill folder, or a folder of skills review-plugin: plugins: [./review-plugin] tasks: urls: - https://github.com/datacurve-ai/deep-swe/tree/0b9fabbb63b9104d678fe965e1632f2dd9eaa2ea/tasks/testem-per-launcher-reports measurements: [tokens, lines] repeats: 1
One treatment can also combine them, for example
guidanceandskillstogether. -
Check it, then look at the plan:
pluginbench check evaluation.yaml pluginbench run evaluation.yaml --dry-run
The plan lists the arms
vanilla, instructions, test-skill, review-pluginand 4 coding attempts: one per arm, task, and repeat. Add tasks andrepeats: 3or more before you trust a difference. -
Run it with
pluginbench run evaluation.yaml, as in the quickstart. The report compares each treatment with vanilla.
Treatments work with both harnesses. Instruction files become the agent's private AGENTS.md (Codex) or CLAUDE.md (Claude Code); they are never added to the task prompt or to the repository. Skills and plugins are copied whole, including their scripts, except Git internals; symlinks, special files, and .env files are refused. Skill dependencies, MCP servers, apps, custom agents, commands, plugin dependencies, and hooks other than synchronous command hooks are not supported yet, and a treatment that declares one stops the run before any model call. Claude Code refuses more plugin parts, such as commands/, and admits plugin agents/ only in a restricted form; see Claude Code treatments. Before coding, PluginBench checks that the coding CLI found every declared skill. That proves the skill was available, not that the agent used it. Native treatments.
Commands
Every setting lives in the config. Flags only control how a command runs.
| Command | What it does | Model calls |
|---|---|---|
init [path] |
Write a starter config; never overwrites | No |
check <config> |
Prepare tasks and run every check that needs no model | No |
run <config> |
Start a run; --dry-run shows the plan, --foreground stays in the terminal, --notify sends desktop notifications |
Yes |
run <run-dir> |
Resume a stopped or crashed run | Yes |
status <run-dir> |
Show progress; --watch redraws, --json prints one object |
No |
stop <run-dir> |
Stop the run's own process group | No |
report <run-dir> |
Rebuild the report from saved evidence | No |
review <run-dir> --revision <name> |
Review every submission again with the same reviewer | Yes |
compare <run-dir>... --gates <file> |
Print measure and gate tables across runs | No |
tasks pick --dataset <name> |
Choose tasks with fzf and print a pinned tasks: block |
No |
judge prepare, judge run, judge tally |
Blind pairwise judging of two arms | judge run only |
Configure an evaluation
Tasks. Use one source: a Harbor dataset with version and ids, GitHub task-folder urls, or a local source with ids. PluginBench accepts single-step Harbor tasks with a Linux CPU environment and a separate verifier. To browse DeepSWE, run pluginbench tasks pick --dataset datacurve/deep-swe-1-1 --copy, press Tab to select several tasks, and paste the YAML it prints. Choose inputs.
Treatments. Each treatment lists guidance (instruction files), skills, or plugins; see Test your own guidance. The task prompt is the same for every arm. A plugin command hook makes the attempt's total usage unknown unless the hook is listed under audited_hooks; see Audited command hooks.
Measurements. Before any paid call, PluginBench runs each selected collector twice on the starting code. A measure with no collector for a task is not_configured, and one whose collector fails its probe is broken. That task is then not measured for it, and the run continues, as long as another task can measure it. A measure that is ready on no task stops the run. With measurement_settings.max_not_ready_share: "1/3", a measure that is not ready on more than a third of the tasks stops the run too. With measurement_settings.require_ready: true, any such task stops the run. Selecting review requires a reviewer block. Measurements.
Concurrency. jobs defaults to 2 and accepts 1 or 2, the task jobs one host runs at once. A value above that, or above Docker capacity, fails the check; PluginBench does not lower it. Concurrency and resume.
Stop, resume, and reuse
pluginbench stop runs/<run>stops new attempts. Attempts already coding finish and are kept, including withjobs: 1. Resume never codes complete attempts again.pluginbench resume runs/<run>, orpluginbench run runs/<run>, resumes. A run that was killed, for example by a host shutdown, showsinterrupted, andstatusprints this command. Complete attempts are kept and never coded again. An attempt cut off mid-call is recorded asdiscarded-interruptedand a new attempt takes its slot. Containers the killed attempt left running are stopped before coding resumes, andstatusnames them until then. Resume cannot repair a failing solution.- If Codex or Claude Code fails before its first model turn, for example during a network outage, a CLI startup error, or a timeout with no model turn, the run stops instead of scoring the attempt. Resume when the CLI can reach its model.
- A run coded before grade contract 1 is legacy:
statusandreportread it, butpluginbench runrefuses to code more of it. Start a new run; its vanilla cache entries are still reused. - If a Claude Code or Codex session stops at a usage or rate limit, an authentication failure, or a provider error that retries did not recover, the run also stops instead of scoring the attempt. Resume after the limit resets. Concurrency and resume.
- Vanilla attempts are cached in
$XDG_CACHE_HOME/pluginbench(default~/.cache/pluginbench) and reused by any later run with the same task, model, and settings. Grading and measures run again. Reports mark reused attempts. Claude Code attempts are cached under their own key, for Claude Code 2.1.322 only. Baselines and reports.
Compare and judge
pluginbench comparereads saved reports and applies gates you define, such as "no fewer passes than vanilla" or "at most 1.3 times the tokens". Compare runs.pluginbench judgeasks blind judges to choose between two arms' submissions for the same task and repeat. Judging.
Limits
- A pass means the task's verifier passed on the submitted source without the agent's tests. Task checks do not prove that every behavior is preserved.
- The correctness alarm is a gate such as "no fewer passes than vanilla". Runs from before grade contract 1 are labelled legacy and have no grade.
- Discovery proves that a skill was available, not that the model used it.
- Smaller numbers alone do not prove better work. Coverage does not prove that assertions are useful.
- Unknown values are never shown as zero.
- Reused vanilla attempts are not fresh independent samples.
- Claude Code token rules are calibrated on CLI 2.1.322 only. Other versions get a weaker check, and a timed-out Claude attempt has no token lower bound. See Claude Code coding.
- A measure that is
brokenon a task is not measured for that task.checkwarns, and the report shows it as unavailable there. Withmeasurement_settings.require_ready: true, the check stops instead. A measure that is ready on no task always stops the run, and so does one that is not ready on more thanmeasurement_settings.max_not_ready_shareof the tasks. - PluginBench executes model-generated code. Use trusted tasks, images, and treatments on a trusted machine. See Security.
More
- Evaluation details: every setting, check, and output
- Config reference: every config key, its type, default, and meaning
- Metrics: what each measure means and its name in a gates file
- Reproduce a result: what a run pins, and a worked example
- Measurement specification
- Security
- License: Apache-2.0
Metadata
Release files for pluginbench 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pluginbench-0.11.0.tar.gz | 2.4 MB | With provenance | Details for pluginbench-0.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pluginbench-0.11.0-py3-none-any.whl | Python 3 | none | any | Details for pluginbench-0.11.0-py3-none-any.whl |
Total release size: 4.8 MB
Release files / pluginbench-0.11.0.tar.gz
| Download URL | pluginbench-0.11.0.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcfbbfc513e5c6f4cf917428ec97e3cb8eb345b58b72bd6fe6ccd79dad1574ea
|
|
BLAKE2b-256 checksum How to use checksums |
605f88748fda787134c58b3544081818a2c4b4edc6d1dc78541fd99b52834a6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / pluginbench-0.11.0-py3-none-any.whl
| Download URL | pluginbench-0.11.0-py3-none-any.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eaaf446ae92b70a653c779239678febd74f06e3ce7b0539f0c3075b7f768d086
|
|
BLAKE2b-256 checksum How to use checksums |
a04de8d26ed377d33725a91c958cfb431e94279f17a56d16fe63e15a97af5992
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for pluginbench 0.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pluginbench-0.11.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.