
Since the beginning of time, LLMs have always just agreed with their users. In a comparison where an LLM didn't know what to agree with, it would just choose the first-named option, assuming it was the first one that came to the user's mind for a reason. The reason is far less complex than that. Researchers call it position bias, and we wanted to know how much of it today's AI agents still have.
We asked Claude Code to choose between 100 pairs of options, such as PostgreSQL or MySQL, Slack or Microsoft Teams, McDonald's or Burger King, and heads or tails, 10 times with each option named first.
In 72 of the 100 pairs, the agent gave the same answer in all 20 runs, whatever the order. But when it had no real favourite, the order decided the answer. On a coin toss, it called whichever side we named first 19 times out of 20. (Yes, that means you can rig the coin toss when Claude picks who pays for lunch. No, you shouldn't.)
This article covers which pairs the order moved, the statistics behind the result, and how to check whether the order is deciding an answer you get from an agent.
All 2,000 sessions used Claude Opus 5.5 (claude-opus-5-5) in Claude Code 2.1.326, on 25 and 26 November 2026. Each run was a fresh session in an empty folder, under a clean Claude Code profile with no tools, MCP servers, plugins or memory. Every prompt had the same shape: one sentence of context, then "Should I go with A or B? End your answer with one line: PICK: <name>." The two orders used the same context sentence, so the only difference was which name came first. We ran the 2,000 sessions in a shuffled order so time of day couldn't line up with the order of the names, and we fixed the hypotheses and tests below before the first run.
Does AI favour the first option?
The option named first won 1,031 of the 2,000 runs, or 51.6%. If the order made no difference, you'd expect about 50%.
That 1.6-point gap passes a significance test, but only just, and it comes almost entirely from pairs where the agent had no real preference. When it did have a preference, which was most of the time, swapping the order changed nothing.
| What we measured | Result |
|---|---|
| Pairs with the same answer in all 20 runs | 72 of 100 |
| Pairs with the same split in both orders | 78 of 100 |
| Pairs where the order moved the answer | 22 of 100 (19 towards the first-named option, 3 towards the second) |
| Pairs where the order moved the answer by more than chance, after correcting for testing 100 pairs | 2 (heads or tails, Kafka or RabbitMQ) |
| Runs that picked the first-named option | 1,031 of 2,000 (51.6%) |
Each dot below is a pair, placed by how often its first option won in each order. If the order made no difference, every dot would sit on the dashed line.
Most questions had a clear winner
The agent gave the same answer in all 20 runs on 61 of the 80 commercial questions, no matter how we asked. It picked PostgreSQL over MySQL for a new SaaS app, Slack over Microsoft Teams for a 50-person company, Toyota over Honda for a reliable family car and Coca-Cola over Pepsi for a party, in all 20 runs each time. Swapping the names round didn't move any of them.
| Category | Pairs | Same answer in all 20 runs | Order moved the answer |
|---|---|---|---|
| Developer tools | 25 | 20 | 2 |
| Business software | 20 | 17 | 3 |
| Consumer tech | 15 | 10 | 4 |
| Consumer brands | 20 | 14 | 4 |
| Non-commercial | 20 | 11 | 9 |
The pairs that moved were the ones where the agent's view was already split, which is why non-commercial questions with no clear answer, like tea or coffee, moved most often.
Where position bias shows up: when the AI has no favourite
The pairs below show what happens when the agent has no settled view of its own.
Heads or tails
A coin toss is the purest test, because there's no right answer to know. All 20 answers said the call was 50/50, yet the agent picked whichever side we'd named first in 19 of them.
Its reasons changed with the order. Asked "Heads or Tails?", it picked heads as "the classic", and asked "Tails or Heads?", it picked tails for a different reason:
It's a 50/50 either way … People call heads more often, so tails is a fine contrarian choice.
Both reasons sound sensible, but the order of the names decided the pick, and the agent found a reason for whichever side came first.
Kafka vs RabbitMQ
This was the one commercial pair where the effect was strong enough to count on its own. We said we needed "a message broker for event processing between services", which is a real toss-up: Kafka suits replayable event streams, RabbitMQ suits simpler message passing, and our sentence didn't say which we needed.
Kafka won 10 of 10 when named first and 2 of 10 when named second. The answers listed the same pros and cons either way and differed only in the recommendation at the end.
The answers that picked RabbitMQ admitted it was a close call: 7 of the 8 offered to reconsider if we gave more detail. One ended: "If you share your expected message rate, number of consuming services, and whether you need replay, I can confirm or flip this." The Kafka answers were more confident, with only 5 of 12 making a similar offer. One opened with "For event processing between services, I'd go with Kafka."
Snowflake vs BigQuery: the second name won
The order doesn't always favour the first name. When we asked about a data warehouse for an analytics team, the agent picked whichever option we named second in 16 of 20 runs:
After correcting for testing 100 pairs, this one isn't significant on its own, so treat it as a hint. It does match research on older models: a 2025 study found that models favour the first option when all options are strong, and later options otherwise, so the direction of the effect isn't fixed.
The smaller shifts
The other pairs that moved shifted by a few runs, for example:
- Asana or Monday.com for a marketing team: Asana won 9 of 10 when named first and 5 of 10 when named second.
- China or India for a two-week trip: China won 5 of 10 when named first and 2 of 10 when named second.
- Canon or Nikon for a first mirrorless camera: Canon won 7 of 10 when named first and 5 of 10 when named second.
None of these is large enough to rule out chance on its own, but they lean the same way: of the 22 pairs that moved, 19 moved towards the first-named option.
The statistics: null hypothesis and t-test results
We fixed the hypotheses and tests before running anything:
- Null hypothesis (H₀): the order of the names makes no difference. Across pairs, the first-named option is picked 50% of the time.
- Alternative (H₁): the first-named option is picked more or less than 50% of the time. We tested both directions, because earlier research found models sometimes favour the last option.
- Measure: for each pair, the share of its 20 runs that picked whichever option was named first. A pair with no order effect scores 50%, whatever its winner.
- Primary test: a two-sided one-sample t-test of those 100 scores against 50%, at α = 0.05.
| Test | Pairs | Result | p-value |
|---|---|---|---|
| Primary: one-sample t-test, all pairs | 100 | First-named picked 51.6% (95% CI 50.0% to 53.1%), t(99) = 2.02 | 0.046 |
| Wilcoxon signed-rank test (check that doesn't assume a normal distribution) | 100 | 22 pairs moved, 19 of them towards the first-named option | 0.013 |
| Cochran-Mantel-Haenszel test (pools the runs within each pair) | 100 | Odds of picking an option 1.97× higher when named first (95% CI 1.30 to 2.99) | 0.001 |
| Close calls only (no option won more than 80% of runs) | 15 | First-named picked 58% | 0.12 |
| Pairs with a clear winner | 85 | First-named picked 50.4% | 0.052 |
| Commercial pairs only | 80 | First-named picked 50.7% | 0.36 |
| Non-commercial pairs only | 20 | First-named picked 55% | 0.042 |
| Per-pair Fisher's exact tests, Benjamini-Hochberg corrected | 100 | Significant for heads or tails, and Kafka or RabbitMQ |
So we reject the null hypothesis at the 5% level: the order of the names has an effect. But the effect is small (Cohen's d = 0.20), and the p-value of 0.046 is only just under the 0.05 threshold.
Two checks show how much of that p = 0.046 depends on the coin-toss-style questions:
- Leaving out the two pure-chance controls (heads or tails, and odd or even) raises the t-test to p = 0.11, which is no longer significant. The Cochran-Mantel-Haenszel test still gives p = 0.03. We only decided to run this check after seeing the data.
- Testing the 80 commercial pairs on their own, a comparison we planned from the start, gives no significant result on either test: p = 0.36 on the t-test and p = 0.18 on the Cochran-Mantel-Haenszel test.
The close calls showed a bigger effect (58%) than the pairs with a clear winner (50.4%), as we expected. But there were only 15 close calls, too few for the difference to be significant on its own (Welch's t-test, p = 0.13). To show the effect within close calls, you'd need to find more close calls and run them many more times.
How to avoid position bias when an AI picks for you
Position bias is a narrow kind of AI bias, and in our study it had very little effect on the agent overall, less than earlier research would suggest. A 2025 study of LLM recommenders, which ranked longer candidate lists, found that items earlier in the list were more likely to be recommended. Opus 5.5 had a settled view on most of the products we asked about, and that view decided the answer. We've looked at what those default picks are in Claude Code's choice of vendors.
The order matters when the agent doesn't have a settled view. Then your phrasing decides the answer, and the agent still gives a reason for its pick. Kafka or RabbitMQ, Snowflake or BigQuery, Asana or Monday.com: these are the kinds of questions people bring to an agent because they're hard to call.
| If you are… | What to do |
|---|---|
| Asking an agent to choose between two options | Ask both ways round, in fresh sessions. If the answer follows the first name, the agent doesn't have a real preference |
| Getting an answer with "it depends" or "I can firm this up" | Take it at face value: the pick at the end is a tiebreak. Give the agent the detail it asked for |
| A vendor checking how agents rate you against a competitor | Test both orders, as part of an agent experience audit. One phrasing can make you look stronger or weaker than you are |
| Writing a comparison prompt for a test or benchmark | Swap the order across runs, so the order of the names doesn't decide your result |
The quickest check is to ask "A or B?" and "B or A?" a few times each, in fresh sessions. When the answers follow whichever name came first, you've found a toss-up, and the order of the names is deciding it for you.
Full results
All 100 pairs, with the picks in each order
Each row is 10 runs per order. "Moved" marks the pairs where the split changed when we swapped the names.
| Pair | Category | Asked "A or B?" | Asked "B or A?" | Moved? |
|---|---|---|---|---|
| PostgreSQL / MySQL | Dev tools | PostgreSQL 10, MySQL 0 | PostgreSQL 10, MySQL 0 | |
| Prisma / Drizzle | Dev tools | Prisma 0, Drizzle 10 | Prisma 0, Drizzle 10 | |
| AWS / Google Cloud | Dev tools | AWS 1, Google Cloud 9 | AWS 1, Google Cloud 9 | |
| Vercel / Netlify | Dev tools | Vercel 0, Netlify 10 | Vercel 0, Netlify 10 | |
| React / Vue | Dev tools | React 10, Vue 0 | React 10, Vue 0 | |
| GitHub / GitLab | Dev tools | GitHub 10, GitLab 0 | GitHub 10, GitLab 0 | |
| Stripe / Paddle | Dev tools | Stripe 0, Paddle 10 | Stripe 0, Paddle 10 | |
| Supabase / Firebase | Dev tools | Supabase 10, Firebase 0 | Supabase 10, Firebase 0 | |
| Datadog / New Relic | Dev tools | Datadog 2, New Relic 8 | Datadog 2, New Relic 8 | |
| Sentry / Bugsnag | Dev tools | Sentry 10, Bugsnag 0 | Sentry 10, Bugsnag 0 | |
| Redis / Memcached | Dev tools | Redis 10, Memcached 0 | Redis 10, Memcached 0 | |
| Cloudflare / Fastly | Dev tools | Cloudflare 10, Fastly 0 | Cloudflare 10, Fastly 0 | |
| Auth0 / Clerk | Dev tools | Auth0 0, Clerk 10 | Auth0 0, Clerk 10 | |
| Python / Go | Dev tools | Python 0, Go 10 | Python 0, Go 10 | |
| Tailwind CSS / Bootstrap | Dev tools | Tailwind CSS 10, Bootstrap 0 | Tailwind CSS 10, Bootstrap 0 | |
| Jest / Vitest | Dev tools | Jest 0, Vitest 10 | Jest 0, Vitest 10 | |
| npm / pnpm | Dev tools | npm 0, pnpm 10 | npm 0, pnpm 10 | |
| Terraform / Pulumi | Dev tools | Terraform 10, Pulumi 0 | Terraform 10, Pulumi 0 | |
| GitHub Actions / CircleCI | Dev tools | GitHub Actions 10, CircleCI 0 | GitHub Actions 10, CircleCI 0 | |
| Kafka / RabbitMQ | Dev tools | Kafka 10, RabbitMQ 0 | Kafka 2, RabbitMQ 8 | Towards first-named |
| Elasticsearch / Algolia | Dev tools | Elasticsearch 0, Algolia 10 | Elasticsearch 0, Algolia 10 | |
| Twilio / Vonage | Dev tools | Twilio 10, Vonage 0 | Twilio 10, Vonage 0 | |
| SendGrid / Postmark | Dev tools | SendGrid 0, Postmark 10 | SendGrid 0, Postmark 10 | |
| DigitalOcean / Linode | Dev tools | DigitalOcean 8, Linode 2 | DigitalOcean 8, Linode 2 | |
| Snowflake / BigQuery | Dev tools | Snowflake 4, BigQuery 6 | Snowflake 10, BigQuery 0 | Towards second-named |
| Slack / Microsoft Teams | Business software | Slack 10, Microsoft Teams 0 | Slack 10, Microsoft Teams 0 | |
| Notion / Confluence | Business software | Notion 10, Confluence 0 | Notion 10, Confluence 0 | |
| Jira / Linear | Business software | Jira 0, Linear 10 | Jira 0, Linear 10 | |
| HubSpot / Salesforce | Business software | HubSpot 10, Salesforce 0 | HubSpot 10, Salesforce 0 | |
| Zoom / Google Meet | Business software | Zoom 0, Google Meet 10 | Zoom 0, Google Meet 10 | |
| Shopify / WooCommerce | Business software | Shopify 10, WooCommerce 0 | Shopify 10, WooCommerce 0 | |
| Mailchimp / ConvertKit | Business software | Mailchimp 0, ConvertKit 10 | Mailchimp 0, ConvertKit 10 | |
| Figma / Sketch | Business software | Figma 10, Sketch 0 | Figma 10, Sketch 0 | |
| Asana / Monday.com | Business software | Asana 9, Monday.com 1 | Asana 5, Monday.com 5 | Towards first-named |
| QuickBooks / Xero | Business software | QuickBooks 10, Xero 0 | QuickBooks 10, Xero 0 | |
| Google Workspace / Microsoft 365 | Business software | Google Workspace 10, Microsoft 365 0 | Google Workspace 10, Microsoft 365 0 | |
| Zendesk / Intercom | Business software | Zendesk 1, Intercom 9 | Zendesk 4, Intercom 6 | Towards second-named |
| Dropbox / Google Drive | Business software | Dropbox 0, Google Drive 10 | Dropbox 0, Google Drive 10 | |
| Gusto / Rippling | Business software | Gusto 10, Rippling 0 | Gusto 10, Rippling 0 | |
| Calendly / Cal.com | Business software | Calendly 1, Cal.com 9 | Calendly 0, Cal.com 10 | Towards first-named |
| Webflow / WordPress | Business software | Webflow 10, WordPress 0 | Webflow 10, WordPress 0 | |
| Canva / Adobe Express | Business software | Canva 10, Adobe Express 0 | Canva 10, Adobe Express 0 | |
| DocuSign / Dropbox Sign | Business software | DocuSign 0, Dropbox Sign 10 | DocuSign 0, Dropbox Sign 10 | |
| Trello / ClickUp | Business software | Trello 10, ClickUp 0 | Trello 10, ClickUp 0 | |
| Squarespace / Wix | Business software | Squarespace 10, Wix 0 | Squarespace 10, Wix 0 | |
| iPhone / Samsung Galaxy | Consumer tech | iPhone 10, Samsung Galaxy 0 | iPhone 10, Samsung Galaxy 0 | |
| Mac / Windows PC | Consumer tech | Mac 10, Windows PC 0 | Mac 10, Windows PC 0 | |
| Spotify / Apple Music | Consumer tech | Spotify 6, Apple Music 4 | Spotify 5, Apple Music 5 | Towards first-named |
| Netflix / Disney+ | Consumer tech | Netflix 10, Disney+ 0 | Netflix 10, Disney+ 0 | |
| PlayStation 5 / Xbox Series X | Consumer tech | PlayStation 5 10, Xbox Series X 0 | PlayStation 5 10, Xbox Series X 0 | |
| Kindle / Kobo | Consumer tech | Kindle 0, Kobo 10 | Kindle 0, Kobo 10 | |
| Bose / Sony | Consumer tech | Bose 2, Sony 8 | Bose 1, Sony 9 | Towards first-named |
| Chrome / Firefox | Consumer tech | Chrome 0, Firefox 10 | Chrome 0, Firefox 10 | |
| Gmail / Outlook | Consumer tech | Gmail 10, Outlook 0 | Gmail 10, Outlook 0 | |
| 1Password / Bitwarden | Consumer tech | 1Password 1, Bitwarden 9 | 1Password 1, Bitwarden 9 | |
| NordVPN / ExpressVPN | Consumer tech | NordVPN 8, ExpressVPN 2 | NordVPN 10, ExpressVPN 0 | Towards second-named |
| Garmin / Apple Watch | Consumer tech | Garmin 10, Apple Watch 0 | Garmin 10, Apple Watch 0 | |
| Canon / Nikon | Consumer tech | Canon 7, Nikon 3 | Canon 5, Nikon 5 | Towards first-named |
| Dell / Lenovo | Consumer tech | Dell 0, Lenovo 10 | Dell 0, Lenovo 10 | |
| Ring / Nest | Consumer tech | Ring 0, Nest 10 | Ring 0, Nest 10 | |
| McDonald's / Burger King | Consumer brands | McDonald's 9, Burger King 1 | McDonald's 9, Burger King 1 | |
| Coca-Cola / Pepsi | Consumer brands | Coca-Cola 10, Pepsi 0 | Coca-Cola 10, Pepsi 0 | |
| Nike / Adidas | Consumer brands | Nike 8, Adidas 2 | Nike 8, Adidas 2 | |
| Starbucks / Dunkin' | Consumer brands | Starbucks 0, Dunkin' 10 | Starbucks 0, Dunkin' 10 | |
| Uber / Lyft | Consumer brands | Uber 10, Lyft 0 | Uber 10, Lyft 0 | |
| Airbnb / Booking.com | Consumer brands | Airbnb 4, Booking.com 6 | Airbnb 2, Booking.com 8 | Towards first-named |
| Toyota / Honda | Consumer brands | Toyota 10, Honda 0 | Toyota 10, Honda 0 | |
| Visa / Mastercard | Consumer brands | Visa 1, Mastercard 9 | Visa 0, Mastercard 10 | Towards first-named |
| Amazon / Walmart | Consumer brands | Amazon 0, Walmart 10 | Amazon 0, Walmart 10 | |
| IKEA / Wayfair | Consumer brands | IKEA 10, Wayfair 0 | IKEA 10, Wayfair 0 | |
| Tesla / Hyundai | Consumer brands | Tesla 1, Hyundai 9 | Tesla 0, Hyundai 10 | Towards first-named |
| Delta / United | Consumer brands | Delta 10, United 0 | Delta 10, United 0 | |
| Marriott / Hilton | Consumer brands | Marriott 0, Hilton 10 | Marriott 0, Hilton 10 | |
| KFC / Popeyes | Consumer brands | KFC 0, Popeyes 10 | KFC 0, Popeyes 10 | |
| Domino's / Pizza Hut | Consumer brands | Domino's 10, Pizza Hut 0 | Domino's 10, Pizza Hut 0 | |
| Costco / Sam's Club | Consumer brands | Costco 10, Sam's Club 0 | Costco 10, Sam's Club 0 | |
| American Express / Chase | Consumer brands | American Express 0, Chase 10 | American Express 0, Chase 10 | |
| Duolingo / Babbel | Consumer brands | Duolingo 1, Babbel 9 | Duolingo 0, Babbel 10 | Towards first-named |
| HelloFresh / Blue Apron | Consumer brands | HelloFresh 10, Blue Apron 0 | HelloFresh 10, Blue Apron 0 | |
| Fidelity / Vanguard | Consumer brands | Fidelity 10, Vanguard 0 | Fidelity 10, Vanguard 0 | |
| Heads / Tails | Non-commercial | Heads 10, Tails 0 | Heads 1, Tails 9 | Towards first-named |
| Odd / Even | Non-commercial | Odd 6, Even 4 | Odd 4, Even 6 | Towards first-named |
| United Kingdom / United States | Non-commercial | United Kingdom 5, United States 5 | United Kingdom 4, United States 6 | Towards first-named |
| China / India | Non-commercial | China 5, India 5 | China 2, India 8 | Towards first-named |
| Canada / Australia | Non-commercial | Canada 1, Australia 9 | Canada 0, Australia 10 | Towards first-named |
| Paris / Rome | Non-commercial | Paris 0, Rome 10 | Paris 0, Rome 10 | |
| Japan / South Korea | Non-commercial | Japan 10, South Korea 0 | Japan 10, South Korea 0 | |
| Cat / Dog | Non-commercial | Cat 10, Dog 0 | Cat 10, Dog 0 | |
| Tea / Coffee | Non-commercial | Tea 3, Coffee 7 | Tea 2, Coffee 8 | Towards first-named |
| Red / Blue | Non-commercial | Red 10, Blue 0 | Red 10, Blue 0 | |
| Mountains / Beach | Non-commercial | Mountains 10, Beach 0 | Mountains 10, Beach 0 | |
| Python / JavaScript | Non-commercial | Python 10, JavaScript 0 | Python 10, JavaScript 0 | |
| Chess / Go | Non-commercial | Chess 9, Go 1 | Chess 8, Go 2 | Towards first-named |
| Running / Cycling | Non-commercial | Running 10, Cycling 0 | Running 10, Cycling 0 | |
| Morning / Evening | Non-commercial | Morning 10, Evening 0 | Morning 10, Evening 0 | |
| Summer / Winter | Non-commercial | Summer 10, Winter 0 | Summer 10, Winter 0 | |
| Window / Aisle | Non-commercial | Window 1, Aisle 9 | Window 0, Aisle 10 | Towards first-named |
| Spanish / French | Non-commercial | Spanish 10, French 0 | Spanish 10, French 0 | |
| Physics / Chemistry | Non-commercial | Physics 10, Chemistry 0 | Physics 9, Chemistry 1 | Towards first-named |
| Fiction / Non-fiction | Non-commercial | Fiction 10, Non-fiction 0 | Fiction 10, Non-fiction 0 |
