Skip to content

What is a context window?

Glossary entry. Checked on 19 November 2026.

Context window, in plain words

The context window is the amount of text a language model can look at while it writes a reply: your messages, files, tool results and its own earlier answers. It is the model's working memory, separate from what it learned in training, and it is measured in tokens.

Why it matters

A larger window lets a model work with longer documents and longer conversations. When it fills up, something has to go: older messages are dropped or summarised, and details get lost. Coding agents feel this most, because file contents and tool results are long.

Making good use of it

  • Put rules the agent always needs in a short context file, such as AGENTS.md.
  • Put procedures in skills, which load only when needed.
  • Start a fresh session for a new task instead of carrying an old conversation along.

The lesson context engineering covers this in practice.

Share this definition

Lessons that use this term

Sources

Official documentation, checked on 19 November 2026. Products change: if a step differs, the source has the current version.