Best of N for agents
Let your agent pick the best of N.
Your agent writes several drafts, plans or answers. One MCP call compares them in pairs, in both orders, against a one-sentence rubric, and names a winner only when the record is clear.
claude mcp add --transport http supposing https://api.supposing.app/mcp| against option 1 | against option 2 | against option 3 | against option 4 | |
|---|---|---|---|---|
| option 1 | 5 of 8 | 0 of 8 | 6 of 8 | |
| option 2 | 3 of 8 | 1 of 8 | 7 of 8 | |
| option 3 | 8 of 8 | 7 of 8 | 8 of 8 | |
| option 4 | 2 of 8 | 1 of 8 | 0 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.
Three steps, then it's the agent's job.
- 1
Connect
In Claude Code, add the hosted server, then run
/mcpand sign in. In Claude or ChatGPT, add a custom connector with the same URL.No account yet? Run it on your machine with the free mock judge, or your Claude subscription:
claude mcp add --transport http supposing https://api.supposing.app/mcp
claude mcp add supposing -- uvx --python 3.12 'supposing[mcp]' mcp --local
- 2
Tell it when
Add this to the 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.
- 3
It calls compare_options
Two to eight options and a rubric. The tool waits and answers in one sentence, then the ranked options.
{ "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
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
More than eight, or long ones
rank_documents
Up to 2,000 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.
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.
With no account, the server runs on your machine with the free mock judge.