Context window
Also written: Token context window, context length, context size, 100K context windows, Context anxiety, Context window bloat, Context overload, Context injection
The amount of text an AI model can consider at one time when processing input and generating output.
Think of the context window as the AI's short-term memory. It's the limit on how much information the AI can "see" and use from your conversation or the documents you provide at any single moment.
If you give the AI a very long document or have a long conversation, the AI might "forget" the beginning of the text or conversation once it reaches its context window limit. This means it might not be able to refer back to earlier parts when generating a response.
For example, if you ask an AI to summarize a book, but the book is longer than its context window, it can only consider a portion of the book at a time. To summarize the whole book, it would need to process it in chunks or have a larger context window.
The context window defines the maximum number of tokens (words or sub-word units) that a large language model can process simultaneously as input and use to generate output. It represents the model's attention span for a given task.
Models with larger context windows can handle more extensive documents, maintain coherence over longer conversations, and perform complex reasoning tasks that require understanding relationships across large amounts of text. Tradeoffs include increased computational cost and memory requirements during inference for larger windows.
Recent advancements from Google Gemini and OpenAI highlight significantly larger context windows, with models like Gemini 4 Argon boasting a million tokens. This expansion allows AI to process and reason over much longer texts, enabling more complex tasks and deeper analysis of documents and code.
- auto_awesome Gemini 4 ArgonGoogle · Gemini Models ·
- AI News: 6 New Models & A Nano Banana KillerOpenAI · Matt Wolfe ·
- auto_awesome Gemini 4 ArgonGoogle · Gemini Models ·
- Google Just Caught Up (Gemini-4 Argon)Google · Matt Wolfe ·
- Gemini API Cookbook: Add Gemini 4 Argon support, long decode examples, and migration guide (#1423)Google · Gemini API Cookbook ·
- psychology Gemini 3.8 Live Extended ThinkingGoogle · Gemini Models ·
- Gemini 2.5 ProGoogle · Gemini Models ·
- Do Personalized LLMs Need the Whole Conversation? Matching the Full History with Only 5% of Its Text via Relevance-Filtered ContextAnthropic · arXiv cs.AI ·
- Anthropic has released Claude Haiku 5.5Anthropic · Artificial Analysis ·
- Gemini 4 ArgonGoogle · Sam Witteveen ·
- [AINews] Gemini 4 Argon: GDM’s answer to Astra/Fable, with 1M outputGoogle · Latent Space ·
- Ep 871: Desktop Agent Lingo Simplified: Goals, Loops, Plans, Subagents and how it works in Codex and Claude Code (Start Here Series Vol 30)Anthropic · Everyday AI ·
- Self-Compact Pi Agent: ZERO HYPE Agentic Coding DevlogAnthropic · IndyDevDan ·
- Communicate Technical Topics to a Non-Technical Audience with Google GeminiGoogle · The Information ·
- What's new in the Gemini Live APIGoogle · Google for Developers on YouTube ·
- Rethinking skills and prompts for GPT-6 AstraOpenAI · OpenAI Developers Blog ·
- Gemini 2.5 ProGoogle · Gemini Models ·
- Supercharge your coding agent with the Google Cloud Developer PluginGoogle · Google Cloud Tech on YouTube ·
- Gemini 2.5 ProGoogle · Gemini Models ·
- Gemini 2.5 ProGoogle · Gemini Models ·
- Shell + Skills + Compaction: Tips for long-running agents that do real workOpenAI · OpenAI Developers Blog ·
- From prompts to products: One year of ResponsesOpenAI · OpenAI Developers Blog ·
- Gemini 2.5 Pro | Gemini APIGoogle · Gemini Models ·
- Gemini Apps limits & upgrades for Google AI subscribersGoogle · Gemini Help Center ·
- Upload & analyze files in Gemini Apps - ComputerGoogle · Gemini Help Center ·
- Enable on-demand expertise with Agent Skills in Genkit GoGoogle · Google Developers Blog ·
- Upload files to ClaudeAnthropic · Claude Help Center ·
- What are skills?Anthropic · Claude Help Center ·
- Retrieval augmented generation (RAG) for projectsAnthropic · Claude Help Center ·
- Enable and use web searchAnthropic · Claude Help Center ·
- Get started with ClaudeAnthropic · Claude Help Center ·
- How up-to-date is Claude's training data?Anthropic · Claude Help Center ·
- #255 - Gemini 3.7, Jalapeño, Qwen 3.8, DronesxAI · Last Week in AI ·
- Introducing 100K context windowsAnthropic · Anthropic News ·
- This Small AI Will Change EverythingMeta · Two Minute Papers ·
- A mystery challenger at the AI frontierGoogle · The Rundown AI ·
- Ep 843: AI Without the Jargon: The Language Every Business Leader Needs in 2026 (Start Here Series Vol 2)Anthropic · Everyday AI ·
- Claude Opus 4.6Anthropic · Anthropic News ·
- Introducing Sonnet 4.6Anthropic · Anthropic News ·
- See what 3 builders are making with Gemma 4Google · The Keyword: Developers ·
- Scaling Managed Agents: Decoupling the brain from the handsAnthropic · Anthropic Engineering ·
- LWiAI Podcast #238 - GPT 5.4 mini, OpenAI Pivot, Mamba 3, Attention ResidualsOpenAI · Last Week in AI ·
- #238 - GPT 5.4 mini, OpenAI Pivot, Mamba 3, Attention ResidualsOpenAI · Last Week in AI ·
- Gemini in Chrome: Your agentic browsing assistantGoogle · Google AI: Release Notes ·
- #236 - GPT 5.4, Gemini 3.1 Flash Lite, Supply Chain RiskOpenAI · Last Week in AI ·
- #235 - Sonnet 4.6, Deep-thinking tokens, Anthropic vs PentagonAnthropic · Last Week in AI ·
- Introducing GPT-5.3-Codex-SparkOpenAI · OpenAI News ·
- Unrolling the Codex agent loopOpenAI · OpenAI News ·
- Claude Code and What Comes NextAnthropic · One Useful Thing (Ethan Mollick) ·
- How Tolan builds voice-first AI with GPT-5.1OpenAI · OpenAI News ·
- Prompt engineering for Claude's long context windowAnthropic · Anthropic News ·
- Google's year in review: 8 areas with research breakthroughs in 2025Google · Google DeepMind Blog ·
- Effective harnesses for long-running agentsAnthropic · Anthropic Engineering ·
- Building more with GPT-5.1-Codex-MaxOpenAI · OpenAI News ·
- GPT-5.1-Codex-Max System CardOpenAI · OpenAI News ·
- Code execution with MCP: building more efficient AI agentsAnthropic · Anthropic Engineering ·
- Gemini 2.5 Flash-Lite is now ready for scaled production useGoogle · Google DeepMind Blog ·
- Context Rot: How Increasing Input Tokens Impacts LLM Performance (Paper Analysis)Anthropic · Yannic Kilcher ·
- Deep Dive into Long ContextGoogle · Google AI: Release Notes ·
- Anthropic Raises $450 Million in Series C Funding to Scale Reliable AI ProductsAnthropic · Anthropic News ·
- Introducing GPT-4.1 in the APIOpenAI · OpenAI News ·
- Automating 90% of finance and legal work with agentsOpenAI · OpenAI News ·
- Building an autonomous financial analyst with o1 and o3-miniOpenAI · OpenAI News ·
- Many-shot jailbreakingAnthropic · Anthropic Research ·
- Expanding access to safer AI with AmazonAnthropic · Anthropic News ·
- Collaborate with Claude on ProjectsAnthropic · Anthropic News ·
- Claude 3 Haiku: our fastest model yetAnthropic · Anthropic News ·
- Introducing Claude ProAnthropic · Anthropic News ·
- New models and developer products announced at DevDayOpenAI · OpenAI News ·
- Introducing ChatGPT EnterpriseOpenAI · OpenAI News ·
- Anthropic Claude
- Anthropic's research explores methods for personalized AI to effectively use a reduced portion of conversation history, suggesting efficient context management.
- Google Gemini
- Google Gemini is pushing the boundaries with models like Gemini 4 Argon and Gemini 2.5 Pro, offering massive context windows of up to one million tokens for advanced text processing and reasoning.
- OpenAI ChatGPT
- OpenAI is developing new AI models that feature massive context windows, expanding the amount of information their systems can consider for complex tasks.
- Training Data
- The context window is about what the model can process *now*, not
- Memory
- While similar, the context window is a specific technical limit for a si
- Knowledge Cutoff
- This refers to the date up to which the model's training data
The concept of a context window emerged with the development of transformer architectures, particularly in research on sequence-to-sequence models and attention mechanisms. It's a fundamental parameter in how these models process sequential data. Source ↗
Paste a long article or a lengthy conversation into a chat interface with an AI like ChatGPT or Gemini. Then, ask the AI a question that requires it to recall information from the very beginning of the text or conversation. Observe if it can accurately reference the early details, demonstrating its context window in action.
The Playbook: reusable how-tos, prompts, configs and tips pulled out of the news.
- ToolSelf-Compacting Pi Agent CodebaseCode for an agent that controls its own context window and decides when to compact information. · 120 min
- Anti-patternAvoid cramming templates into the system promptStop putting templates and worked examples in the system prompt; use skills instead for better performance. · 10 min
- HeuristicSeparate context gathering from deep reasoning for AI agentsDelegate context curation to a separate agent to let the primary reasoning model focus on solving the task. · 15 min
- HeuristicManaging context window for long agent conversationsAgents must manage the context window to prevent prompt length from exceeding model limits. · 5 min
- HeuristicAI context window management for long tasksAI can 'forget' information when its context window fills; it needs to compact and note progress. · 1 min
Questions people ask
- How big is a context window?
- Context windows are measured in tokens, which are roughly words or parts of words. They can range from a few thousand tokens to over a million tokens in the latest models.
- Can I increase the context window?
- You cannot directly increase the context window of a pre-trained model. However, developers can choose models with larger context windows or use techniques to manage information within the existing limit.
First seen on Subvolts Aug 28, 2023. Updated Oct 17, 2026. Written by an AI model from the items above and reviewed against them weekly; report an error.

