Context · 2026-10-14

Instructions placed in the middle of a very long prompt are followed far less often than the same words at…

Instructions placed in the middle of a very long prompt are followed far less often than the same words at the start or end.

  1. AWrap them in bold and asterisks so they stand out
  2. BRepeat the whole prompt twice so the middle becomes an edge
  3. CMove what MUST be obeyed to the edges - system prompt or the last message - and cut the middle down
  4. DUse a model with a bigger context window, so the middle of the prompt sits further from the limit and gets the same attention as the start and end

Answer: C

Move what MUST be obeyed to the edges - system prompt or the last message - and cut the middle down

Why

Attention is not uniform across a long input, so POSITION is a design decision, not a formatting detail. A bigger window makes the middle longer, which is the opposite of the fix; duplicating the prompt doubles the cost to create a second middle.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path