Lab / Write-up

NicheBench: evaluating LLMs on framework-specific tasks

NicheBench is an open-source harness that gives each niche its own grounded task set, so models can be compared inside that niche. Drupal is the one niche built so far.

By HumanFace Tech

What is it?

One task set per niche. Drupal is built. WordPress, Laravel and Rust are dashed boxes, possible next niches. Benchmark first, specialise a model later.

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?

Classic flow: task, model, judge, report. Optional runtime mode: coding agent in a container on a DDEV Drupal site, scripted checks, report with final diff.

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 quiz

Classic 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

Range bars for the first published Drupal round. Quiz: open-weight models 80 to 90 percent, some state-of-the-art models 90 to 91. Code generation: about 22 to 40 percent, GPT-5 at medium effort 75, judged by GPT-5.

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.

Sources

Companies we’ve worked with

What are
you building?