NOTES · · 2 MIN READ

A Long Enough Context Lets an Agent Remember What It’s Doing

An experiment with DeepSeek’s one-million-token window and 300,000 Chinese characters of research notes.

A Long Enough Context Lets an Agent Remember What It’s Doing

If you use agents such as OpenClaw and Hermes for real work, you’ve probably watched one lose the thread around step seven or eight. It forgets what it’s doing, repeats an operation, or goes round in circles.

Some of that is model capability. Much of it comes down to what the model can still see. On April 24, DeepSeek raised its context window to one million tokens. I tried it. It felt like a real step forward.

Where did the first 30% go?

A 200,000-token window sounds generous. An agent can fill 20% to 30% of it before it has done much of anything. Behind the sentence you typed are system instructions, framework definitions, tool descriptions, and API documentation. Intermediate results pile up as the work proceeds and push earlier information out. Eventually the agent loses track of work it already did.

What changes at one million tokens?

A million tokens can hold a long novel or twenty to thirty in-depth research reports. What I care about is how much of the problem the model can see at once.

A conventional knowledge base gives the model a few relevant passages to summarize. I fed DeepSeek more than 300,000 Chinese characters of research material and asked it to find the bottlenecks and contradictions. When I had fed it two or three documents at a time, it could tell me what each document said. This time it identified five key problems and connected evidence across files in ways I hadn’t seen in the smaller batches.

Drift is the problem

You can draw up a detailed plan, run every step, and still get the wrong result. By the end, the agent may have lost sight of what it set out to do. A larger window lets it keep the original goal and the judgments made along the way in view.

The cost and the direction

Long contexts are slower and more expensive. At my rate of use, the allowance on Xiaomi’s roughly 99–100 yuan plan with a 1M window lasts three or four days. With DeepSeek V4 Pro, I have gone from thinking about charges in hundredths of a yuan to tenths.

DeepSeek is open source, so I expect the capability to spread and prices to come down. Huawei also said that week that prices would fall in the second half of the year. What I want to see is how far we can get by giving the model enough room to work through the relationships itself. Some of the elaborate ways we split up work may turn out to be unnecessary.