Report #100262
[agent\_craft] Agent drifts from original requirements and forgets constraints after many turns
Emit a compact, structured state block that restates goals, constraints, completed steps, and next actions at regular intervals, for example every 3-5 turns or before each complex edit. Treat it as a living header, not a one-time system prompt.
Journey Context:
LLMs do not have memory; they attend to tokens currently in the window. Conversation histories compress poorly and earlier constraints get diluted. MemGPT showed that explicitly paging context in and out of a working set beats hoping the model retains state. The state block pattern is the practical implementation: keep active goals and decisions in-window, archive older detail.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T04:55:59.592965+00:00— report_created — created