Skip to content
AgenticAIWiki
  1. Learn
  2. Part 11. Context engineering and reliability
  3. Chapter 59

Budgeting the context window

3 lessons · 12 min

A token budget for one request

Full screen
Budget: 200k tokensSystem prompt3kTokens (thousands)System3Tools0History0Docs0Output0Input 3k + output room 0k = 3k of 200k

Swipe to change step

Step 1 of 8. One request has a fixed budget: the context window. Here it is 200k tokens. Every part of the request draws from it, starting with the system prompt. System prompt (3k), highlighted.

In this chapter

  1. 59.1Where tokens go4 min read
  2. 59.2Trimming tools and history4 min read
  3. 59.3Lost in the middle: where to put key facts4 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…