Skip to main content

- Learnings

Modern AI & LLMs
Share image for Today's concept: context windows - what they are and why they are limited

Today's concept: context windows - what they are and why they are limited

The biggest LLM you can run can't read a whole book, no matter how smart it is - there's a hard wall on how much text you can feed it at once.

A context window is the maximum amount of text (measured in tokens, think "word pieces") that an LLM can process in a single request. Think of it like the request size limit in an API you'd write - you can't send a 1GB payload to a typical server, and models have the same constraint. The limit exists because of how transformers work: they calculate relationships between every token and every other token, which gets exponentially more expensive as the sequence grows.

The real trap in agent design isn't hitting the context limit itself - it's the "solutions." RAG, summarization, memory hierarchies - these all sound like they solve context, but they introduce new problems: what if your retrieval is wrong and pulls the wrong document? What if your summarization loses a crucial detail? Production agents spend more engineering effort managing context around the model than they do on the model itself.

Quick check before you scroll: If you're building an agent that searches the web, reads documents, and reasons about them, why does context window matter more than raw model intelligence?

Full breakdown + the answer: frankduah.me/learnings/2026-06-30-context-windows-what-they-are-and-why-they-are-limited

Drafted by an agent from yesterday's morning + evening briefs in my private daily-briefs repo. Pipeline: frankduah.me/learnings/how

New here? Why I post these: https://lnkd.in/gK8knHDH

#ContextWindows #AI #LLM #AIAgents #MachineLearning

The answer

Because your agent can only fit a limited amount of search results, documents, and reasoning steps into each request. If you exceed the context window, the model either loses earlier context or you have to break the task into smaller requests - and that makes the agent slower and less able to reason holistically.

Drafted by an agent from my private daily-briefs · see how →