Knaph

Context window

The context is everything in one request to the model - instructions, tool descriptions, the conversation, and everything an agent has read or run. The context window is the most tokens it can hold, counting the reply; about a million for Claude's current models in late 2026.

Depth 1 · Foundation

You can list what goes into an agent's context, explain why an agent fills its window much faster than a chat, and say what happens to anything that isn't in the window.

Sign in to prove what you know with a short quiz, see how deep you've gone, and earn XP for it.

Sign in with Google

Depths of understanding

  1. 1

    Foundation

    You can list what goes into an agent's context, explain why an agent fills its window much faster than a chat, and say what happens to anything that isn't in the window.

  2. 2

    Deeper

    You can build it: measure the size of every request from the usage the API returns (input_tokens, cache_read_input_tokens and cache_creation_input_tokens together), count a request's tokens before sending it with count_tokens, and set a context budget well below the window.

    Master depth 1 first

Your path here

What's still between you and Context window, depth 1, in the order you can learn it.

  1. 1Language modelDepth 1 · Foundation · Language Models
  2. 2TokenDepth 1 · Foundation · Language Models
  3. 3CountingDepth 1 · Foundation · Number Systems
  4. 4Comparing numbersDepth 1 · Foundation · Number Systems
  5. 5ProbabilityDepth 1 · Foundation · Probability
  6. 6Flat shapesDepth 1 · Foundation · Geometry
  7. 7Equal partsDepth 1 · Foundation · Fractions
  8. 8LengthDepth 1 · Foundation · Measurement
  9. 9LengthDepth 2 · Deeper · Measurement
  10. 10Equal partsDepth 2 · Deeper · Fractions
  11. 11FractionsDepth 1 · Foundation · Fractions
  12. 12ProbabilityDepth 2 · Deeper · Probability
  13. 13ProbabilityDepth 3 · Connected · Probability
  14. 14ProbabilityDepth 4 · Deeper still · Probability
  15. 15ProbabilityDepth 5 · Deeper still · Probability
  16. 16Next-token predictionDepth 1 · Foundation · Language Models
  17. 17Stateless modelDepth 1 · Foundation · Language Models
  18. 18Context windowDepth 1 · Foundation · Language Models

Where it fits