Why 50 "DO NOT" rules in a system prompt fail under long context — the Hot Stove principle

RandalSchwartz · reddit · 2026-11-20

The author uses a kitchen analogy: humans don't chant "don't touch the hot stove" — being someone who doesn't touch stoves costs zero working memory. Most AI coding harnesses do the opposite, cramming dozens of negative rules into prompt files and expecting the model to keep reciting them while 50k tokens of stack traces and diffs pile up. Under long context the negative mantra fades and the agent reaches for the stove again.

Drawing on a declarative Makefile harness run across 300+ production tickets, the author argues planning means turning a requested outcome back into an explicit context container (why the code exists, which invariants hold) before writing code. Once a failure is compiled into a scar or a deterministic gate, it stops burning prompt tokens entirely.

Closes by asking which guardrails others have moved from prompt instructions into hard structural boundaries.

Original post →

More from coding & agent

coding & agent channel →