The maximum amount of text (measured in tokens) that a language model can attend to in a single forward pass — everything the model "sees" when generating its next output. For agents, the context window is the working memory of a single reasoning step: it holds the system prompt, conversation history, tool results, and any retrieved documents. Running out of context is one of the main practical constraints in long-horizon agentic tasks.