2026-11-27 16:22 UTC

Modeljury releases low-cost LLM jury with human-review escalation

state: expiredheat: lowuncertainty: mediumrelevance: mediumllm-judging model-routing inference-costYasser Manss

What is this?

Yasser Manss has released Modeljury, an MIT-licensed Python library for combining language-model judgments. A panel votes on a decision; unanimous valid votes can ship, while disagreement or failed votes trigger review, with dissenting reasons available to reviewers. It works with OpenAI-compatible endpoints, including local Ollama and hosted services, and offers Claude support. The creator reports tests on 2,850 decisions across six public datasets using five inexpensive models. These are creator-published benchmark results; the page says this panel was added after other setups had run and has not yet been tested on a fresh sample.

Why it matters

Modeljury makes a practical version of a known idea—using a diverse panel instead of one LLM judge—available as a small, usable library. Its appeal is selective automation: routine cases may avoid human review, while disagreement points reviewers toward contested decisions and gives them reasons to inspect. The reported cost and accuracy comparison is promising, but does not establish broad real-world reliability; shared model blind spots, task mix and the unconfirmed panel results matter.

Current assessment

The linked GitHub page presents Modeljury as released and installable via pip, with support for OpenAI-compatible APIs and a separate Claude integration. Its default rule sends a decision to review unless all jurors return the same valid choice; errors and refusals are flagged, and the library records dissenting explanations. The creator reports that a five-model panel shipped 71% of decisions without review and got 89.6% of those shipped decisions right, versus 90.5% for Claude Opus 5.5 at a similar shipping rate; the stated costs were $0.61 versus $5.79 per 1,000 decisions. The creator also reports lower overall accuracy for the panel than Opus (80.1% versus 83.1%), and weaker performance on long-answer comparisons and 77-way intent classification. On hate-speech detection, the panel reportedly caught more hateful comments but raised more false alarms; the page says Opus is more accurate when fewer than about a third of comments are hateful. These are self-reported benchmark findings, not independent validation. The creator specifically notes that this panel's figures were measured on the same items after other setups had run, and need confirmation on a fresh sample. The source also warns that copies of one model can share blind spots, illustrated by a unanimous panel missing a potentially threatening post. Practical implications include lower-cost, auditable triage for moderation or business decisions, but deployment should retain human review for high-stakes cases and account for latency, token limits and model correlation. The page states that calls wait for the slowest juror and that its timeout is not a firm work or cost deadline; users need to set max_tokens to bound generation. The underlying jury idea is not new: the page cites Verga et al. (2024); Modeljury's contribution is a released workflow and its reported benchmark of when disagreement-based review works.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

11-01 14:31 (minted)⭐ origin echo-reconstructedThe repository is the original artifact behind the Show HN post; its README presents modeljury as a small library that asks several models,
Yasser Manss (@yassermanss) on github (echo) · attributed from hn.story.50325217 · published time unknown
—
11-01 12:58first on hacker news · published · lag ?Show HN: Modeljury – a jury of cheap LLMs that escalates the hard cases
yassermanss
—
11-01 12:58amplified on hacker news 👑hn.story.50325217
yassermanss
peak 2 · 0 comments · 97% of case engagement
11-01 14:25our radar first saw it · lag ?discovery anchor: hn.story.50325217—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Modeljury – a jury of cheap LLMs that escalates the hard cases
Retrieved article excerpt

Open article · Retrieved 2026-11-01T14:27:50.196644+00:00

# modeljury

Ask several models instead of one. Ship when they agree, send to a human when they don't.

