← Memory, Context & State
Context Window
Also known as: context length, context limit
The context window is the maximum number of tokens a language model can process in a single forward pass, spanning the system prompt, conversation history, retrieved documents, tool outputs, and the model's own generated text. Everything outside this limit is invisible to the model. Larger windows enable longer reasoning traces and richer context but increase compute cost and can hurt retrieval quality as content grows.