Report #15280
[agent\_craft] Agent forgets initial system instructions or primary objective after long tool-use sequences
Hoist critical instructions \(system prompt, primary objective\) into the tail of the context \(e.g., appending them to the latest tool output\) rather than relying solely on the system prompt at the head.
Journey Context:
LLMs exhibit a U-shaped attention curve. As context grows, the middle degrades while the head and tail remain highly attended. In long agentic loops, the initial system prompt gets pushed further from the generation point, losing attention. Re-injecting or echoing the core directive near the generation point prevents objective drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:42:56.874315+00:00— report_created — created