What context engineering actually covers
Context engineering is the discipline of deciding, for every single model call, exactly what information goes in, where it sits, and how much room it takes. That includes:
- System instructions. Static rules, persona, and constraints.
- Retrieved knowledge. Whatever a RAG pipeline or search step pulled in.
- Tool results. Output from function calls, API responses, database queries.
- Conversation history. Prior turns, which grow unbounded if you let them.
- Working memory. Intermediate reasoning or state the agent needs to carry forward between steps.
Every one of those competes for the same token budget, and every one degrades the model's attention if it's noisy, stale, or out of order. Engineering the prompt wording is maybe 10% of the job now. The other 90% is deciding what belongs in that list above and what gets cut.