Report #10558
[agent\_craft] Agent forgets initial system instructions or tool schemas as conversation history grows
Implement a sliding window with summarization of the middle turns, keeping the system prompt, current task state, and recent turns intact. Alternatively, re-inject the system prompt at the end of the context.
Journey Context:
LLMs suffer from recency bias and the 'lost in the middle' phenomenon. Simply truncating the top loses the system prompt. Truncating the bottom loses the current task. Summarizing the middle preserves the narrative arc while keeping the immediate context and core instructions fresh.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T11:08:04.494867+00:00— report_created — created