@wendellresearch-ai/benchwarmers 0.1.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/AGENTS.md +147 -147
  2. package/BENCHMARKS.md +262 -262
  3. package/GATEWAY.md +272 -271
  4. package/NOTICE +28 -28
  5. package/PRIVACY.md +46 -46
  6. package/README.md +368 -275
  7. package/SECURITY.md +83 -83
  8. package/TERMS.md +22 -22
  9. package/USAGE.md +170 -155
  10. package/VERSION +1 -1
  11. package/bin/benchwarmers.js +16 -72
  12. package/cli.py +666 -0
  13. package/examples/config/gateway.json +5 -5
  14. package/examples/config/model-roles.json +11 -11
  15. package/gateway.py +755 -712
  16. package/launcher.py +120 -0
  17. package/mcp_server.py +266 -0
  18. package/metrics/alerts.py +116 -116
  19. package/metrics/aliases.py +41 -41
  20. package/metrics/bench_collections.py +141 -141
  21. package/metrics/catalog.py +295 -295
  22. package/metrics/client.py +394 -373
  23. package/metrics/cliproxy.py +191 -191
  24. package/metrics/connect.py +691 -691
  25. package/metrics/cost.py +152 -152
  26. package/metrics/decide.py +227 -227
  27. package/metrics/discover.py +318 -318
  28. package/metrics/endpoints.py +436 -436
  29. package/metrics/guard.py +617 -592
  30. package/metrics/learn.py +221 -221
  31. package/metrics/litellm_hub.py +206 -206
  32. package/metrics/model_roles.py +84 -84
  33. package/metrics/offload.py +166 -166
  34. package/metrics/owui.py +205 -205
  35. package/metrics/paths.py +60 -60
  36. package/metrics/route.py +579 -574
  37. package/metrics/scheduler.py +275 -275
  38. package/metrics/sources.py +167 -167
  39. package/metrics/wrong.py +144 -144
  40. package/package.json +68 -64
  41. package/perf/README.md +89 -89
  42. package/perf/run.py +261 -261
  43. package/scripts/auto_retire.py +367 -367
  44. package/scripts/check.py +108 -104
  45. package/scripts/check_deprecations.py +378 -378
  46. package/scripts/check_themes.py +103 -103
  47. package/scripts/init.py +124 -124
  48. package/scripts/list_served.py +78 -78
  49. package/scripts/notice.py +78 -78
  50. package/scripts/onboard.py +401 -331
  51. package/scripts/provider_tags.py +129 -129
  52. package/scripts/reprefix.py +136 -136
  53. package/scripts/sync_config.py +105 -105
  54. package/scripts/test_auth.py +255 -255
  55. package/scripts/test_cli.py +189 -0
  56. package/scripts/test_client.py +233 -233
  57. package/scripts/test_connect.py +222 -222
  58. package/scripts/test_first_run.py +180 -180
  59. package/scripts/test_hubs.py +328 -328
  60. package/scripts/test_launcher.py +67 -0
  61. package/scripts/test_llm_log.py +85 -0
  62. package/scripts/test_mcp.py +178 -0
  63. package/scripts/test_merged.py +214 -193
  64. package/scripts/test_no_owui.py +291 -291
  65. package/scripts/test_owui.py +90 -90
  66. package/scripts/test_serve_edit.py +448 -386
  67. package/scripts/test_verdict.py +98 -98
  68. package/scripts/test_vision.py +228 -228
  69. package/serve.py +3904 -3662
  70. package/suite/mine.py +154 -154
  71. package/suite/pace.py +145 -145
  72. package/suite/run.py +1046 -1040
  73. package/suite/seed.py +421 -421
  74. package/suite/tasks/claim-alias-unbound/fixtures/onboard.py +286 -286
  75. package/suite/tasks/claim-error-text-string/fixtures/decide.py +187 -187
  76. package/suite/tasks/claim-list-body/fixtures/gateway.py +235 -235
  77. package/suite/tasks/claim-member-nominated-twice/fixtures/gateway.py +284 -284
  78. package/suite/tasks/claim-nominee-uses-slot/fixtures/gateway.py +284 -284
  79. package/suite/tasks/claim-silent-exit/fixtures/gateway.py +235 -235
  80. package/suite/tasks/claim-sse-hang/fixtures/gateway.py +235 -235
  81. package/suite/tasks/claim-unknown-nominee-crash/fixtures/gateway.py +284 -284
  82. package/suite/tasks/rebench-matchms-809-bug/task.json +23 -23
  83. package/suite/tasks/rebench-matchms-809-control/task.json +27 -27
  84. package/suite/tasks/rebench-more-itertools-1028-bug/task.json +23 -23
  85. package/suite/tasks/rebench-more-itertools-1028-control/task.json +27 -27
  86. package/suite/tasks/rebench-narwhals-2864-bug/task.json +23 -23
  87. package/suite/tasks/rebench-narwhals-2864-control/task.json +27 -27
  88. package/suite/tasks/rebench-quantecon-py-769-bug/task.json +23 -23
  89. package/suite/tasks/rebench-quantecon-py-769-control/task.json +27 -27
  90. package/suite/tasks/rebench-scrapy-6867-bug/task.json +23 -23
  91. package/suite/tasks/rebench-scrapy-6867-control/task.json +27 -27
  92. package/ui/bench.css +430 -424
  93. package/ui/bench.js +1756 -1555
  94. package/ui/themes/dark.css +35 -35
  95. package/ui/themes/hardwood.css +52 -52
  96. package/ui/themes/rainforest.css +32 -32
