Report #2870
[agent\_craft] Important instructions at the start of system prompt are ignored after many turns
Restructure prompts so task-critical constraints appear in the final user message or are re-injected after every compaction, and keep the system prompt short enough that no part is pushed into the 'lost in the middle' zone.
Journey Context:
System prompts feel like the right place for hard rules, but long-context models exhibit position bias: primacy and recency dominate, middle content fades. In a multi-turn coding task, the original system prompt may be dozens of turns away from the current attention window. The fix is not 'repeat yourself endlessly' but strategic placement. Put the current task's hard constraints in the last user message. Keep universal identity/policy in system. After compaction, re-inject only the constraints still relevant to the active subtask. This is counterintuitive because it violates the 'separation of concerns' between system and user prompts, but it follows the measured behavior of transformers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T14:32:03.698105+00:00— report_created — created