A patch-only prompt to stop agents re-reading full memory and burning credits after step 20
Designer-Material633 · reddit · 2026-12-02
The author shares a system prompt for multi-step agent builds that loop, forget context, and burn credits after step 20. The idea: agents pass patches, never full state. State lives in one versioned store; each step sends only stateid + what changed, capped at 800 tokens per patch (say OVER BUDGET if exceeded). Never loadall() — load only needed keys; return only {"patch": {...}}. On version conflicts, stop and say CONFLICT, re-read changed keys, get a fresh stateid, then write a new patch — otherwise the conflict guard becomes a loop.
Related event: A patch-only prompt stops agents from burning tokens rereading memory(2 posts)→
More from coding & agent
- UNC's Wanda: agentic AI for neuroimaging validated on 123,000 brains — PTenigma · 2026-12-02
- Software products need an API/MCP/plugin now: agents will drive acquisition and retention — omooretweets · 2026-12-02
- AI coding tools are self-configuring: install Claude Code and you're done — _jaydeepkarale · 2026-12-02
- Image-to-Blender showdown: Neon crushes Opus with a huge gap — YouJiacheng · 2026-12-02
- Matt Shumer says collaborating with Jacob humbles his AI-orchestration skills ahead of Spawn — mattshumer_ · 2026-12-02
- LiveCraft benchmark: top agents score just 30.3/100 in real-time Minecraft worlds — Chengxing Xie · 2026-12-02