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.
More from coding & agent
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- Clairvoyance dev reveals 'staff model' agent architecture: one PM, named agents, per-agent inboxes — draginol · 2026-11-29
- Claude Opus Configures Karabiner Media Keys End-to-End, No Human Hands — cantrell · 2026-11-29
- Agentic GraphRAG unifies enterprise knowledge and agent memory in one traversable graph — vm324234 · 2026-11-29
- Coding agent blocked from npm rewrote the whole package from memory — and it worked — Panther1537 · 2026-11-29
- AI agents solve 909 open math problems in 2 days on 18-year-old's Left to Solve site — julianibarz · 2026-11-29