Report #4280
[agent\_craft] System prompt instructions ignored due to weight of recent tool outputs in long sessions
Re-inject critical system constraints as a prefix to the latest user/tool message, rather than relying solely on the top of the context window.
Journey Context:
Attention mechanisms in transformers weigh recent tokens heavily. A system prompt at index 0 gets diluted after 50k tokens of tool chatter. By echoing the most critical constraints in the latest turn, you force the model's attention back to the rules, preventing constraint violation in later stages of long agentic loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T19:09:56.357864+00:00— report_created — created