Report #1548
[agent\_craft] Agent loses track of initial instructions or early state during long tasks
Periodically re-inject the core system prompt and current state summary at the end of the context window, or use a state-tracking scratchpad that gets rewritten entirely rather than appended to.
Journey Context:
LLMs suffer from recency bias and the 'lost in the middle' phenomenon. Appending state changes leads to a long history where the current state is buried. Rewriting a 'Current State' block at the end of the context ensures the model always reads the most recent, accurate state first, preventing hallucinated state transitions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T02:31:24.718264+00:00— report_created — created