package/README.md CHANGED
@@ -1,275 +1,368 @@
1
- <h1 align="center">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset=".github/logo-dark.svg">
4
- <img src=".github/logo.svg" width="480" alt="Benchwarmers, by Wendell Research: the name sitting on a crimson team bench">
5
- </picture>
6
- </h1>
7
-
8
- <p align="center">
9
- <a href="https://github.com/WendellResearch-AI/benchwarmers/releases"><img src="https://img.shields.io/github/v/release/WendellResearch-AI/benchwarmers?color=990000" alt="Latest release"></a>
10
- <a href="https://www.npmjs.com/package/@wendellresearch-ai/benchwarmers"><img src="https://img.shields.io/npm/v/@wendellresearch-ai/benchwarmers?color=cb3837&logo=npm" alt="npm"></a>
11
- <a href="https://github.com/WendellResearch-AI/benchwarmers/actions/workflows/check.yml"><img src="https://github.com/WendellResearch-AI/benchwarmers/actions/workflows/check.yml/badge.svg" alt="Checks"></a>
12
- <a href="#docker"><img src="https://img.shields.io/badge/Docker-compose-2496ED?logo=docker&logoColor=white" alt="Runs in Docker"></a>
13
- <a href="GATEWAY.md"><img src="https://img.shields.io/badge/OpenAI--compatible-gateway-111111" alt="OpenAI-compatible gateway"></a>
14
- <br>
15
- <a href="#try-it"><img src="https://img.shields.io/badge/Python-3.11_%7C_3.12_%7C_3.13-3776AB?logo=python&logoColor=white" alt="Python 3.11 to 3.13"></a>
16
- <a href="#try-it"><img src="https://img.shields.io/badge/core-stdlib_only-2ea44f" alt="The core needs only the Python standard library"></a>
17
- <a href="#try-it"><img src="https://img.shields.io/badge/runs_on-Windows_%7C_macOS_%7C_Linux-555555" alt="Windows, macOS and Linux"></a>
18
- <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT license"></a>
19
- </p>
20
-
21
- <p align="center"><strong><em>Put me in, coach.</em></strong><br>Every model on your bench gets its minutes.</p>
22
-
23
- Benchwarmers is a self-hosted **panel gateway** for LLMs. Your app asks for one
24
- of your **collections**, and the whole panel answers: the models you picked
25
- for that kind of work, plus **explorer** seats that rotate in the models you
26
- have used least. Every answer comes back side by side, labelled by model and
27
- seat. You check them against the real work and record a verdict, and those
28
- verdicts decide who sits on the next panel.
29
-
30
- **What it is best at:**
31
-
32
- - **Asking several models at once.** One OpenAI-compatible request, a panel of
33
- answers. Where they disagree is where to look.
34
- - **Reviewing.** Code review, claims about code, designs: different models
35
- catch different things, and two models agreeing is not proof.
36
- - **Playing to each model's strengths.** A collection per kind of work
37
- (reviewers, designers, enumerators), each with the models that do it best.
38
- - **Giving every model playing time.** Explorers cycle through the rest of
39
- the bench, so new and free models get tried beside the ones you trust,
40
- without you choosing them by hand.
41
- - **Benchmarking on your own projects.** A review suite seeded from your own
42
- repositories, plus your verdicts on real work, instead of public leaderboards.
43
- - **Knowing who to bench.** Who is confidently wrong, who has stopped
44
- answering (retired automatically), and who is resting after a rate limit.
45
- - **Keeping free and cheap models useful.** Health probes, learned rate limits
46
- and one endpoint for every app, over any OpenAI-compatible provider or hub.
47
-
48
- | Related tools | Examples | What they do | What Benchwarmers does differently |
49
- |---|---|---|---|
50
- | Gateways and routers | LiteLLM, OpenRouter, Portkey | One request to one model, with fallback | Fans one prompt out to a panel and returns every answer |
51
- | Councils and ensembles | LLM Council, Mixture-of-Agents | Several models merged into one answer | Keeps every answer, because who said what is the evidence; one merged summary only if you ask |
52
- | Side-by-side chat | Open WebUI, LMArena | Several answers shown together | Records a verdict per answer and uses them to pick the next panel |
53
- | Evaluation harnesses | promptfoo, Inspect, SWE-bench | Score models offline on fixed test sets | Scores them on your real work and your own code, and keeps rotating new models in |
54
-
55
- <p align="center">
56
- <picture>
57
- <source media="(prefers-color-scheme: dark)" srcset=".github/flow-dark.svg">
58
- <img src=".github/flow.svg" width="900" alt="Your app or agent asks the gateway for one of your collections. The gateway seats a panel: the collection's members, always seated, and an explorer that rotates in the model unused longest. Every answer comes back side by side, labelled by model and seat. You check them against the real work and record a verdict. Verdicts, daily health probes and the review suite make up the bench's record, which chooses who sits on the next panel.">
59
- </picture>
60
- </p>
61
-
62
- ## Contents
63
-
64
- - [Try it](#try-it)
65
- - [How it works](#how-it-works)
66
- - [Asking a panel](#asking-a-panel)
67
- - [The suite](#the-suite)
68
- - [Docker](#docker)
69
- - [What leaves your machine](#what-leaves-your-machine)
70
- - [Limits](#limits)
71
- - [Security](#security)
72
- - [Development](#development)
73
- - [Licence](#licence)
74
-
75
- Day-to-day use (the dashboard's pages, connecting apps, onboarding in bulk) is
76
- in [USAGE.md](USAGE.md). A coding agent setting it up for someone should start
77
- with [AGENTS.md](AGENTS.md).
78
-
79
- ## Try it
80
-
81
- **v0.1, early.** It runs with Python 3.11 or later on Windows, macOS and
82
- Linux, from npm, a checkout or Docker. Expect rough edges, and read the code
83
- where these pages are thin.
84
-
85
- **Quickest**, with Node 18+ and Python 3.11+ installed:
86
-
87
- npx @wendellresearch-ai/benchwarmers
88
-
89
- It keeps your data in your user profile (`BENCHWARMERS_HOME` to choose
90
- another folder), sets it up on the first run, and opens the dashboard on
91
- http://localhost:8122, where steps 3 to 5 below continue. The built-in model
92
- client makes every call, so nothing else needs installing.
93
-
94
- **From source:**
95
-
96
- 1. **Get the code** and a Python 3.11+ environment:
97
-
98
- git clone https://github.com/WendellResearch-AI/benchwarmers
99
- cd benchwarmers
100
- python -m venv .venv
101
- .venv/bin/pip install llm # Windows: .venv\Scripts\pip install llm
102
-
103
- The [`llm`](https://llm.datasette.io/) CLI is the default model client today.
104
- The built-in client (`metrics/client.py`) replaces it, chosen on Settings
105
- or with `BENCH_CLIENT=builtin` (which wins), and will become the default.
106
-
107
- 2. **Make a data folder.** Everything that is yours (endpoints, model
108
- registrations, collections, verdicts, probe history, task answers) lives
109
- there, never in the code:
110
-
111
- python scripts/init.py # or: python scripts/init.py <folder>
112
-
113
- It starts the folder from `examples/` (in your OS's per-user data folder
114
- unless you name one) and points the checkout at it with a
115
- `.benchwarmers-home` file; `BENCHWARMERS_HOME` overrides that. With
116
- `--endpoint NAME BASE_URL --key` it also adds a first endpoint and asks for
117
- its key, which goes to the `llm` CLI's key store (`llm keys set NAME` does
118
- the same), never into the data folder.
119
-
120
- 3. **Start the dashboard.** With no endpoint yet it opens on adding one: sign
121
- in with a provider on its own page (OpenRouter, NanoGPT, Hugging Face,
122
- Pollinations, your ChatGPT plan, GitHub Models, or a local Ollama), or paste
123
- an API key for any OpenAI-compatible API, a hub such as Open WebUI or
124
- LiteLLM included. Only providers that publish a sign-in for other apps are
125
- offered; adding one is an entry in `metrics/connect.py` (its docstring says
126
- how).
127
-
128
- python serve.py # http://localhost:8122
129
-
130
- 4. **Onboard a few models** from it ("Onboard a model"): tick one or several;
131
- each is registered, probed and run through the suite, one at a time, with
132
- the progress beside the button.
133
-
134
- 5. **Make a collection** on the Collections page (the models a panel always
135
- includes, and what it is for). The dashboard answers the gateway's routes on
136
- its own port (`http://127.0.0.1:8122/v1`); `python gateway.py` runs the
137
- gateway alone on `http://127.0.0.1:8123/v1`.
138
-
139
- ## How it works
140
-
141
- - **Collections and seats.** A collection names the models a panel always
142
- includes and the shape of work it is for (review, design, enumeration...).
143
- Each call adds explorer seats chosen by how long a model has gone unused, so
144
- the bench keeps learning about models a router would stop asking.
145
- - **Verdicts.** Each seat's answer carries a call id. Once you have checked an
146
- answer against the real work, record whether it was useful, and which of its
147
- claims were real or false. Verdicts, not vibes, decide the next panel; a
148
- model that is often confidently wrong shows as that.
149
- - **The catalog.** Context window, output limit, tools, vision and price come
150
- from models.dev for the provider that actually serves a model, then
151
- OpenRouter's public catalog and FreeLLMAPI, and anything you set by hand.
152
- - **Health.** Every morning each model gets a one-word prompt; once a week, a
153
- short and a long one for speed. A model that stops answering, or that its
154
- endpoint no longer serves, is retired automatically after one confirming
155
- call, with the evidence kept, and can be restored in one click. Rate limits
156
- are learned from providers' own error messages and kept per connection,
157
- since models behind one key share them. The built-in scheduler runs all of
158
- this once Settings switches it on; a fresh install spends no calls until then.
159
- - **Discover.** models.dev and FreeLLMAPI, merged into one list of models
160
- worth adding, each with the routes this install has to it.
161
-
162
- ## Asking a panel
163
-
164
- Any OpenAI-compatible client works: ask for the model `bench/<collection>`.
165
-
166
- curl http://127.0.0.1:8122/v1/chat/completions \
167
- -H "Content-Type: application/json" \
168
- -d '{"model": "bench/<collection>", "messages": [{"role": "user", "content": "Where can this function return a stale value? ..."}]}'
169
-
170
- The reply carries every seat's answer in the message, and the same seats as
171
- data in a `bench` field: model, seat, status, seconds and a call id. For a chat
172
- window that shows one answer, ask for `bench/<collection>:merged`: a merger
173
- model writes one answer saying where the seats agreed and disagreed, and every
174
- seat is still in `bench`. Record a verdict per call once you have checked it:
175
-
176
- curl http://127.0.0.1:8122/bench/verdict -H "Content-Type: application/json" \
177
- -d '{"call": "<call id>", "useful": true, "note": "found the real bug", "real": ["..."], "false": ["..."]}'
178
-
179
- or from the dashboard. See [GATEWAY.md](GATEWAY.md) for the full contract:
180
- images, prompt sizes, who may call, and the reply's shape.
181
-
182
- ## The suite
183
-
184
- Models are scored on review work: find the faulty line, or say whether a
185
- claim about some code is true. The repository ships a starter pack:
186
-
187
- - **Real bugs** (`suite/tasks/rebench-*`): recent fixes from public projects,
188
- drawn from the SWE-rebench-V2 dataset, each paired with a control.
189
- - **Claims** (`suite/tasks/claim-*`): true and false statements about this
190
- project's own code, with the code attached.
191
-
192
- Add your own from your repositories (`config/repos.json` in the data folder
193
- maps a name to a folder): `python suite/seed.py --repo <name>` plants
194
- realistic bugs in your real functions, each with a clean control. Private
195
- code makes the best tasks, because no model has trained on it. See
196
- [suite/README.md](suite/README.md), [suite/REBENCH.md](suite/REBENCH.md) and
197
- [BENCHMARKS.md](BENCHMARKS.md).
198
-
199
- ## Docker
200
-
201
- One container runs the dashboard, the gateway (on the same port, at `/v1`)
202
- and the scheduler, with the data folder as a volume and no `llm` CLI (the
203
- built-in client makes every call). Put the secrets in a `.env` file beside
204
- `compose.yaml`:
205
-
206
- BENCHWARMERS_ADMIN_TOKEN=<16 or more characters>
207
- BENCHWARMERS_KEY_OPENROUTER=sk-or-...
208
-
209
- then `docker compose up -d` and open http://127.0.0.1:8122. The compose file
210
- publishes on this machine only; see its comments for a proxy.
211
-
212
- ## What leaves your machine
213
-
214
- Benchwarmers has no account, no telemetry and no server of its own; nothing
215
- reaches Wendell Research. What it sends, and where:
216
-
217
- - **Your prompts**, only to the endpoints you add: a provider, an aggregator,
218
- a hub such as Open WebUI, or a local runtime. That includes the probes, the
219
- suite and onboarding, which spend calls on your keys. Add only endpoints you
220
- are content to send that work to.
221
- - **Catalog reads**, no key and nothing of yours: models.dev and FreeLLMAPI
222
- once a day, and OpenRouter's public model list.
223
- - **Sign-ins**, only when you choose one: the provider's own sign-in page.
224
- - **Charts**: the dashboard's browser page loads Observable Plot from jsDelivr
225
- at a pinned version.
226
- - **Seeding real-bug tasks**, only when you run `suite/rebench.py`: the
227
- SWE-rebench-V2 rows from Hugging Face and the files from GitHub.
228
-
229
- Keys stay in the environment or the `llm` CLI's key store, never in the data
230
- folder. [PRIVACY.md](PRIVACY.md) and [SECURITY.md](SECURITY.md) have the
231
- detail.
232
-
233
- ## Limits
234
-
235
- - **Early.** v0.1: no installer yet, no streaming replies, and the LiteLLM and
236
- CLI Proxy API hub adapters are built from those projects' source, not yet
237
- run against a real hub.
238
- - **Calls cost.** Probes, onboarding and the suite run on your keys and free
239
- tiers. Onboarding runs one model at a time for that reason; a suite pass is
240
- paced, not burst.
241
- - **One install, one person** at heart. Logins and gateway keys exist for a
242
- LAN or a server, but there are no per-user views or roles.
243
- - **The onboarding queue lives in the dashboard's memory.** Restarting it
244
- drops the rest of a batch; each started model's log stays in `runs/`.
245
- - **Free tiers change without notice.** Discover's prices come from public
246
- catalogs, and some providers' free models work only in their own app
247
- (switched per provider on Settings).
248
-
249
- ## Security
250
-
251
- Both servers listen on 127.0.0.1 by default and accept only same-origin writes
252
- for their own host name, so a web page in your browser cannot drive them. To
253
- listen anywhere else, set `BENCHWARMERS_ADMIN_TOKEN` first; without it they
254
- refuse to start. With it, the dashboard asks for a login and the gateway takes
255
- named, revocable **gateway keys**. Settings, under Server and access, shows how
256
- this stands (whether a secret is set, never its value).
257
-
258
- [SECURITY.md](SECURITY.md) has the whole model and how to report a
259
- vulnerability.
260
-
261
- ## Development
262
-
263
- python scripts/check.py # every self-check and test (--quick skips the slow one)
264
-
265
- The core is the Python standard library only. CI runs the checks on Linux and
266
- Windows for Python 3.11 to 3.13, and on macOS.
267
-
268
- Benchwarmers isn't taking outside contributions yet; that opens once it is
269
- more established. A security problem goes through [SECURITY.md](SECURITY.md).
270
-
271
- ## Licence
272
-
273
- MIT, Copyright (c) 2026 Wendell Research ([LICENSE](LICENSE)). The starter
274
- tasks and bundled fonts carry their own licences, listed in [NOTICE](NOTICE).
275
- Use is also covered by [TERMS.md](TERMS.md).
1
+ <h1 align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset=".github/logo-dark.svg">
4
+ <img src=".github/logo.svg" width="480" alt="Benchwarmers, by Wendell Research: the name sitting on a crimson team bench">
5
+ </picture>
6
+ </h1>
7
+
8
+ <p align="center">
9
+ <a href="https://github.com/WendellResearch-AI/benchwarmers/releases"><img src="https://img.shields.io/github/v/release/WendellResearch-AI/benchwarmers?color=990000" alt="Latest release"></a>
10
+ <a href="https://www.npmjs.com/package/@wendellresearch-ai/benchwarmers"><img src="https://img.shields.io/npm/v/@wendellresearch-ai/benchwarmers?color=cb3837&logo=npm" alt="npm"></a>
11
+ <a href="https://pypi.org/project/benchwarmers/"><img src="https://img.shields.io/pypi/v/benchwarmers?color=3775a9&logo=pypi&logoColor=white" alt="PyPI"></a>
12
+ <a href="https://github.com/WendellResearch-AI/benchwarmers/actions/workflows/check.yml"><img src="https://github.com/WendellResearch-AI/benchwarmers/actions/workflows/check.yml/badge.svg" alt="Checks"></a>
13
+ <a href="#docker"><img src="https://img.shields.io/badge/Docker-compose-2496ED?logo=docker&logoColor=white" alt="Runs in Docker"></a>
14
+ <a href="GATEWAY.md"><img src="https://img.shields.io/badge/OpenAI--compatible-gateway-111111" alt="OpenAI-compatible gateway"></a>
15
+ <br>
16
+ <a href="#try-it"><img src="https://img.shields.io/badge/Python-3.11_%7C_3.12_%7C_3.13-3776AB?logo=python&logoColor=white" alt="Python 3.11 to 3.13"></a>
17
+ <a href="#try-it"><img src="https://img.shields.io/badge/core-stdlib_only-2ea44f" alt="The core needs only the Python standard library"></a>
18
+ <a href="#try-it"><img src="https://img.shields.io/badge/runs_on-Windows_%7C_macOS_%7C_Linux-555555" alt="Windows, macOS and Linux"></a>
19
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="MIT license"></a>
20
+ </p>
21
+
22
+ <p align="center"><strong><em>Put me in, coach.</em></strong><br>Every model on your bench gets its minutes.</p>
23
+
24
+ Benchwarmers is a self-hosted **panel gateway** for LLMs. Your app asks for one
25
+ of your **collections**, and the whole panel answers: the models you picked
26
+ for that kind of work, plus **explorer** seats that rotate in the models you
27
+ have used least. Every answer comes back side by side, labelled by model and
28
+ seat. You check them against the real work and record a verdict, and those
29
+ verdicts decide who sits on the next panel.
30
+
31
+ **What it is best at:**
32
+
33
+ - **Asking several models at once.** One OpenAI-compatible request, a panel of
34
+ answers. Where they disagree is where to look.
35
+ - **Reviewing.** Code review, claims about code, designs: different models
36
+ catch different things, and two models agreeing is not proof.
37
+ - **Playing to each model's strengths.** A collection per kind of work
38
+ (reviewers, designers, enumerators), each with the models that do it best.
39
+ - **Giving every model playing time.** Explorers cycle through the rest of
40
+ the bench, so new and free models get tried beside the ones you trust,
41
+ without you choosing them by hand.
42
+ - **Benchmarking on your own projects.** A review suite seeded from your own
43
+ repositories, plus your verdicts on real work, instead of public leaderboards.
44
+ - **Knowing who to bench.** Who is confidently wrong, who has stopped
45
+ answering (retired automatically), and who is resting after a rate limit.
46
+ - **Keeping free and cheap models useful.** Health probes, learned rate limits
47
+ and one endpoint for every app, over any OpenAI-compatible provider or hub.
48
+
49
+ | Related tools | Examples | What they do | What Benchwarmers does differently |
50
+ |---|---|---|---|
51
+ | Gateways and routers | LiteLLM, OpenRouter, Portkey | One request to one model, with fallback | Fans one prompt out to a panel and returns every answer |
52
+ | Councils and ensembles | LLM Council, Mixture-of-Agents | Several models merged into one answer | Keeps every answer, because who said what is the evidence; one merged summary only if you ask |
53
+ | Side-by-side chat | Open WebUI, LMArena | Several answers shown together | Records a verdict per answer and uses them to pick the next panel |
54
+ | Evaluation harnesses | promptfoo, Inspect, SWE-bench | Score models offline on fixed test sets | Scores them on your real work and your own code, and keeps rotating new models in |
55
+
56
+ <p align="center">
57
+ <picture>
58
+ <source media="(prefers-color-scheme: dark)" srcset=".github/flow-dark.svg">
59
+ <img src=".github/flow.svg" width="900" alt="Your app or agent asks the gateway for one of your collections. The gateway seats a panel: the collection's members, always seated, and an explorer that rotates in the model unused longest. Every answer comes back side by side, labelled by model and seat. You check them against the real work and record a verdict. Verdicts, daily health probes and the review suite make up the bench's record, which chooses who sits on the next panel.">
60
+ </picture>
61
+ </p>
62
+
63
+ ## Contents
64
+
65
+ - [Try it](#try-it)
66
+ - [How it works](#how-it-works)
67
+ - [Asking a panel](#asking-a-panel)
68
+ - [From the command line](#from-the-command-line)
69
+ - [From Claude Code and other agents](#from-claude-code-and-other-agents)
70
+ - [The suite](#the-suite)
71
+ - [Docker](#docker)
72
+ - [What leaves your machine](#what-leaves-your-machine)
73
+ - [Limits](#limits)
74
+ - [Security](#security)
75
+ - [Development](#development)
76
+ - [Licence](#licence)
77
+
78
+ Day-to-day use (the dashboard's pages, connecting apps, onboarding in bulk) is
79
+ in [USAGE.md](USAGE.md). A coding agent setting it up for someone should start
80
+ with [AGENTS.md](AGENTS.md).
81
+
82
+ ## Try it
83
+
84
+ **v0.2, early.** It runs with Python 3.11 or later on Windows, macOS and
85
+ Linux, from PyPI, npm, a checkout or Docker. Expect rough edges, and read the
86
+ code where these pages are thin.
87
+
88
+ **Quickest**, with Python 3.11+ installed, from PyPI:
89
+
90
+ pipx install benchwarmers # or: uv tool install benchwarmers
91
+ benchwarmers # or try it first, without installing: uvx benchwarmers
92
+
93
+ or from npm, with Node 18+ as well:
94
+
95
+ npx @wendellresearch-ai/benchwarmers
96
+
97
+ Either way you get the same two commands, `benchwarmers` and its short name
98
+ `bench`. It keeps your data in your user profile (`BENCHWARMERS_HOME` to
99
+ choose another folder), sets it up on the first run, and opens the dashboard
100
+ on http://localhost:8122, where steps 3 to 5 below continue. The built-in
101
+ model client makes every call, so nothing else needs installing. No
102
+ dependencies either way: the app is the Python standard library.
103
+
104
+ **From source:**
105
+
106
+ 1. **Get the code** and a Python 3.11+ environment:
107
+
108
+ git clone https://github.com/WendellResearch-AI/benchwarmers
109
+ cd benchwarmers
110
+ python -m venv .venv
111
+ .venv/bin/pip install llm # Windows: .venv\Scripts\pip install llm
112
+
113
+ The [`llm`](https://llm.datasette.io/) CLI is the default model client today.
114
+ The built-in client (`metrics/client.py`) replaces it, chosen on Settings
115
+ or with `BENCH_CLIENT=builtin` (which wins), and will become the default.
116
+
117
+ 2. **Make a data folder.** Everything that is yours (endpoints, model
118
+ registrations, collections, verdicts, probe history, task answers) lives
119
+ there, never in the code:
120
+
121
+ python scripts/init.py # or: python scripts/init.py <folder>
122
+
123
+ It starts the folder from `examples/` (in your OS's per-user data folder
124
+ unless you name one) and points the checkout at it with a
125
+ `.benchwarmers-home` file; `BENCHWARMERS_HOME` overrides that. With
126
+ `--endpoint NAME BASE_URL --key` it also adds a first endpoint and asks for
127
+ its key, which goes to the `llm` CLI's key store (`llm keys set NAME` does
128
+ the same), never into the data folder.
129
+
130
+ 3. **Start the dashboard.** With no endpoint yet it opens on adding one: sign
131
+ in with a provider on its own page (OpenRouter, NanoGPT, Hugging Face,
132
+ Pollinations, your ChatGPT plan, GitHub Models, or a local Ollama), or paste
133
+ an API key for any OpenAI-compatible API, a hub such as Open WebUI or
134
+ LiteLLM included. Only providers that publish a sign-in for other apps are
135
+ offered; adding one is an entry in `metrics/connect.py` (its docstring says
136
+ how).
137
+
138
+ python serve.py # http://localhost:8122
139
+
140
+ 4. **Onboard a few models** from it ("Onboard a model"): tick one or several;
141
+ each is registered, probed and run through the suite, one at a time, with
142
+ the progress beside the button.
143
+
144
+ 5. **Make a collection** on the Collections page (the models a panel always
145
+ includes, and what it is for). The dashboard answers the gateway's routes on
146
+ its own port (`http://127.0.0.1:8122/v1`); `python gateway.py` runs the
147
+ gateway alone on `http://127.0.0.1:8123/v1`.
148
+
149
+ ## How it works
150
+
151
+ - **Collections and seats.** A collection names the models a panel always
152
+ includes and the shape of work it is for (review, design, enumeration...).
153
+ Each call adds explorer seats chosen by how long a model has gone unused, so
154
+ the bench keeps learning about models a router would stop asking.
155
+ - **Verdicts.** Each seat's answer carries a call id. Once you have checked an
156
+ answer against the real work, record whether it was useful, and which of its
157
+ claims were real or false. Verdicts, not vibes, decide the next panel; a
158
+ model that is often confidently wrong shows as that.
159
+ - **The catalog.** Context window, output limit, tools, vision and price come
160
+ from models.dev for the provider that actually serves a model, then
161
+ OpenRouter's public catalog and FreeLLMAPI, and anything you set by hand.
162
+ - **Health.** Every morning each model gets a one-word prompt; once a week, a
163
+ short and a long one for speed. A model that stops answering, or that its
164
+ endpoint no longer serves, is retired automatically after one confirming
165
+ call, with the evidence kept, and can be restored in one click. Rate limits
166
+ are learned from providers' own error messages and kept per connection,
167
+ since models behind one key share them. The built-in scheduler runs all of
168
+ this once Settings switches it on; a fresh install spends no calls until then.
169
+ - **Discover.** models.dev and FreeLLMAPI, merged into one list of models
170
+ worth adding, each with the routes this install has to it.
171
+
172
+ ## Asking a panel
173
+
174
+ Any OpenAI-compatible client works: ask for the model `bench/<collection>`.
175
+
176
+ curl http://127.0.0.1:8122/v1/chat/completions \
177
+ -H "Content-Type: application/json" \
178
+ -d '{"model": "bench/<collection>", "messages": [{"role": "user", "content": "Where can this function return a stale value? ..."}]}'
179
+
180
+ The reply carries every seat's answer in the message, and the same seats as
181
+ data in a `bench` field: model, seat, status, seconds and a call id. For a chat
182
+ window that shows one answer, ask for `bench/<collection>:merged`: a merger
183
+ model writes one answer saying where the seats agreed and disagreed, and every
184
+ seat is still in `bench`. Record a verdict per call once you have checked it:
185
+
186
+ curl http://127.0.0.1:8122/bench/verdict -H "Content-Type: application/json" \
187
+ -d '{"call": "<call id>", "useful": true, "note": "found the real bug", "real": ["..."], "false": ["..."]}'
188
+
189
+ or from the dashboard. See [GATEWAY.md](GATEWAY.md) for the full contract:
190
+ images, prompt sizes, who may call, and the reply's shape.
191
+
192
+ ## From the command line
193
+
194
+ `bench` (or `benchwarmers`, the same program) does what the dashboard does,
195
+ without it: ask and judge, and run the bench itself. It is a client of a
196
+ running server, so the same commands work against one on another machine.
197
+
198
+ bench status what is running, and where
199
+ bench collections what you can ask
200
+ bench ask core "Where can this return a stale value?" -f cache.py
201
+ git diff | bench ask core "Review this diff" a pipe is the prompt
202
+ bench verdict <call id> --useful --real "the race in refresh()" --false "the SQL injection"
203
+
204
+ bench models --find mercury the roster, with each model's status
205
+ bench candidates --new what your endpoints serve that is not on the bench
206
+ bench onboard <served name> --wait onboard it (registered, probed, scored)
207
+ bench model retire <alias> --reason "..." and back: bench model restore <alias>
208
+ bench collection save reviewers --members a,b,c --description "adversarial review"
209
+ bench collection save reviewers --add d --remove a
210
+ bench endpoint add openrouter --base https://openrouter.ai/api/v1 (asks for the key, hidden)
211
+ bench key create my-app --collections core --rpm 30
212
+ bench settings scheduler run --off perf
213
+
214
+ `--help` on any command lists its options with examples, and `--json` prints
215
+ what the server answered, for scripts. `--url` points one command at another
216
+ server. `ask` prints every seat's answer on stdout and the table of call ids to
217
+ judge them by on stderr, so `bench ask core "..." > review.md` keeps only the
218
+ answers. Retiring a model, deleting a collection or an endpoint and revoking a
219
+ key ask first; `--yes` answers for a script. A key is never an argument (others
220
+ on the machine can read those): `endpoint add` prompts for it, or reads it
221
+ from stdin with `--key-stdin`.
222
+
223
+ Another program called `bench` (the Frappe framework's) may come first on your
224
+ PATH; type `benchwarmers` instead, which takes the same commands.
225
+
226
+ | Variable | Meaning |
227
+ | --- | --- |
228
+ | `BENCHWARMERS_URL` | the server, default `http://127.0.0.1:8122` |
229
+ | `BENCHWARMERS_ADMIN_TOKEN` | the server's admin token, where it has one; sent as `Authorization: Bearer` for every command but `ask`, `collections` and `verdict` |
230
+ | `BENCHWARMERS_KEY` | a gateway key, for `ask`, `collections` and `verdict`, where keys are required |
231
+ | `BENCHWARMERS_TIMEOUT` | seconds to wait for a panel, default 900 |
232
+
233
+ Exit codes: 0 done, 1 refused or failed (the reason on stderr), 2 bad usage, 3
234
+ no server at `BENCHWARMERS_URL`.
235
+
236
+ ## From Claude Code and other agents
237
+
238
+ `benchwarmers mcp` is an MCP server on stdio with three tools:
239
+ `list_collections`, `ask` (a collection, a prompt, optionally `merged`,
240
+ `with` and `system`) and `verdict`. It is a client of a Benchwarmers that is
241
+ already running, over the routes above, so start the dashboard (or the
242
+ service) first. The tool descriptions carry the rules: ask a collection, not
243
+ a favourite model; verify before acting; name every seat; send a verdict per
244
+ seat you judged.
245
+
246
+ **Claude Code plugin.** The plugin adds the MCP server, a `/benchwarmers:ask
247
+ <collection> <what to ask>` command and a `benchwarmers` skill saying when a
248
+ panel helps (adversarial review, exhaustive enumeration over real files) and
249
+ how to judge it:
250
+
251
+ /plugin marketplace add WendellResearch-AI/benchwarmers
252
+ /plugin install benchwarmers@benchwarmers
253
+
254
+ It needs Node 18 or later and Python 3.11 or later on PATH.
255
+
256
+ **Any other MCP client** (or Claude Code without the plugin): run
257
+ `benchwarmers mcp` once installed, `uvx benchwarmers mcp` or
258
+ `npx -y @wendellresearch-ai/benchwarmers mcp` without installing, or `python mcp_server.py` from a
259
+ checkout. For example:
260
+
261
+ ```json
262
+ {"mcpServers": {"benchwarmers": {"command": "npx", "args": ["-y", "@wendellresearch-ai/benchwarmers", "mcp"],
263
+ "env": {"BENCHWARMERS_URL": "http://127.0.0.1:8122"}}}}
264
+ ```
265
+
266
+ On native Windows, a client that cannot start `npx` itself needs
267
+ `"command": "cmd", "args": ["/c", "npx", "-y", "@wendellresearch-ai/benchwarmers", "mcp"]`.
268
+
269
+ | Variable | Meaning |
270
+ | --- | --- |
271
+ | `BENCHWARMERS_URL` | the server, default `http://127.0.0.1:8122` (a `/v1` on the end is fine) |
272
+ | `BENCHWARMERS_KEY` | a gateway key from Settings, sent as `Authorization: Bearer`; needed for a server on another machine, or where keys are required |
273
+ | `BENCHWARMERS_TIMEOUT` | seconds to wait for a panel, default 900 |
274
+
275
+ ## The suite
276
+
277
+ Models are scored on review work: find the faulty line, or say whether a
278
+ claim about some code is true. The repository ships a starter pack:
279
+
280
+ - **Real bugs** (`suite/tasks/rebench-*`): recent fixes from public projects,
281
+ drawn from the SWE-rebench-V2 dataset, each paired with a control.
282
+ - **Claims** (`suite/tasks/claim-*`): true and false statements about this
283
+ project's own code, with the code attached.
284
+
285
+ Add your own from your repositories (`config/repos.json` in the data folder
286
+ maps a name to a folder): `python suite/seed.py --repo <name>` plants
287
+ realistic bugs in your real functions, each with a clean control. Private
288
+ code makes the best tasks, because no model has trained on it. See
289
+ [suite/README.md](suite/README.md), [suite/REBENCH.md](suite/REBENCH.md) and
290
+ [BENCHMARKS.md](BENCHMARKS.md).
291
+
292
+ ## Docker
293
+
294
+ One container runs the dashboard, the gateway (on the same port, at `/v1`)
295
+ and the scheduler, with the data folder as a volume and no `llm` CLI (the
296
+ built-in client makes every call). Put the secrets in a `.env` file beside
297
+ `compose.yaml`:
298
+
299
+ BENCHWARMERS_ADMIN_TOKEN=<16 or more characters>
300
+ BENCHWARMERS_KEY_OPENROUTER=sk-or-...
301
+
302
+ then `docker compose up -d` and open http://127.0.0.1:8122. The compose file
303
+ publishes on this machine only; see its comments for a proxy.
304
+
305
+ ## What leaves your machine
306
+
307
+ Benchwarmers has no account, no telemetry and no server of its own; nothing
308
+ reaches Wendell Research. What it sends, and where:
309
+
310
+ - **Your prompts**, only to the endpoints you add: a provider, an aggregator,
311
+ a hub such as Open WebUI, or a local runtime. That includes the probes, the
312
+ suite and onboarding, which spend calls on your keys. Add only endpoints you
313
+ are content to send that work to.
314
+ - **Catalog reads**, no key and nothing of yours: models.dev and FreeLLMAPI
315
+ once a day, and OpenRouter's public model list.
316
+ - **Sign-ins**, only when you choose one: the provider's own sign-in page.
317
+ - **Charts**: the dashboard's browser page loads Observable Plot from jsDelivr
318
+ at a pinned version.
319
+ - **Seeding real-bug tasks**, only when you run `suite/rebench.py`: the
320
+ SWE-rebench-V2 rows from Hugging Face and the files from GitHub.
321
+
322
+ Keys stay in the environment or the `llm` CLI's key store, never in the data
323
+ folder. [PRIVACY.md](PRIVACY.md) and [SECURITY.md](SECURITY.md) have the
324
+ detail.
325
+
326
+ ## Limits
327
+
328
+ - **Early.** v0.1: no installer yet, no streaming replies, and the LiteLLM and
329
+ CLI Proxy API hub adapters are built from those projects' source, not yet
330
+ run against a real hub.
331
+ - **Calls cost.** Probes, onboarding and the suite run on your keys and free
332
+ tiers. Onboarding runs one model at a time for that reason; a suite pass is
333
+ paced, not burst.
334
+ - **One install, one person** at heart. Logins and gateway keys exist for a
335
+ LAN or a server, but there are no per-user views or roles.
336
+ - **The onboarding queue lives in the dashboard's memory.** Restarting it
337
+ drops the rest of a batch; each started model's log stays in `runs/`.
338
+ - **Free tiers change without notice.** Discover's prices come from public
339
+ catalogs, and some providers' free models work only in their own app
340
+ (switched per provider on Settings).
341
+
342
+ ## Security
343
+
344
+ Both servers listen on 127.0.0.1 by default and accept only same-origin writes
345
+ for their own host name, so a web page in your browser cannot drive them. To
346
+ listen anywhere else, set `BENCHWARMERS_ADMIN_TOKEN` first; without it they
347
+ refuse to start. With it, the dashboard asks for a login and the gateway takes
348
+ named, revocable **gateway keys**. Settings, under Server and access, shows how
349
+ this stands (whether a secret is set, never its value).
350
+
351
+ [SECURITY.md](SECURITY.md) has the whole model and how to report a
352
+ vulnerability.
353
+
354
+ ## Development
355
+
356
+ python scripts/check.py # every self-check and test (--quick skips the slow one)
357
+
358
+ The core is the Python standard library only. CI runs the checks on Linux and
359
+ Windows for Python 3.11 to 3.13, and on macOS.
360
+
361
+ Benchwarmers isn't taking outside contributions yet; that opens once it is
362
+ more established. A security problem goes through [SECURITY.md](SECURITY.md).
363
+
364
+ ## Licence
365
+
366
+ MIT, Copyright (c) 2026 Wendell Research ([LICENSE](LICENSE)). The starter
367
+ tasks and bundled fonts carry their own licences, listed in [NOTICE](NOTICE).
368
+ Use is also covered by [TERMS.md](TERMS.md).