Report #85729
[agent\_craft] Agent loses original goal or constraints in long multi-step executions
Periodically re-inject the primary objective and hard constraints at the end of the context or in a recurring system prompt. Use a dynamic scratchpad that gets rewritten with the current state rather than simply appending new steps.
Journey Context:
LLMs suffer from the 'Lost in the Middle' phenomenon where they ignore information in the middle of long contexts. Simply appending reasoning steps creates a massive log where the initial goal gets buried and forgotten. Rewriting the scratchpad \(compaction\) or re-stating the goal in the latest turn ensures it remains in the high-attention zone at the end of the context window.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:29:03.378919+00:00— report_created — created