hardpress

The Context Window: Your AI’s Working Memory

Oct 6, 2026

Ever had a long chat with an AI and noticed it forgot something you said earlier? That is the context window at work. IBM describes it as the model’s working memory: the amount of text it can hold in view at one time while it writes a reply.

What goes in the window?

More than just your last message. The window holds the assistant’s hidden instructions, your whole conversation so far, any documents you attach, results from tools it has used, and space for its own answer. All of it is counted in tokens, not pages or words.

[ hidden instructions ][ attached files ][ chat history ][ your question ][ room for reply ]
|------------------------- one context window, e.g. 128,000 tokens -------------------------|

How big are they?

Windows have grown fast. IBM Research notes that ChatGPT launched with a limit around 4,000 tokens, while 128,000 tokens (about a 250-page book) had become common, and some models now accept over a million. Bigger windows let you work with longer documents and longer conversations.

What happens when it fills up?

Depending on the app, older material may be dropped, summarised, or the tool may simply refuse more input. Either way, the AI can no longer “see” what fell out, so it can contradict itself or repeat questions.

Bigger isn’t always better

A larger window doesn’t mean the AI uses everything in it equally well. Chroma, a database company, tested 18 leading models and found their performance became less reliable as inputs grew longer, a problem it calls “context rot.” Snowflake draws a similar line between the advertised window and the effective one. Hacker News readers swapped plenty of real-world examples of long chats going off the rails.

Habits that help

Start fresh when you change topics.
Be selective: paste the relevant section, not the whole archive.
Put key facts clearly and restate them if a chat gets long.
Ask for a summary and begin a new chat from it.
Load instructions only when needed. That is exactly the idea behind skills.

Why it matters for agents

AI agents fill their windows quickly, because instructions and every tool result take up space. IBM engineers have pointed out that a huge advertised window isn’t the same as a huge reliable one. Keeping an agent’s context lean is a big part of making it work.

Further reading

Back to all posts