Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Mirror one or two critical rules at the bottom of the user turn to exploit the recency slot and punch through the lost-in-the-middle trough, while keeping the bulk of the policy in the cached system prompt.
Imagine a meeting where you spent 20 minutes laying out the agenda at the start, then talked through a long set of slides, then asked the team to act. The agenda is at the top, the slides are in the middle, and the action ask is at the bottom. By the time people are about to act, the slides are fresh in their minds and the agenda is fading. So when you really need them to remember one specific rule, you say it again right before the action. A prompt works the same way. The system prompt is the start of meeting agenda. The retrieved chunks are the slides. The user turn is the action ask. Repeating the critical rule right before the model generates is the equivalent of saying "and remember, this one thing matters most" right before people start working.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Define the recency and primacy slots, plus the lost-in-the-middle trough. Explain why a long context dilutes a system prompt only rule. Identify the two situations where mirroring earns its tokens: long contexts and critical-correctness rules. Cover the discipline (selectivity, source of truth, cache awareness). Close with the production examples in 2026 stacks.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating instruction repetition as a sign that the system prompt failed. The repetition is a deliberate use of the recency slot, not a workaround for a broken system prompt.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.