cd /news/large-language-models/ask-hn-what-technique-do-you-use-to-… · home topics large-language-models article
[ARTICLE · art-34975] src=news.ycombinator.com ↗ pub= topic=large-language-models verified=true sentiment=· neutral

Ask HN: What technique do you use to make Claude Code deterministic?

A Hacker News user asks the community how to make Claude Code produce deterministic results, sparking debate about the fundamental non-determinism of large language models and whether 100% reliability is achievable or even necessary.

read1 min views1 publishedJun 20, 2026

I’m curious to hear from the HN community how you tamed this probabilistic non-deterministic genius generate a deterministic and repeatable result 100% percent of the time.

Anyone telling you they have tamed LLMs into producing 100% deterministic answers has either scoped the problem space so narrowly as to border on meaningless (e.g. "Is earth flat?" with a structured output schema of a single JSON boolean value), hasn't done robust statistical validation to actually confirm truly deterministic outputs, or both.

LLMs are fundamentally non-deterministic. Trying to use them to solve deterministic problem spaces is selecting the wrong tool for the job, and expecting them to be 100% reliable is the wrong mindset for working with them.

Right, but do you care about how the sausage was made, or just how it looks and tastes?

You can get Claude Code to fulfill some interface contract with almost certainty. Exactly how it does that will vary between runs.

So to me the more interesting question is, what exactly is it you care about inside the sausage, and how do you verify that it's there in the right amounts?

── more in #large-language-models 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ask-hn-what-techniqu…] indexed:0 read:1min 2026-06-20 ·