Report #103267
[counterintuitive] Temperature 0 is the correct default for deterministic coding tasks
Use low temperature \(0.1-0.3\) rather than exactly 0 for coding, and prefer deterministic validation \(tests, lint, schema checks\) over relying on sampling temperature for correctness. Use temperature 0 only when you need bit-for-bit reproducibility and understand the provider\\'s sampling semantics.
Journey Context:
Temperature 0 is often recommended as 'deterministic mode,' but actual implementations vary: some providers map temperature 0 to greedy decoding, others still apply a small softmax temperature, and token healing/effects can make outputs non-deterministic across API versions. More importantly, greedy decoding can get the model stuck in locally likely but globally wrong completions. A slightly higher temperature with top-p sampling often produces better code because it lets the model escape repetitive local minima, while your test suite or static validator enforces correctness. Determinism should come from validation, not sampling tricks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T05:18:10.443613+00:00— report_created — created