the context window stopped at a million tokens.
the context window is everything an ai model can look at while it writes an answer. it grew almost 500-fold in four years and has stood at about a million tokens since early 2024. this post explains why it stopped growing, what the limit means in practice, what the progress bar next to a chat shows, and where the research says the window is heading.
several ai tools now show a small progress bar next to the chat. in langdock, where i work, it is a ring beside the model selector, and the coding tool cline has had a bar since january 2025. it shows how much of the model's context window the current chat has used. this post explains what the bar measures, why its end has stood at about a million tokens for almost three years, what happens when it is full, and where the research of the past three years says the window is heading.
my reading of the evidence is that the window stopped growing because a larger one stopped being worth its cost. the labs could build one, and some have tested one. what has improved since 2024 is how well the models use the million tokens they have.
a token is a piece of text, usually a little shorter than a word. above each part of this post a small line gives the number of tokens the post has used up to that point, so that a million has something to be compared with.
340 tokens read 1 min
what the context window is
anthropic's documentation defines the context window as all the text a model can refer to when it generates a response, including the response itself. it describes the window as the model's working memory, which is separate from what the model learned in training.
two of its properties explain most of what follows. the first is that everything counts toward it: the instructions the product gives the model, the descriptions of its tools, every message, every attached file, every tool result, and the model's own reasoning and answer. the second is that the model keeps nothing between messages. each time a message is sent, the whole conversation so far is sent to the model again, and each answer becomes part of the input for the next turn.
a chat therefore never starts with an empty window, and what the user types is often a small part of it. langdock's documentation lists what the window can hold: messages and answers, attached files and images, sections retrieved from knowledge bases, memory, skills, system and tool instructions, tool calls with their results, and summaries of earlier parts of the chat. it adds that large files, tool results and retrieved knowledge can fill the window faster than a long plain-text chat.
- instructions and tool descriptions sent by the product before the first message
- 20,000
- the user's messages
- 3,000
- the model's reasoning and answers
- 60,000
- attached files
- 150,000
- tool results web pages, search results, file contents
- 400,000
633,000 tokens used, 367,000 free. each dotted line above the bar is a share of the window.
770 tokens read 1 min
how the window reached a million tokens
gpt-3, released in 2020, had a window of 2,048 tokens, about three pages of text. in may 2023 anthropic raised the window of claude from 9,000 to 100,000 tokens. in february 2024 google offered gemini 1.5 pro with one million tokens to a limited group of customers. it described that as more than 700,000 words, more than 30,000 lines of code, eleven hours of audio or one hour of video. the window had grown almost 500-fold in less than four years.
anthropic estimated in 2023 that an average person reads 100,000 tokens in about five hours. at that rate a full window of one million tokens is about fifty hours of reading. this post is about 7,100 tokens long and would fit into one window about 140 times.
since then the number has hardly moved. google raised gemini 1.5 pro to two million tokens later in 2024, but its current flagship, gemini 4 argon, released in october 2026, has a window of 1,048,576 tokens, which input and output share. openai's gpt-6 astra, released in september 2026, has 1,050,000. anthropic's current models have one million. almost three years of new models have left the number where it was.
- 2020 gpt-3
- 2,048
- may 2023 claude
- 100,000
- february 2024 gemini 1.5 pro
- 1,000,000
- later in 2024 gemini 1.5 pro
- 2,000,000
- september 2026 gpt-6 astra
- 1,050,000
- october 2026 gemini 4 argon
- 1,048,576
- today claude fable 5.2
- 1,000,000
the bright lines are the current top models of the three large labs.
1,160 tokens read 1 min
why it has not grown since
the limit is not a technical ceiling. google said in february 2024 that it had tested gemini with up to ten million tokens in its research. later that year the startup magic claimed a model with a window of 100 million tokens, although it published no paper and did not release the model. dario amodei, anthropic's chief executive, said in july 2025 that there was no reason the context could not be made 100 million words long, which is roughly what a person hears in a lifetime. in february 2026 he said that the only thing blocking long context is inference
, meaning the work of running the model for customers.
three costs stand behind that statement.
- computing. inside a model every token is related to every other token. anthropic's engineers describe n tokens as producing n² pairwise relationships, so a thousand tokens make a million pairs and a million tokens make a trillion.
- memory. to answer quickly, the chips keep intermediate results for every token in the window. amodei named this as the hard part of serving a long context: the stored results have to fit into the memory of the chips.
- training. a model handles long inputs well only if it was trained on long inputs, which is harder to do. amodei said that serving a longer window than the model was trained on makes its answers worse.
the price lists show the same costs. once the input of a request exceeds 272,000 tokens, openai charges double for all of its input and half as much again for the output. at that rate a single question to gpt-6 astra with 900,000 tokens of input costs $18 before the model has written a word. anthropic bills long requests at its standard rate on all but one of its current models, which makes a full window cheaper to use there but no larger.
1,600 tokens read 1 min
why a long chat costs more than its length
because the whole conversation is sent again with every message, the cost of a chat grows faster than the chat itself.
example. a chat has 20 turns, and each turn adds 5,000 tokens of question, attachment and answer. at the end the window holds 100,000 tokens. over the 20 turns the model has read 5,000 tokens, then 10,000, then 15,000 and so on, which adds up to 1,050,000. the chat fills a tenth of the window and has caused as much reading as a full one.
providers reduce the cost with a discount for text they have processed before and still have stored. openai charges a tenth of its normal price for such input. the discount lowers the bill but not the progress bar, because stored text counts toward the window like any other, as anthropic's documentation states for its own models.
more on this why a token got cheap, and who pays for it intelligence on tap, meter one. 11 min1,840 tokens read 2 min
why a fuller window gives worse answers
long inputs also cost quality. anthropic's documentation states that accuracy and recall degrade as the number of tokens grows, and that more context is not automatically better. the effect is known as context rot. the database company chroma published a study under that name in july 2025: it tested 18 models and found that performance declined as the input grew in every experiment. in one of them, models answered questions about a long chat history much better when they were given only the relevant 300 tokens than when they were given all 113,000.
researchers led from the university of illinois found in october 2025 that the difficulty goes beyond finding the right passage. even when a model could recite every relevant piece of information, its results on maths, question-answering and coding tasks fell by between 13.9 and 85 percent as the input grew, at lengths well inside the advertised window.
a paper published this month by a researcher at the university of california san diego points to a cause. in tests on small open models, unrelated filler text cost almost nothing, while statements that competed with the right answer reduced accuracy from nearly 100 percent to between 11 and 21 percent. the tests used small models and an artificial task, so the result may not carry over to large ones. if it does, what is in the window matters more than how long it is.
the labs' own figures show how far the newest models have come. one openai test hides eight similar passages in an input of between half a million and a million tokens and asks for a specific one. gpt-5.6 sol scored 73.8 percent on it and gpt-6 astra 96.3 percent. retrieval from a nearly full window has become reliable. reasoning over one has not, as figures published by google show.
| model | input up to 128,000 tokens | input of 256,000 to one million |
|---|---|---|
| gemini 4 argon | 99.7 | 84.2 |
| gpt-6 astra | 98.7 | 71.8 |
| claude opus 5.5 | 90.6 | 66.8 |
| claude fable 5.1 | 91.4 | 65.0 |
every model in the table loses between 15 and 27 points when the input grows from the lower range to the upper one.
2,410 tokens read 1 min
what the progress bar shows
the bar next to a chat shows how many tokens the next request will carry, as a share of the model's window. in langdock a ring beside the model selector opens a panel with the tokens used, the size of the window and the percentage. the panel breaks the total down into categories such as system prompt, messages, attachments, tool results, summarized conversation and free space, and the documentation notes that the token values are estimates.
other tools show the same thing in other forms. cline displays the tokens sent and received next to a bar and advises starting a new task at 70 to 80 percent. dust shows a ring and requires a chat to be summarized once it reaches 80 percent. google's documentation for the model built into chrome recommends showing a session's usage in a progress bar.
two things about the bar are easy to misread. it measures the size of the next request, so a one-line follow-up in a long chat still carries everything that came before it. it also rises fastest through things the user does not type, such as a large attachment or the results of a web search.
some models are shown a version of the bar themselves. on two of anthropic's models, the api tells the model the size of its window at the start of a conversation and, after each tool call, how many tokens have been used and how many remain.
2,760 tokens read 1 min
what happens when the window is full
there are three possible outcomes, and which one occurs depends on the product. the request can be refused, as anthropic's api does with the error prompt is too long
. the oldest messages can be dropped from what the model sees, which anthropic's documentation describes as first in, first out. or the older part of the chat can be replaced by a summary that the model writes. this is called compaction, and anthropic now names it as the primary strategy for long conversations.
langdock takes the third route. when a chat becomes too large, it summarizes the older parts for the model while the full history stays visible on the screen. a user can therefore still read a detail that the model can no longer see. dust's documentation says that such summaries are written by a model and can omit details, and langdock's states that chat history is not a reliable long-term store of knowledge once older context has been summarized.
example. this site was built in one long conversation with claude. while working on this post i asked it on which day we had written the previous one. it could not tell me, because the conversation had been summarized to free space and the date was not in the summary. it found the answer in another place: the oldest copy of that post among its files was dated november 18.
3,100 tokens read 8 min
where the window is heading
the research of the past three years describes four routes forward. they are at different stages, and the papers allow a rough judgement of how far each can get by the end of 2027.
- a larger window held back by the supply of memory chips
- several million at a premium
- better use of the same window a matter of training
- most progress reasoning catches up
- memory outside the window works today, loses detail
- in every product and better at it
- models that keep learning shown only at small scale
- open still research
a larger window
two results from theoretical computer science set the frame, and one of them has just lost its footing. josh alman and zhao song showed in 2023 that attention over n tokens cannot in general be computed much faster than in n² steps, provided a conjecture called the strong exponential time hypothesis holds. in october 2026 models at openai and anthropic each published an algorithm that refutes a weaker form of that conjecture, which means the strong form falls with it. both proofs have been checked by machine, and no flaw had been reported by early november, though experts are still examining them. whether the n² bound can be rebuilt on an assumption that still stands is an open question.
the second result is not affected. themistoklis haris and krzysztof onak showed in 2025 that the memory a model needs while it writes grows in proportion to the number of tokens it has read, and that this cannot be compressed away unless the model is restricted in what it looks at. a larger window therefore still has to be paid for in memory, unless the model looks at less or stores what it has read less exactly.
both of the cheaper options are being tried. deepseek described in december 2025 a model with a small added component that picks, for each new token, the roughly two thousand earlier tokens that matter most, and computes attention only over those. deepseek cut its prices by more than half when it introduced the method, and other open models have adopted it since. on the memory side, researchers at the university of california, berkeley showed in 2024 that the stored results can be rounded to 3 bits each with almost no loss, which let a small model read a million tokens on a single chip. a paper from february 2026 trained a model of the same size on inputs of four million tokens, also on a single chip.
what holds this route back for now is the supply of memory chips. epoch ai calculated in may that fast memory made up 63 percent of the component cost of ai chips at the end of 2025, up from 52 percent at the start of 2024. the research firm trendforce expects the gap between supply and demand to narrow only in the course of 2027. a window ten times larger needs about ten times the memory for each chat. i therefore expect windows of several million tokens to appear first as a premium option for single large jobs, and the standard window to stay near a million through 2027.
better use of the same window
the second route is to make the existing million reliable, and the papers explain both the problem and the progress. chenxin an and colleagues found in 2024 that open models could make good use of at most half the length they had been trained on, because long distances between tokens are rare in training data. petar veličković and colleagues at google deepmind showed that the standard attention function spreads its weight more thinly as the number of items grows, so a longer input blurs what the model is looking at. both are properties of how models are trained and built, and both can be changed.
epoch ai measured in june 2025 that the input length at which the best models still reached 80 percent accuracy on two tests had grown more than 250-fold in nine months, and the figures from openai and google above point the same way for 2026. i expect this route to show the most progress in 2027, with reasoning over a full window approaching what retrieval reached this year.
memory outside the window
the third route accepts the window as it is and keeps most of the material outside it. the idea goes back to memgpt, a berkeley paper from 2023 that treated the window like a computer's working memory and moved data between it and storage. the summaries and note files in today's products follow from it.
a newer version comes from the massachusetts institute of technology. in a paper last revised in may 2026, the long input stays outside the model as data, and the model writes small programs to search it and calls itself on the pieces. the authors report that this handles inputs up to a hundred times larger than the window and that, with gpt-5, it beats summarizing by a median of 26 percent at a similar cost. a group at stanford has shown another approach, in which a set of documents is turned once into a small trained memory that takes 38.6 times less space than the documents would take in the window.
the limits of this route are documented as well. a test published in june 2026 by matei zaharia, joseph gonzalez and colleagues measured how well current systems learn from experience across tasks, and found that dedicated memory systems did worse than simply keeping everything in the window. another test, with conversations of up to ten million tokens, found that models with a window of one million struggled as the dialogue grew, with or without a search over the earlier parts. memory outside the window lets work continue, but it still loses information.
models that keep learning
the fourth route would make the window matter less. if a model could change its own parameters while it works, what it learned in one chat would not have to be carried in the window of the next. a paper from december 2025 demonstrates this at small scale: a model that keeps training on its input as it reads kept pace with full attention in quality as inputs grew, at a constant cost per token. amodei said in february that he thinks this kind of learning may arrive within a year or two. the test results above are a reason to be cautious about that date.
what this autumn's mathematics changes
since october, models at openai and anthropic have produced a series of mathematical results that people had failed to reach for decades. several of them touch the limits described in this post.
- 2 october openai: two matrices of size n can be multiplied in n to the power of 2.25 steps. since confirmed by independent proofs
- confirmed
- 26 october openai and anthropic: a faster algorithm for a hard logic problem. experts are still reading it
- checked by machine
- 20 november levent alpöge with claude: the riemann hypothesis, in 17 million lines
- checked by machine
- 23 november anthropic and openai: vp is not equal to vnp. not yet read by experts
- checked by machine
- 24 november openai: matrices cannot be multiplied faster than that. not yet checked by anyone else
- claimed
the first concerns matrix multiplication, the operation that makes up nearly all of a model's computing. chips multiply two matrices of size n in about n³ steps. the october result shows that n to the power of 2.25 is enough in principle, down from 2.37, and openai claimed yesterday that nothing faster can exist. the method only pays off for matrices far larger than any in use, so it changes nothing on today's chips. if the new claim holds, it settles how much room is left in theory.
the second is the algorithm from october mentioned above. it removes the theoretical argument that attention must cost n² steps. it does not supply a faster method, and it is itself only faster on inputs too large for any computer. i read it as a reason to take the research on cheaper attention more seriously.
the third is the proof of the riemann hypothesis that levent alpöge, a mathematician at anthropic, published with claude on november 20. it consists of 17 million lines in lean, a language in which a program checks every step. even at ten tokens a line that is 170 million tokens, or 170 full windows. the work took six weeks, and the model did it as an agent that kept its material outside the window and had each step checked by a machine. it is the strongest evidence so far for the third route: with memory outside the window and a reliable checker, the size of the window does not limit the size of the work.
if results like these continue, the limits that depend on ideas will ease faster than i forecast below. cheaper attention, smaller stored results, better training on long inputs and better management of the window are all research on algorithms, which is what these models have just shown they can do. the limits that depend on materials will not ease in the same way. the memory bound above is one of them, and the supply of memory chips is another. mathematics also has an advantage that most work lacks, which is a program that checks every step. gary marcus of new york university has pointed out that it is not clear the ability carries over to problems without one.
what this adds up to
the question matters most for agents. epoch ai estimated in 2025 that one million tokens hold about half an hour of a model operating a computer, and ten million about six hours. metr's latest measurement has the best models completing tasks that take a person 27 hours, and that length doubles about every 3.6 months while the window stands still.
my forecast for the next two years is that the standard window stays at about a million tokens, that windows of several million are sold at a premium, that reasoning over a full window becomes reliable, and that the progress bar matters less to users because models and products manage the window themselves. a window of 100 million tokens or a model that learns as it works would change far more. the papers show that both are possible in principle, but none shows either at the scale of a leading model yet.
five developments would tell me that this forecast is too cautious.
- openai drops its double price for inputs above 272,000 tokens, which would mean that long inputs have become cheap to serve.
- one of the three large labs makes a window above one million tokens its standard.
- a leading closed model is confirmed to use attention over selected tokens only.
- scores for reasoning in the upper range of the window, the right-hand column of the table above, reach those of the lower range.
- a model finds a method for attention or for the stored results that is cheaper in practice, and the proof is checked by machine as this autumn's were.
5,750 tokens read 1 min
what follows from this
i draw four conclusions, for people who use these tools and for companies that buy or build them.
- a chat is not a place to keep things. anything that has to be found again or quoted exactly belongs in a file or a knowledge base. the window is emptied or summarized sooner or later, and the user is not always told what was lost.
- one task per chat works best. quality falls and cost rises as the window fills, so a new chat with a short recap gives better answers for less money than a long one. the progress bar is the simplest way to see when that point is near.
- window size no longer separates the models. the three large labs all offer about a million tokens. the differences that matter when choosing are how well a model works near the top of its window, what a long request costs, and what the product does when the window is full.
- for builders, the work is in choosing what goes in. anthropic's engineers describe context as a finite resource with diminishing returns. the methods they recommend all reduce what the model has to look at: summarizing, keeping notes in files outside the window, and handing parts of a job to helper agents that start with an empty window and return a summary of 1,000 to 2,000 tokens.
- tokens in this post
- 7,100
- times it would fit into one window
- 140
6,140 tokens read free
sources
all figures are as of 25 november 2026. the example chats are invented to illustrate the point. the measurements are real. the test scores for gpt-6 astra and gemini 4 argon were published by openai and google themselves. the forecasts are mine.
- the definition, what counts, refused requests, first in first out, and what the model is told anthropic, context windows
- summaries written by the model anthropic, compaction
- what fills a chat, the ring, and summarized chats langdock, context window
- 2,048 tokens brown and others, language models are few-shot learners, 2020
- 9,000 to 100,000 tokens, and five hours of reading techcrunch, may 2023
- one million tokens, what they hold, and the test with ten million google, our next-generation model: gemini 1.5, february 2024
- two million tokens, and magic's 100 million ieee spectrum, september 2024
- today's windows and openai's prices the model pages of gpt-6 astra and gemini 4 argon, read on 25 november 2026
- 100 million words dario amodei on the big technology podcast, july 2025, transcript
- what blocks long context dario amodei on the dwarkesh podcast, february 2026
- pairs of tokens, a finite resource, and helper agents anthropic, effective context engineering for ai agents, september 2025
- 18 models, and 300 tokens against 113,000 chroma, context rot, july 2025
- 13.9 to 85 percent du and others, context length alone hurts llm performance despite perfect retrieval, october 2025
- filler against competing statements liu, length is cheap, competition is not, november 2026
- 73.8 and 96.3 percent openai's figures, as reported by datacamp, september 2026
- the graphwalks table google's figures, as reported by datacamp, september 2026
- the limits in theory, in time and in memory alman and song, fast attention requires bounded entries, 2023 and haris and onak, compression barriers for autoregressive transformers, 2025
- attention over selected tokens deepseek-v3.2, december 2025, deepseek's price cut, september 2025, the batch on how it works and, for its adoption, glm-5, february 2026
- smaller stored results, and training on four million tokens hooper and others, kvquant, 2024, li and others, out of the memory barrier, february 2026 and xu, khaira and singh, kv cache optimization strategies, march 2026
- the cost and supply of memory epoch ai, may 2026. trendforce's outlook is covered, with its sources, in a.i. is a new cost on top of payroll
- half the trained length, and attention that spreads an and others, why does the effective context length of llms fall short, 2024 and veličković and others, softmax is not enough, 2024
- 250-fold in nine months epoch ai, june 2025
- memory outside the window packer and others, memgpt, 2023, zhang, kraska and khattab, recursive language models, revised may 2026 and eyuboglu and others, cartridges, 2025
- where outside memory falls short asawa and others, continual learning bench, june 2026 and tavakoli and others, beyond a million tokens, revised february 2026
- mathematics by machine the riemann hypothesis: science news, november 2026 and science, november 2026. the faster algorithm and the conjectures it refutes: datacamp, november 2026, anthropic's paper and, on how large an input has to be, majdoddin, november 2026. matrix multiplication: doğan, lysikov, sakabe and walter, november 2026 and openai's mathematics releases. vp and vnp: datacamp, november 2026
- learning while reading tandon, dalal and others, end-to-end test-time training for long context, december 2025
- half an hour of computer use epoch ai, the huge potential implications of long-context inference, september 2025
- 27 hours, doubling every 3.6 months metr's figures, with their sources, in intelligence on tap, meter three
- the bar in other tools cline, january 2025, dust, context compaction and google, session compacting with the prompt api