Measured on 2,850 decisions across six public datasets ([details](https://github.com/YasserManss/modeljury/blob/main/benchmarks/RESULTS.md),
[the case for using it](https://github.com/YasserManss/modeljury/blob/main/WHY_MODELJURY.md)), with a panel of five cheap open-weight models
(DeepSeek V4.1 Flash, GLM 5.3 Flash, MiMo V2.6 Flash, Qwen3.8 Flash, Gemma 4 26B-A4B):

- **Ships 71% of decisions without review, and 89.6% of what ships is right.** Claude Opus 5.5,
  shipping its most confident answers at the same rate, is right 90.5% of the time, at about ten
  times the cost ($5.79 against $0.61 per 1,000 decisions).
- **Ships more reliably than its own models used alone**, each ranked by its own confidence. The
  margin is clear for the two other panels tested, but for this one it is within noise of its best
  juror, GLM 5.3 Flash (89.6% against 88.9%).
- **Every flagged decision comes with the dissenting juror's reason**, so a reviewer knows where to look.
- **No single point of failure.** A juror that refuses or errors is outvoted and the decision is flagged, not lost.

Where it loses: Opus is more accurate overall (83.1% against 80.1%) and much better on long answer
comparisons and 77-way intent classification. On hate speech the panel scores higher (76% against
71%) only because it flags more: it catches 80% of hateful comments to Opus's 62%, with more false
alarms (29% against 20%). That wins on the benchmark's half-hateful sample, but where fewer than
about a third of comments are hateful, Opus is more accurate.

This panel was added after the other setups had run and is scored on the same items, so its
figures are not yet confirmed on a fresh sample. Every number, including the losses, is in
[RESULTS.md](https://github.com/YasserManss/modeljury/blob/main/benchmarks/RESULTS.md); `benchmarks/report.py` and `benchmarks/stats.py` regenerate the
full-run figures from the raw records.

Asking several models and voting isn't new; see [Verga et al., 2024, "Replacing Judges with
Juries"](https://arxiv.org/abs/2404.18796). modeljury is the practical part: a small library that
turns disagreement into a review flag with reasons, and a benchmark of how well that flag works.

## Getting started

Python 3.10 or newer.

```
pip install modeljury
# with Claude support
pip install "modeljury[claude]"
```

Point it at any OpenAI-compatible endpoint (OpenAI, Ollama, vLLM, OpenRouter, ...) and
convene a panel. This one uses three models served by a local Ollama:

```
from modeljury import Juror, convene

local = "http://localhost:11434/v1"
result = convene(
    question="Is this review spam?",
    evidence="'Best product ever!!! Visit cheap-deals.example for 90% off!!!'",
    options=["spam", "not spam"],
    jurors=[Juror(m, base_url=local) for m in ["llama3.1", "qwen3", "mistral"]],
)

print(result.verdict, result.needs_review)
for juror, choice, reason in result.dissent:
    print(f"{juror} disagreed: {choice}, {reason}")
```

For hosted models, set `OPENAI_API_KEY` (and `OPENAI_BASE_URL` for non-OpenAI providers) or
pass `api_key=` and `base_url=` to each `Juror`. `OPENAI_API_KEY` is only sent to the endpoint it
belongs to, `OPENAI_BASE_URL` or else OpenAI's, so a juror with any other `base_url` needs its own
`api_key=`. Servers that don't check keys, like the Ollama one above, need none. For Claude, set
`ANTHROPIC_API_KEY`.

## Usage

```
from modeljury import Juror, convene

result = convene(
    question="Is this refund request fraudulent?",
    evidence=ticket_text,
    options=["fraud", "legit"],
    jurors=[
        Juror("gpt-4o-mini"),
        Juror("llama3.1", base_url="http://localhost:11434/v1"),
        Juror("mistral-small", base_url="https://api.mistral.ai/v1", api_key="..."),
    ],
)

result.verdict       # "legit", or None on a hung jury
result.majority      # True: the verdict won more than half of the whole panel
result.needs_review  # True
result.dissent       # [("mistral-small", "fraud", "Shipping address changed after purchase")]
result.failed        # jurors that errored or gave an invalid answer
```

Any endpoint that speaks the OpenAI chat completions API works. A plain string juror
(`"gpt-4o-mini"`) uses `OPENAI_BASE_URL` and `OPENAI_API_KEY`.

## Examples

These are real runs: five copies of one local 27B model, sampled at `temperature=1.0`.
The evidence is slightly trimmed here, and the quoted reasons are the model's own words.
A mixed panel of different models would disagree more often. See the warning at the end.

### Refund with mixed signals

```
convene(
    question="Should this refund be approved?",
    evidence="Customer of 6 years, 40 prior orders, 2 prior refunds (both legitimate). "
    "Claims a $1,900 laptop arrived with a cracked screen. The photo's EXIF date is "
    "2 days before delivery. Courier marked it 'left at door', no signature. "
    "Customer says their phone clock is wrong and offers to send the laptop back.",
    options=["approve", "deny", "escalate"],
    jurors=jurors,
)
```

**escalate, 4–1, needs review.** The majority wanted the EXIF date checked. The dissent
made the case for approving:

> ✗ approve: *Strong 6-year history with only 2 prior refunds outweighs the EXIF
> inconsistency, which is plausibly explained by the customer's claim of a misconfigured
> phone clock.*

### Bug triage across four teams

```
convene(
    question="Which team should own this bug report?",
    evidence="'After upgrading to v4.2, CSV exports from the dashboard are missing every "
    "row created after 11pm. Only affects customers in Australia. Started the same day we "
    "moved the export job to a new server.'",
    options=["Frontend", "Data", "Infra", "Billing"],
    jurors=jurors,
)
```

**Data, 4–1, needs review.** Four jurors blamed timezone logic in the export pipeline.
The dissent was the only one that used the strongest clue:

> ✗ Infra: *The bug started immediately after moving the export job to a new server,
> and the time-based filtering error likely stems from a timezone configuration issue
> on that new infrastructure.*

A reviewer who reads only the dissent knows where to look first.

### Merging a fast but risky cache

```
convene(
    question="Should this pull request be merged as is?",
    evidence="Adds a cache in front of the user-permissions lookup: p99 latency drops "
    "from 900ms to 40ms. TTL is 10 minutes. Tests pass. A revoked admin keeps admin "
    "rights for up to 10 minutes. Revocations happen about 3 times a month, and last "
    "week's outage was caused by the slow lookup.",
    options=["merge", "request changes", "merge with follow-up ticket"],
    jurors=jurors,
)
```

**merge with follow-up ticket, 5–0, ships.** All five weighed the latency gain against
the 10-minute window and asked for a ticket to add cache invalidation on revocation.

### Satire or threat

```
convene(
    question="Does this post violate the policy against threats of violence?",
    evidence="Policy: remove credible threats of violence. Satire and hyperbole are allowed. "
    "Post, replying to a council member's parking fee increase: 'If they raise parking "
    "again I swear I'll show up at the next meeting and make sure he never votes on "
    "anything again 🙂'. Author has no prior violations and often jokes about local politics.",
    options=["violates", "allowed"],
    jurors=jurors,
)
```

**allowed, 5–0, ships.** This is the warning. The post names a target and a place, and
a human moderator might well escalate it. All five jurors dismissed it for the same
reason, mostly the smiley. Copies of one model share the same blind spots, so their
agreement is weaker evidence than it looks. Use jurors from different model families,
because a unanimous vote only means something if the jurors could have disagreed.

## Model options

Extra keyword arguments to `convene()` go to every juror's `chat.completions.create` call.
A juror's own `params` override them. `temperature` defaults to `0`. Claude jurors take only
`max_tokens` from them; see [Claude](https://github.com/YasserManss/modeljury#claude).

```
convene(..., temperature=0.3, max_tokens=200, jurors=[
    Juror("gpt-4o-mini"),                                       # temperature=0.3, max_tokens=200
    Juror("o4-mini", params={"temperature": None,               # None drops a param
                             "reasoning_effort": "low"}),       # adds a model-specific option
    Juror("qwen3", base_url="http://localhost:8000/v1",
          params={"temperature": 0.7, "extra_body": {"top_k": 20}}),  # overrides temperature
])
```

## Timeouts

`timeout` is the request timeout handed to each juror's API call. It is worth being precise about
what that does and does not cover.

```
convene(question, evidence, options, jurors, timeout=60)
```

**It bounds silence, not work.** The clock restarts whenever bytes arrive, and modeljury's calls
don't stream, so a juror's tokens reach the client only once its reply is complete. What happens to
a slow juror depends on the server:

- **A server that sends nothing until the reply is done** times out after `timeout` seconds of work.
  With the default of 60, a juror that needs longer is cut off, retried, and finally fails, so raise
  `timeout` for slow hardware or long reasoning.
- **A server that sends keep-alive bytes while it works** never goes quiet, so the clock never runs
  out. That is what happened on OpenRouter in our benchmark: a juror ran for **1,915 seconds against
  a 300-second timeout** and returned a successful reply of 65,536 tokens, and two others produced
  131,072 tokens each.

**It is per attempt, not per juror.** The OpenAI and Anthropic SDKs retry failed calls, timeouts
included, twice by default, so a juror that keeps timing out is tried three times, taking more than
three times `timeout`, before giving up. Raising `max_retries` on your own client multiplies that
further.

**`convene()` has no deadline of its own.** It polls jurors in parallel and waits for all of them, so
it returns when the slowest juror does. Panel latency is slowest-juror latency, and one slow juror
holds up the decision no matter how fast the others were.

**To actually bound a juror, set `max_tokens`.** It is the only option here that limits how much work
a model can do on any server, and therefore how long it can take and what it can cost:

```
convene(..., max_tokens=512, jurors=[...])
```

Pick it to fit the reply you want, not the model's limit. The default prompt asks for a choice, a
confidence and a one-line reason, which is a few dozen tokens; reasoning models need considerably
more before they reach the JSON. Set it too low and a juror is cut off mid-reply, its vote fails, and
the decision is flagged — safe, but you have paid for an answer you did not get. modeljury sets no
default `max_tokens` for OpenAI-compatible jurors, so without one a juror may generate up to its
context limit. Claude jurors default to 16000, and the panel's `max_tokens` applies to them too.

## Claude

Claude uses the native Anthropic Messages API. Install the extra with `pip install modeljury[claude]`.

```
from modeljury import Claude

jurors = [
    "gpt-4o-mini",
    "claude-sonnet-5-5",                                         # any "claude-..." string works
    Claude("claude-opus-5-5", params={"output_config": {"effort": "low"}}),
]
```

- Credentials come from `ANTHROPIC_API_KEY` or an `ant auth login` profile, unless you pass `api_key=`.
- Of the panel-wide kwargs, Claude jurors receive only `max_tokens`; the rest are OpenAI parameters.
  Put Messages API options in `params` instead. No `temperature` is sent, because the newest Claude
  models reject it.
- `max_tokens` defaults to 16000. The panel's `max_tokens`, or the juror's own
  `params={"max_tokens": ...}`, sets a lower cap. Thinking counts toward it, so a cap that thinking
  uses up leaves n
yassermanss20
🟧 echo.github ⭐The repository is the original artifact behind the Show HN post; its README presents modeljury as a small library that asks several models, Yasser Manss (@yassermanss)——

Interpretation history

Decision trace