AI Memory Β· Learn Β· Lesson 1
The context window is everything your AI can see.
An AI model keeps nothing between messages. Each time you send one, the app hands it everything again, and the most it can take in at once is its context window.
What Is a Context Window?
A context window is everything an AI model can see at the moment it answers you. A Large Language Model (LLM) keeps nothing from one message to the next, so the app gathers it all up and sends it again every time you press send: its own instructions, the tools it can use, what it has saved about you, the whole conversation and anything you attached.
The window has a fixed size, counted by the Token, a piece of text a little shorter than a word. Whatever does not fit cannot be seen, which is why choosing what goes in has become a craft of its own, called Context Engineering.
Here is one ordinary question, with everything the AI was given to answer it.
Instructions (the system prompt)
Text the app's maker writes and sends ahead of everything you type. It tells the model who it is, today's date, how to behave and what it may not do.
Written by the app. You never see it, and it is in every message.
You are a helpful assistant made by Example AI. Today's date is November 23, 2026. Answer plainly. If you are unsure, say so. Do not give medical dosages. β¦and thousands more words
Tools (tool definitions)
A description of each thing the AI is able to use, so it knows what it can reach for. The tools themselves are not in the window. Their descriptions are.
Added by each app, and by each service you connect to it. In every message.
search_web(query): Search the internet. read_file(name): Open a file the user attached. search_memos(query): Search the user's library. read_memo(id): Open one memo in full. β¦and more
Memory (saved by the app)
Short notes the app wrote down from earlier chats and adds back in, so a new chat does not start from nothing.
Written by the app, about you. A few lines, not your history.
The user runs a consulting practice. Prefers options in a table before a recommendation. Is moving their newsletter to every other week.
Conversation (message history)
Every message you sent and every reply it gave, in order. The model does not remember these. The app sends them all back each time.
Written by you and the AI. It grows with every turn, which is one message and its reply.
You: Ada wants the whole team onboarded by March. Draft the plan. AI: Here's a three-step plan for Ada's team, ending the first week of March. β¦ You: Make step two a working session. AI: Done. Step two is now a half-day session per group.
Attachments (files and images)
Anything you dropped into the chat, read in full. One long file can take more room than the whole conversation.
Added by you. Stays for the rest of the chat.
proposal.pdf Scope of work: onboarding for Analytical Engines, 14 people across three teams. Fee: fixed. Start: on signature. β¦the whole file
Results (tool results)
When the AI uses a tool, what comes back is added to the window: search results, a web page, a memo it opened.
Added as the AI works. This is how something outside gets in.
search_memos("Ada onboarding") returned:
Onboarding Plan: Analytical Engines Β· Nov 16
Call Recap with Ada Β· Nov 18Question (your newest message)
What you just typed. It arrives last, after everything above, and the reply is written into the room that is left.
Written by you. The reply shares the same window.
You: Move Ada's onboarding up two weeks.
A New Chat Starts Empty
The model isn't changed by talking to you. What felt like memory on Monday was the conversation being sent back to it with every message.
Open a new chat and the conversation part is empty again. Anything the AI should know has to be put back: by you, by the app's memory feature, or by a library it can search.
Monday
Here's a three-step plan for Ada's team, ending the first week of March.
Tuesday Β· New Chat
I don't have a plan for Ada in this conversation. Could you paste it, or tell me who Ada is?
How Big Is a Context Window?
There is no single size. A context window is measured in tokens, and the limit belongs to the model: each one is built with its own, and makers raise it with most new releases. In late 2026 the windows on offer ran from a few dozen pages of text to several novels.
The size you get also depends on where you use the model. The same model often has a smaller window inside a chat app than its maker gives developers, a free plan may get a fraction of what a paid plan gets, and some apps give more room when you pick a model that works through a problem in steps before it answers.
Because these numbers change so often, the reliable answer is each maker's own list.
Last Updated: November 2026
At the Edge
What happens when it fills up.
The window can't stretch, so every app has to do something when a chat outgrows it. Each one says something different.
Claude
It Summarizes
As a chat nears the limit, Claude "summarizes earlier messages" and carries on. The full history is kept so it can look things up again.
ChatGPT Free
It Stops
A notice reads "Context window full" or "Chat memory full." You start a new chat, upgrade, or take a summary that "may leave out details."
Gemini
It Drifts
Google says only that past the limit, replies may not take "into account all the content", and suggests a new chat for a new topic.
Coding Agents
They Compact
Claude Code and Codex, AI tools that write software, replace the earlier part of a chat with a summary, a step called Compaction. In Claude Code, "detailed instructions from early in the conversation may be lost."
Fuller Isn't Smarter
The makers say so themselves. Anthropic's documentation: "more context isn't automatically better. As token count grows, accuracy and recall degrade." A 2025 study of 18 models by Chroma found answers grew less reliable as the input grew, even on simple tasks.
So the useful habit is the opposite of pasting everything in. Give the AI the few things this question needs, and leave the rest where it can fetch them. That habit has a name, Context Window Management.
Keep What Matters Outside the Window
A library sits outside every chat. Your AI searches it, opens the one or two memos the question needs, and only what it searched and opened enters the window.
- The library stays out. A thousand memos take no more room than ten.
- The AI fetches on demand. It searches, then opens the memo it needs, or one section of it.
- What it learns goes back. A new memo or a journal line, there for the next chat in any app.
One Memory for Every AI shows how the same library answers in Claude, ChatGPT and Grok.
Tuesday Β· New Chat, Library Connected
MythOSSearched your library
MythOSRead a memoFound the plan. Moving kickoff from March 2 to February 16 puts it ahead of her board meeting. Update the memo?
Your Library
PrivateAda Lovelace wants the whole team onboarded by March. Three steps, ending the first week of March.
Step one is a kickoff call with her team leads. Step two is a working session for each group. Step three is a review in the first week of March.
Keep Going
Short lessons that explain how AI apps behave.
