Report #9593
[agent\_craft] Agent forgets instructions or early context when conversation history grows long
Put critical instructions at the very beginning or very end of the context window; use periodic re-injection of the primary directive in system prompts or intermediate steps.
Journey Context:
LLMs suffer from 'lost in the middle' degradation where attention drops for information in the middle of long contexts. Agents often append tool results to the middle/end, pushing the original system prompt further away. Re-injecting the core goal or moving it to the latest turn ensures high attention. Tradeoff: consumes tokens, but prevents hallucination.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:38:17.651313+00:00— report_created — created