CLI · scripts and CI
Check a prompt change before you ship it.
One command ranks the current and the new version's outputs together against your rubric and prints JSON, with a 90% range on every place. Your script decides what counts as worse.
uv tool install supposingThe job
# outputs.jsonl: both versions on the same test inputs # {"id": "next-q4", "prompt": "…", "output": "…"} supposing run outputs.jsonl --rubric rubric.md \ --text-field prompt --text-field output --id-field id \ --dry-run --json | jq .estimate supposing run outputs.jsonl --rubric rubric.md \ --text-field prompt --text-field output --id-field id \ --seed 7 --yes --max-cost 1 --json > result.json jq -r .results.summary result.json
# your rule, for example: fail if any new output sits # clearly below the current one for the same input jq -e '.results.ranking.leaderboard | map({key: .title, value: .}) | from_entries as $r | [$r | keys[] | select(startswith("next-")) | ltrimstr("next-")] | all($r["next-" + .].rank_lo <= $r["current-" + .].rank_hi)' result.json
- Install
uv tool install supposing - Estimate
supposing run … --dry-run --json - Rank
supposing run … --yes --max-cost 1 --json - Your check
jq -e … result.json
- q1better
- q2tie
- q3better
- q4worse
- q5tie
- q6tie
Built to run unattended.
- Clean stdout
- --json puts the result, or the error, on stdout. Progress goes to stderr.
- Priced first
- --dry-run prints the calls and the cost and stops. It spends nothing.
- A hard cap
- --max-cost: no call starts that could pass it. The run keeps the ranking so far, and its note says the cap ended it.
- Never hangs on a prompt
- A paid run needs --yes. Without it, and without a terminal, the command exits with code 7.
Exit codes, not a verdict.
A finished ranking is a success, whatever the order. Supposing has no pass or fail threshold: the rule in your script is the gate.
The rubric is a file, so it is versioned with the prompt:
rubric.mdEach text is a question and an answer. Prefer the answer that answers its own question correctly and plainly. Ignore length.| Exit | Meaning |
|---|---|
| 0 | Success |
| 1 | The run finished but failed or was canceled |
| 2 | Usage error, or nothing to rank |
| 3 | No API key, or the key was refused |
| 6 | Could not reach the API. Safe to retry |
| 7 | The run would spend money and --yes was not given |
| 8 | Not enough credit for the estimate |
In the cloud
supposing run with SUPPOSING_API_KEY set. Paid from credit, priced before every run.
On the runner
supposing rank, the same flags, with your own OPENROUTER_API_KEY. We bill nothing. --max-calls caps any judge.
In GitHub Actions
uses: simulplatform-ai/supposing/[email protected] runs supposing rank in a workflow. The Action guide
The CLI's anonymous usage event is off in CI. Telemetry · Or try a ranking in the web app
Before you try it
Does it pass or fail my build?
No. It has no threshold: a finished ranking exits 0, whatever the order.
Your script reads the JSON and decides, for example failing when a new output's whole range sits below the current one's for the same input. Where two ranges overlap, treat it as a tie.
Will it run unattended?
Yes. Set SUPPOSING_API_KEY, add --yes and --json, and cap the spend with --max-cost.
Without --yes and without a terminal, a paid run exits with code 7 rather than waiting. Pay as you go allows 50 rankings a month; the Subscription has no monthly limit, and supposing rank on your runner with your own OpenRouter key never counts. CLI reference
What does a check cost?
About 7 cents for 40 outputs of about 500 words (20 test inputs, two versions), ranked with Claude Haiku 5.5 at prices on 2026-11-29; judging both orders doubles it.
--dry-run prints the price first. Free to wire up with --judge mock on the runner, whose verdicts are made up. The smallest top-up is $3. Pricing
Is the result repeatable?
--seed fixes the pairing and the sampling behind the ranges.
The judge is a model, so its verdicts can differ between runs: that is what the ranges are for. Compare versions within one run, not across runs.
Where do the outputs go?
With supposing run, the text is stored in your account and sent, through OpenRouter, to the provider of the AI model you choose.
We don't use it to train AI models, and you can delete it at any time. With supposing rank on your runner, it goes only to the judge you pick. Keep personal data out of test outputs. Privacy policy
Can I trust the order?
We make no accuracy claim for your outputs: our two published back-tests are on essays and headlines, not your rubric.
Before a rule gates a release, read the judge's reasons for a few pairs with supposing comparisons and check the judge checks in the result. Judge checks
Wire a ranking into your next release.
Cloud hosted, the engine is free and open source.
Start ranking