November 12, 2025
Counting is hard, apparently
Claude Code Introduces Off-by-One Errors
Claude Code’s counting hiccup: one extra digit, endless drama
TLDR: Claude Code is showing a massive number one digit too high in its bash output, then contradicting itself. Commenters split between blaming how computers store big numbers and AI weirdness, while others roast the tool’s rough edges—making this a funny but important reminder to double‑check AI tooling.
Claude Code just pulled a classic off-by-one stunt: a giant number that should read 348555896224571969 gets shown as 348555896224571970. The community pounced. rrwright dropped a “Try it yourself” dare, and timenotwasted’s demo was peak chaos—Claude’s bash view shows the wrong number, then its summary cheerfully claims the right one. Cue the memes about “AI confidence inflation.”
Two camps formed fast. The pragmatists, led by fulafel, shouted “Smells like floating point”, pointing at how computers often store big numbers in a way that can round them—think JavaScript’s number quirks and floating‑point arithmetic. The AI realists, like Insanity, warned this isn’t a two‑minute fix: weird training and system behavior make bugs like this slippery and unpredictable.
Then came the vibes check. CGamesPlay summed up the mood: Claude Code is “the most useful and lowest quality” app they use—helpful yet riddled with tiny annoyances, vibe-first docs, and even pushy install behavior. Users joked that Claude’s new feature is “+1 optimism,” and if you need exact numbers, you should “count twice, trust once.” Despite the uproar, most admitted they’ll keep using it—just with a raised eyebrow and a calculator handy. Version drama footnote: v2.0.37 on macOS Sonnet 4.5
Key Points
- •Claude Code displays large integer outputs from bash incorrectly with an off-by-one error.
- •Expected output is 348555896224571969, but Claude Code shows 348555896224571970.
- •The same command in a native terminal returns the correct value (348555896224571969).
- •The issue can be reproduced using bash and also with jq within Claude Code.
- •Environment details: Claude Code v2.0.37, Sonnet 4.5 (Claude Max), macOS (Darwin 24.3.0).