★ Petty Evals
methodology

How I did this
(the actual nerd shit)

Real eval, stupid questions. This page is also a guide — if you've ever wanted to run your own eval against multiple models, every choice I made is here, linked to the actual code on GitHub. Steal liberally.

The whole pipeline in one paragraph

For each fight, I send each of 4 models a coding prompt 60 times (3 prompt variants × 2 temperatures × 10 runs). A regex classifier reads each response and assigns it a label ("tabs", "spaces", "unknown", etc.). The model's vote is its modal classification across its 60 runs. The fight's verdict is the majority across models. Then I send each model the final tally and ask it to write one judgy sentence about the result. That's the pundit panel. One fight is 240 generations and costs about $3.

Code: scripts/run-evals.ts is the entry point. src/lib/eval/runner.ts orchestrates calls. src/lib/eval/ has everything else.

Step 1: revealed preference, not stated preference

Don't ask the model what it prefers. "Do you prefer tabs or spaces?" gets you whatever it thinks you want to hear. Models are catastrophically sycophantic about style questions and their stated answer will not match what they actually write.

Instead, ask the model to do a task that incidentally requires the choice. "Write a Python function that reverses a linked list" reveals indentation preference. "Write a function that compares two values and returns true if equal" reveals === vs ==. The model picks naturally because it's focused on the task.

Vary the domain. Each fight has 3 prompt variants in different problem areas (data structures / strings / HTTP) so the verdict isn't a fluke of one task. The prompts are on each fight page — click the "exact prompts" disclosure.

Prompt files live in src/content/fights/. Each is a TypeScript module with the question, the 3 variants, and the classifier reference.

Step 2: the matrix (N=10, k=3, T=2)

One sample per model per fight is anecdote. The matrix turns it into data.

For each fight, each model gets every prompt variant 20 times: 10 runs at temperature 0 (mostly deterministic — same prompt, mostly same output) and 10 runs at temperature 0.7 (default sampling — varied output). That's 60 generations per model per fight, and 4 models means 240. Run for 24 fights (V1 lineup): 5,760 generations, ~$76, ~4 hours wall-clock on 4 parallel workers.

Why 10 runs per cell? Because Wilson 95% CIs on n=10 with a unanimous result give a lower bound of ~70% — enough to meaningfully separate "this model picks X" from "this model sometimes picks X". I'd love n=30 per cell, but the cost goes from $76 to ~$230 and we're testing tabs vs spaces, not COVID vaccines. Use the budget where it matters.

The matrix builder is in runner.ts's buildPlan.

Step 3: classifiers (the load-bearing piece)

Each fight has its own regex classifier. Not a generic "label the output" — a specific function that knows what to look for. tabs-vs-spaces-python finds the first indented line and checks if it starts with a tab. triple-equals-js strips comments and template literals, then counts === vs == tokens. react-styling looks for Tailwind class patterns, styled., or import './foo.css'. Twenty-four classifiers, each a few dozen lines.

All of them live in src/lib/eval/classifiers/regex.ts — go read it, you can audit every label decision in about 15 minutes.

Two helpers fight constant battles:

  • extractCode vs extractAllCode: most models put their code in triple-backtick fences, but some questions ("show me how you'd use it") provoke a SECOND fence with example code. If your classifier only reads the first fence, you miss signal in the second. I learned this mid-batch on triple-equals-js — GPT models put the impl in fence 1 (no equality operators) and the call site in fence 2 (where they wrote n === 0). The classifier said "unknown" 40 times until I patched it to extractAllCode.
  • stripJsNoise / stripPyNoise / stripPhpNoise: strip strings and comments before counting tokens. Otherwise the === in // returns true if x === y gets counted as code.

When in doubt, abstain. Classifiers return 'unknown' rather than guess. False positives are way worse than missing votes — they corrupt the data without anyone noticing. The pundit panel can still rip on "the model couldn't decide" but not on "the model used three colons in a row".

Step 4: stats that aren't security theater

Wilson 95% CIs. Not normal-approximation CIs — Wilson handles small N and proportions near 0 or 1 without breaking. Implementation: stats.ts. 11 unit tests covering edge cases.

