Report #24416
[agent\_craft] Agent overwrites important system instructions because dynamic context \(tool results\) pushes them out of the effective attention window
Structure the context window explicitly: \[System/Identity\] -> \[Current State/Goal\] -> \[Dynamic Context/Tool Results\] -> \[Immediate History\] -> \[Re-stated Goal\].
Journey Context:
The recency bias of LLMs means the most recent tool outputs dominate attention. If the system prompt is thousands of tokens away, the agent might violate constraints. By moving the 'current objective' to the end of the prompt \(or dynamically injecting it right before generation\), you anchor the LLM's reasoning to the immediate goal and prevent constraint drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:23:32.740834+00:00— report_created — created