# 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](https://envhaven.com/glossary/context-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](https://envhaven.com/glossary/subagent).

## Keep reading

- [Token](https://envhaven.com/glossary/token)
- [Context compaction](https://envhaven.com/glossary/context-compaction)
- [Subagent](https://envhaven.com/glossary/subagent)

Source: https://envhaven.com/glossary/context-window
