frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

2•hbarka•2h ago
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.

Comments

anonym29•2h ago
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.

magicalhippo•2h ago
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?

hbarka•2h ago
I agree with your example about a deterministic answer but what I’m looking for is deterministic process. I seek the LLM’s opinion, not a boolean answer. For example, having an agentic skill or hook to do a SWOT analysis may one day (out of 1000 consistent days) result in the agent just produce S-W-O and no T in the process because it was simply context muddled that day.
anonym29•8m ago
In that case, you don't want to be using Claude Code, which is more of a consumer product; you instead want to control the inference stack yourself. What you are looking for is structured output (you give the inference engine a JSON schema you define that the response must conform to) + a JSON schema validator that parses the output, checks if the response is valid JSON. If it is, you're good to go, if not, run the inference again. llama.cpp supports structured outputs, as do some more consumer-oriented tools that wrap like LM Studio. If you don't want to buy hardware yourself or pay exorbitant cloud rental prices, p2p GPU rental marketplaces like vast.ai can offer much more economical options.

Show HN: Tiny – A bytecode VM written in Go with inline Go native functions

https://github.com/confh/Tiny
1•confis•2m ago•0 comments

Oracles and Recursive Self Improvement

1•rando77•3m ago•0 comments

Show HN: Email client focused on reducing phishing risk and inbox overload

https://clutterstrike.com/
1•sourdoughy•6m ago•0 comments

My self-hosted local LLM server setup

https://old.reddit.com/r/LocalLLM/comments/1ub1iu2/my_selfhosted_llm_server_setup_to_access_open
2•onthemarkdata•7m ago•1 comments

The Book with the most meaningful Impact on my Life

https://rz01.org/most-meaningful-book/
1•exitnode•7m ago•0 comments

Concurrent JavaScript: It can work (2017)

https://webkit.org/blog/7846/concurrent-javascript-it-can-work/
1•ksec•7m ago•0 comments

OpenStep User Interface Guidelines [pdf]

https://www.gnustep.org/resources/documentation/OpenStepUserInterfaceGuidelines.pdf
1•jumpocelot•9m ago•0 comments

UK/GB: Plug-in solar: Regulatory amendment and interim product specification

https://www.gov.uk/government/consultations/plug-in-solar
3•DamonHD•9m ago•1 comments

Show HN: An n8n alternative where coding agents build the workflows, not humans

https://velane.sh/
2•abhishekraj272•11m ago•0 comments

Show HN: I built a middleware agent that turns PLC data into REST/gRPC APIs

https://limenedge.com/docs/getting-started
1•Saneth•16m ago•0 comments

Why Japanese Web Design Is So Different (2013)

https://randomwire.com/why-japanese-web-design-is-so-different/
2•downbad_•17m ago•0 comments

Ukraine launches database with 'deep technical data' of Russian weapons

https://kyivindependent.com/ukraine-launches-database-with-deep-technical-data-of-russian-weapons...
4•vrganj•19m ago•0 comments

Getting OpenCode plugins working in your organisation

https://sinn.io/opencode-setup/
2•sifex•20m ago•0 comments

Netref – Networking Quick Reference

https://netref.dev/
1•costabrosky•20m ago•0 comments

The only macOS battery app your MacBook needs

https://www.mac4breakfast.app/
1•1Kapish•21m ago•0 comments

Welcome to the Eternal September of open source. Here's what we plan to do

https://github.blog/open-source/maintainers/welcome-to-the-eternal-september-of-open-source-heres...
3•rolph•22m ago•0 comments

You Might Be Better Off Without Pull Requests(2024)

https://hamvocke.com/blog/better-off-without-pull-requests/
1•rolph•23m ago•0 comments

A new study rewrites the history of the plague

https://www.npr.org/2026/06/19/nx-s1-5860874/a-new-study-rewrites-the-history-of-the-plague
1•Jimmc414•24m ago•0 comments

The Free Press summer reading list

https://www.thefp.com/p/the-free-press-summer-reading-list
2•paulpauper•25m ago•0 comments

The Myth of SpaceX

https://www.theatlantic.com/technology/2026/06/spacex-starlink-ipo-elon-musk-trillionaire/687651/
1•paulpauper•26m ago•0 comments

Tutor who charged thousands to sit exams for students jailed

https://www.bbc.com/news/articles/cq810d7gpkgo
2•paulpauper•27m ago•0 comments

How many of the 170k English words do you REALLY know?

https://vocabulary-size-test.thisisnotai.workers.dev/
1•kashablya•27m ago•0 comments

The Giant Test Kitchen Where Cooks Battle A.I. Slop

https://www.nytimes.com/2026/06/20/business/media/people-inc-ai-test-kitchen.html
1•saikatsg•27m ago•0 comments

Millimeter wave technology drills 100 meters into granite

https://www.thinkgeoenergy.com/quaise-energy-achieves-100-meters-of-drilling-using-millimeter-wav...
2•Jimmc414•31m ago•0 comments

Agents publish HTML on the internet through thethings.ai

https://thethings.ai
1•sptmbr•31m ago•0 comments

Nothing cancels this year's CMF stating unsustainable RAM costs

https://twitter.com/AkisEvangelidis/status/2067855233968156975
3•sim04ful•31m ago•0 comments

Neural Cellular Automata and Recurrent Architectures

https://shonczinner.github.io/posts/gameoflife/
1•kjshsh123•34m ago•0 comments

I don't see any good orchestration system for AI agents

https://ffacu.dev/blog/the-split-terminal-problem
2•ffacu•37m ago•2 comments

Show HN: Make PDFs look scanned (CLI or in the browser via WASM)

https://github.com/overflowy/make-look-scanned
5•overflowy•38m ago•3 comments

Show HN: Saysheep – dumpster diving and free stuff app

https://sloev.github.io/saysheep/
3•supernihil•43m ago•4 comments