What is it?

NicheBench is an open-source Python command-line harness for evaluating language models inside one niche at a time. A niche is a framework, a language or a domain where the right answer depends on versions, APIs and the project around it. Each niche gets one grounded task set.
Drupal is the only niche built today, and it is our first test of the idea. WordPress, Laravel or a language such as Rust are possible next niches.
NicheBench is one piece of a longer path toward niche models. The path is to benchmark a niche first, then specialise a model for it. This article covers only the benchmark step.
The harness source and documentation are MIT licensed. The Drupal task data is in private repositories, so a run needs access to it. Raw results and reports are not in the public repository.
Why?
A model can sound right about Drupal and still use an API from the wrong version. A generic score hides that. A grounded task names the stack, the version and the scenario, and a rubric written for the niche checks the answer.
A score only means something against the same tasks and the same judge. So we compare models only within one niche and version. A Drupal score says nothing about WordPress.
The task data stays private on purpose. That is meant to keep the tasks out of public training data, so a model is less likely to have seen the answers.
How it works?

You pick a niche, a model under test and a judge model. With access to the task data and your API keys in nichebench.yml, a run looks like this:
poetry install
poetry run nichebench list
poetry run nichebench run drupal quizClassic tasks are quizzes, code generation and bug fixing. The model answers and the judge scores against the task's rubric. Each run is saved as JSON.
Runtime mode is optional and needs an explicit opt-in. A coding agent works from a Docker container on a Drupal site in DDEV, a Docker-based local environment. Scripted checks then run, with an optional judge. The report includes a final diff, and a failed critical check fails the task. It needs Docker and DDEV and runs one task at a time.
Versions
We now label new results with a benchmark version: one niche, one task set and one judge model. Change any of them, or add or edit a test, and it is a new version (v1.0, v1.1). The harness does not track this. It is how we publish. Results never carry across versions, and a version is separate from the harness release.
Reading a result

The image shows one round from Sergiu's first NicheBench post on nikro.me, as ranges. The post does not state task counts, trial counts or the quiz judge, and one reference score was judged by the model it measures. The round predates our version rule, so it has no version label yet. It is not a ranking.
Go deeper: Sergiu's posts cover the test types, the models and the scores. Start with Nichebench: Benching AIs vs Drupal 10-11 and Nichebench + New models. For the harness and runtime mode, see Nichebench: the harness.
What it unblocks / where it leads
A fixed yardstick per niche lets us compare models on the same version, and later a specialised model with its base. The two next steps we see are a second niche, to test the idea outside Drupal, and models specialised for a niche. Both are plans.
If you have a niche you want to evaluate, discuss your project with us.
