Test: Claude Code slightly favors the first option in two-choice questions
Understand this story
The tech blog techstackups.com tested whether Claude Code favors the option that appears first in two-choice questions. The test ran Claude Opus 5.5 in Claude Code 2.1.326 2,000 times, each time as a new session in an empty folder with a clean configuration, with no tools, plugins, or memory; the option that appeared first won 1,031 times, or 51.6%, only slightly above 50%. Of 100 question sets, 72 gave completely identical answers across 20 runs, and only 22 sets had their answers truly changed by order, of which 19 favored the option that appeared first; on a coin-flip question, 19 of 20 runs chose the side named first.
AI overview based on source reports · Updated 29 min ago
Coverage timeline
Follow the coverage to explore different perspectives.
- Hacker News AILLM Position Bias: Does Naming an Option First Change an AI's Answer?
A test of 2,000 Claude Code sessions (Claude Opus 5.5) across 100 pairs of options found the first-named option was picked 51.6% of the time, a small but statistically significant effect (p = 0.046, Cohen's d = 0.20). In 72 of 100 pairs the agent gave the same answer in all 20 runs regardless of order, and the order effect came almost entirely from pairs with no clear preference, such as a coin toss where it called the first-named side 19 times out of 20. The authors note the effect is small and that testing the 80 commercial pairs alone gave no significant result (p = 0.36).
Activity for this story
Not enough continuous observations to show a trend yet.