Report #63793
[frontier] Agent over-indexes on the most recent user message ignoring complex multi-step instructions from the beginning of the session
Implement Instruction Recency Weighting by dynamically moving the core system prompt to the bottom of the context window \(just before the latest user turn\) instead of leaving it at the top, while keeping a brief placeholder at the top.
Journey Context:
The 'Lost in the Middle' phenomenon proves LLMs pay less attention to information in the center of their context. In long sessions, the system prompt at index 0 becomes 'middle' context relative to the massive KV cache. By duplicating or moving the core identity block to immediately precede the current turn, you exploit the model's recency bias to anchor the identity. The tradeoff is token duplication, but it prevents the agent from 'forgetting' its prime directive.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:33:47.341159+00:00— report_created — created