Best of N for agents

Let your agent pick the best of N.

Your agent writes several drafts. One MCP call compares them in pairs, both ways round, and names a winner only when the record is clear.

claude mcp add --transport http supposing https://api.supposing.app/mcp
Row beat column · 8 calls. Example head-to-head record: for each pair of options, how many of 8 judge calls the row's option won
against option 1against option 2against option 3against option 4
option 15 of 80 of 86 of 8
option 23 of 81 of 87 of 8
option 38 of 87 of 88 of 8
option 42 of 81 of 80 of 8

option 3 wins: the judge preferred it in 8 of 8 calls against option 1, 7 of 8 calls against option 2 and 8 of 8 calls against option 4.

→ your agent uses option 3Example data · 48 judge calls

Connect once. Then tell it when.

Add to your agent's instructions

When you write several candidate drafts for the user, call the supposing compare_options tool with the drafts and a one-sentence rubric of what "better" means here. Use the winner. If the verdict says the top options are tied, show the user both.

When it's close, it says so

No clear winner: option 1 leads option 2 by 6 of 8, which a judge with no preference gives about 1 time in 3. Show both.

→ your agent shows you both

No account? Run it on your machineFree with the mock judge, or on your Claude subscription.
claude mcp add supposing -- uvx --python 3.12 'supposing[mcp]' mcp --local

The mock judge makes up its verdicts: it is for trying the flow. In Claude or ChatGPT, add a custom connector with the hosted URL instead. Set up your agent

The call your agent sendscompare_options: two to eight options and a one-sentence rubric.
{
  "tool": "compare_options",
  "arguments": {
    "rubric": "Which reply to an angry customer is most likely to keep them? Prefer specific, short and honest.",
    "options": [
      "We're sorry. Your refund of $40 is on its way today, and here is a code for next month.",
      "Thank you for reaching out! We value your feedback and will look into this.",
      "Refund sent. Sorry about that."
    ]
  }
}

option 1 wins: the judge preferred it in 8 of 8 calls against option 2 and 8 of 8 calls against option 3.

The answer to this call with Claude Haiku judging, from the docs. Pick the best draft

More than eight options, or long onesrank_documents takes up to 2,000.

Pass the documents as {title, text}. It returns a run_id at once; the agent follows it with get_run and reads get_results: a verdict in one sentence, then each document's 90% range of places. top_n settles only the top few, and max_cost_usd caps the spend. MCP tools

Before you try it

Which tool should the agent call?

compare_options for 2 to 8 short options, each up to 20,000 characters: it waits, 45 seconds by default, and answers.

rank_documents for more or longer documents, 2 to 2,000: it starts a run in the background and returns a run_id for get_run and get_results.

When does it name a winner?

For 2 to 4 options, every pair is judged 8 times in both orders, and a winner is named only if the judge preferred it in at least 7 of 8 calls against every other option.

Otherwise the answer says "No clear winner" with the closest record, so the agent can show you both. 5 to 8 options are answered from the ranking's ranges.

What does a call cost?

2 options make 8 judge calls, 3 make 24, 4 make 48 and 8 make 56.

With the default judge, quick, that is a few cents, paid from your workspace's credit; estimate_only returns the cost without judging anything. There is no monthly fee and the smallest top-up is $3. On your own machine, the mock judge is free and claude_cli uses your Claude subscription. Pricing

Can my agent trust the pick?

The counts describe this judge on these texts.

Our published results: on 100 learner essays from the public ELLIPSE dataset, Supposing agreed with trained human raters on 86% of pairs; the same LLM asked for scores alone agreed on 67%. On 300 real headline tests from the public Upworthy archive, Supposing picked the headline with more clicks 77% of the time; the same LLM asked for scores alone, 71%. Your agent's drafts are a different test, so read a few verdicts. The essay study

Where do the candidates go?

The text is stored in your account and sent, through OpenRouter, to the provider of the AI model you choose as judge.

We don't use it to train AI models, and you can delete it at any time. Documents an agent sends inline to rank_documents are deleted after 30 days unless it passes keep. Leave personal details out of what the agent sends. Privacy policy

How much setup is there?

One command in Claude Code, a JSON entry in Cursor, or a custom connector in Claude or ChatGPT, then sign in and set what the connection may spend ($5 a run and $20 a day by default).

With no account, the server runs on your machine with the free mock judge.

Give your agent a second opinion.

Cloud hosted, the engine is free and open source.

Start ranking