Prompts are code. This bench catches a bad wording change before it ships, the same way tests catch a bad code change.
dryvist/llm-prompt-evals takes two
versions of a prompt — the one you use now and a candidate you want to try — runs
both against the same test questions, scores every answer, and shows you side by
side which version did better.
Set up once
You need Nix (with flakes) and direnv. Those are the only two things you install by hand; the eval runner and everything else come from the dev shell. There is nonpm.
Evaluate a prompt
1
Pick the prompt
The prompts in use live in
catalog/ (read-only). Choose the one you want to
change.2
Write your candidate
Copy the prompt into
variants/, change the wording, and save it. Add one
block for it in the eval config, copying the candidate already there.3
Run the eval
4
Open the visual report
scripts/report.sh writes an HTML report instead.