Context window
The maximum amount of text, measured in tokens, that a model can take into account at once - your prompt and its answer together.
The context window is a hard limit on how much the model can see in a single call. It covers the system prompt, the conversation so far, any files you attached and the answer being generated. When you hit the limit, something has to be dropped, and in most chat interfaces the oldest turns go first.
Two practical consequences. First, a long conversation quietly loses its own beginning, which is why a session that started well drifts off task after an hour - the instructions that set it up are no longer in the window. Restating the important rules, or putting them in a system-prompt, fixes this. Second, cost and latency scale with how full the window is, so pasting an entire repository to ask about one function is expensive and usually worse than pasting the function.
A large window is not the same as good recall across it. Models retrieve reliably from the start and end of a long input and less reliably from the middle, so put what matters at the edges.
Tagged
Where this comes up
Prompts, configs and tutorials in the library that touch this term.
- GuideUniversal
Working with long documents and code
Why long sessions drift, what a large context window actually buys you, and how to keep a model on task across a big input.
- GuideUniversal
Giving a model a role and constraints
How naming the audience, the format and the exclusions turns unpredictable answers into repeatable ones.
No-padding everyday default
The one to set if you set only one. Answer first, nothing before it, nothing after it, and no offer to help further.
Tested on Claude Sonnet · May 2026
- CheatsheetUniversal
Forcing an output format that holds
The phrasings that actually constrain output, and the ones people use that do not. Tested by asking for the same thing twenty times and counting the…
Tested on Claude Sonnet · May 2026
- PromptUniversal
Extract structured data as JSON
A strict extraction prompt that returns valid JSON only, with nulls for missing fields instead of invented values.
- PromptMidjourneyStable Diffusion
Image prompt skeleton
A fill-in structure for image models that keeps subject, environment, light, lens and style in the order the models weight them.