Module 13 · Context Engineering · Lesson 27 of 34
The context window is your budget
Everything competes for one window. Choose what the model needs for this step, and leave out the rest.
In this lesson · about 20 minutes
- List the components that compete for the context window
- Explain why more context can make answers worse
- Use summarising, tool selection, re-ranking and trimming to make room
Prompt engineering is about wording instructions well. Context engineering is the bigger job: deciding everything the model sees on each call, because the model knows nothing else. A request can hold:
- the system prompt and rules;
- tool definitions;
- memories about the user;
- retrieved documents;
- conversation history;
- tool results from earlier steps;
- and space for the reply.
More is not better. Every extra token costs money and time, and a model's attention is limited: relevant details buried among irrelevant ones are easier to miss, and conflicting old information can mislead. The goal is the smallest set of high-signal tokens that lets the model do this step well.
Try it · simulator
Context budget planner
Everything an assistant sends competes for one window. Set the pieces, watch the bar fill, then use the four strategies to make room.
Window used
83%
Input tokens
24,550
Input cost per call
$0.074
Per 10,000 calls
$736
Check your understanding0 of 3 correct
Quiz score: 0 of 3
Written by Noviq Academy in its own words. The simulators are small teaching models that keep the real idea and leave out the scale; their numbers (prices, speeds, scores) are illustrative. Model names, prices and features change quickly, so check your provider's current documentation before you build. Read-aloud uses your device's built-in voices.