Report #15815
[agent\_craft] Agent forgets initial system prompt or tool schemas after long conversation or large file insertion
Put critical instructions \(tool usage, output format\) at the very beginning and very end of the context window. Use compaction/summarization for intermediate steps.
Journey Context:
LLMs exhibit U-shaped attention curves. As context grows, tokens in the middle receive less attention. Agents often append tool results to the end, pushing the system prompt further into the middle. Keeping the most important constraints at the boundaries mitigates this attention decay.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T01:11:25.226896+00:00— report_created — created