All topics / Context Engineering

Context Engineering

The model only knows what is in front of it. Context engineering is the craft of controlling that window: what to include, what to cut, and what to pull in on demand.

  1. The Model Only Knows What It Sees The context window is the model's working memory, and what you put in it matters more than how cleverly you word the request.
  2. Managing the Window The practical moves for filling the window well: choosing what to include, compressing long material, pulling in documents on demand, and giving a tool memory that survives across sessions.
  3. Context Rot and Fixes Why long sessions slowly fill with noise and the model loses the plot, and the handful of fixes - compaction, fresh starts, and pruning - that keep the signal high.