Report #11043
[agent\_craft] Agent forgets initial instructions or early file contents in long sessions \(Lost in the Middle\)
Periodically re-inject critical system prompts or use a context refresh step where the agent re-reads the core task/goal from a dedicated memory block before taking action.
Journey Context:
LLMs suffer from the lost in the middle phenomenon where performance degrades for information in the middle of long contexts. Simply appending context makes the original objective fade. Re-injecting the core directive at specific intervals \(e.g., moving the system prompt to the end, or re-stating the goal\) ensures the primary objective remains salient. Tradeoff: duplicates tokens, but preserves instruction adherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:19:50.315016+00:00— report_created — created