wordfor

con·text win·dow

/ˈkɑːn.tɛkst ˌwɪn.doʊ/ (KON-tekst win-doh) noun

AI & LLMs

  1. The maximum amount of text, measured in tokens, that a model can consider at once, including the conversation, files and its own reply. The whole repository would not fit in the context window, so the agent searched for the three relevant files first.

Origin

From Latin contextus, 'a joining together', and window in its computing sense of a bounded view onto something larger.

In practice

Space in the window is a budget. Spend it on the files, types and failing output that matter to the change; a focused window usually beats a full one.

Say to your AI

Before editing, list the files you need to read for this change and why. Don't load anything else.

In plain words

  • the AI forgot what I said earlier
  • it can't read the whole codebase at once
  • the conversation got too long
  • how much can I paste in

See also context rot grounding tool call

Find similar words