Prompt Rules Break by Turn 12: Reddit Author Enforces Agents With Lifecycle Hooks + Go Binary

Adorable-Cost-3249 · reddit · 2026-11-11

The author runs a single-agent workspace on Google Antigravity that simultaneously handles multi-repo coding and personal tasks (calendar, email, investment research). Initially they tried constraining behavior with ever-stricter rules in AGENTS.md, but weeks of real-world use revealed a clear pattern: prompt instructions work in turn 1 and silently stop working by turn 12.

Three failure modes of pure prompt rules

The fix: prompts as advice, lifecycle hooks as law

The author wrote a zero-dependency pure Go CLI (./bin/hq) wired into SessionStart/PreToolUse/Stop hooks:

Core takeaway: moving state and boundary checks out of prompts and into lifecycle hooks is the only way to stay stable long-term.

Original post →

More from coding & agent

coding & agent channel →