Context window
The amount of text, counted in tokens, a model can consider at once: the conversation, the files it read and every tool result.
Updated November 23, 2026
Everything an agent knows about your task has to fit in the context window. Large files, long logs and many tool calls fill it, and once it is nearly full the agent either summarizes (compaction) or starts losing track.
Good habits keep it lean: point the agent at the right files, keep instruction files short, and hand side quests to subagents.