Shannon entropy as Disagreement Index. Normalized 0–1 across the cross-model vote distribution. 0 means all four models voted the same; 1 means maximum spread. The homepage sorts by this descending — the fight at the top is the bloodiest. I wanted a single number to make "this fight was actually contested" sortable.

Cohen's kappa is implemented but not (yet) computed. Honest answer: it's in stats.ts, ready to compare two classifier outputs (or one classifier vs a hand-labeled gold set), but I haven't hand-labeled a calibration set for the V1 fights. The classifierKappa field in every result JSON is null. That's a real gap and I'm not going to pretend otherwise. Next pass.

Verdicts are reported honestly. 2-2 ties are 2-2 ties — no tiebreaker, no "but if we round". Unanimous fights are unanimous. The two TS-syntax fights right now are legitimate 2-2 ties (interface vs type, React styling) — those are the most interesting results on the site.

Step 5: the pundit panel

After all votes are in, I send each model a follow-up call. The prompt has 4 modes, determined by the verdict shape:

  • Unanimous — model is asked to be smug about being right and mock anyone in the wider world who picks the losing position. ("If you're still using var in 2026, I have questions about your life choices.")
  • Tied — model is asked to defend its camp and dunk on the dissenting peer BY NAME. ("GPT-5.4 mini reaching for type for object shapes like it's never heard of declaration merging.")
  • Majority with one dissenter — majority models get smug + name the dissenter; the dissenter gets to defend its position without apologizing.
  • Unclear — model snarks about the messiness.

Each model gets a per-model prompt: "You are Claude. You voted INTERFACE. Here's how your peers voted: ..." Temperature is 0.8 for personality. I deliberately give the model a representative code sample of its own output so it remembers what it wrote.

The prompts are in pundit.ts — they're full of tonal examples ("a senior dev who has run out of patience", "a partisan in an internet flame war") because LLMs need calibration examples to actually be funny instead of analyst-speak.

I never edit the quotes. Truncation at sentence boundary only. What's on the site is what the model said. Sometimes a quote will say something I disagree with; it stays.

Step 6: the pattern I'd steal for my own eval

The thing that made this project actually shippable, not just a science fair project: persist raw outputs before aggregation, and write a reclassify-in-place script.

Every generation gets saved to a .tmp/ directory before the classifier runs. The classifier outputs feed into the verdict, but the raw model output is on disk. When I found a classifier bug mid-batch (the multi-fence issue above), I patched the classifier and ran scripts/reclassify.ts against the saved outputs — no API re-spend. Same trick for the rerun-pundits.ts script when I rewrote the pundit prompts: load each result JSON, regenerate just the pundit step, patch the file. The full eval was $76. Re-rolling all the pundits cost $2.

If you build an eval, do this from day one. You will find classifier bugs. You will want to change downstream prompts. You will be grateful you didn't have to re-pay for the expensive generation step.

Caveats (the things I want to be honest about)

GPT-5.4 and GPT-5.4 mini are reasoning models. Temperature is silently ignored — the model picks its own sampling internally. Both temperatures (0.0 and 0.7) get requested for bookkeeping consistency, but in practice the GPT-5 family runs at whatever temperature the reasoning controller decides. I report the requested temperature; you can decide whether to care.

This is four models, not all models. Adding Grok, DeepSeek, Qwen, and Opus is the V1.1 pass (already partially wired in providers/index.ts behind enabled: false).

Cohen's kappa against a hand-labeled gold set is not (yet) computed. See the stats section above. This is a real methodology gap.

This is what AI models prefer, not what "developers" prefer. The training data includes a lot of human code, but this isn't a poll of humans. It's a poll of AIs about which humans they imitated. The findings can tell you about model family bias and training data shape; they cannot tell you what the "correct" answer to a style question is.

All the code, audited by you

Everything is on GitHub. Bring your own API keys (ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY — see CONTRIBUTING.md), then:

git clone https://github.com/kmelve/petty-evals
cd petty-evals
pnpm install
pnpm evals --fight=interface-vs-type-ts --dry-run  # see the plan
pnpm evals --fight=interface-vs-type-ts            # run it for real (~$3)

Every number on this site is reproducible from the code in the repo. That's the whole point of an eval: if you can't run it yourself, it's not data, it's vibes.