A buyer picks the model with the largest advertised context window. The team loads a long project packet, finishes a planning session, and closes the chat. The next session does not know which options were rejected or which project state was approved.
The model handled a large working set. The system did not keep the business state.
A context window and persistent memory solve different problems. Context is the material available for the current response. Persistent memory makes selected state available after the current request or session. Chat history, retrieved documents, model training, and owned business records are more layers. Test each one before you buy on a token number.
Treat context as the current working set
If information disappears inside the current thread, follow the same-chat checkpoint procedure before you change cross-chat memory.
Anthropic defines the context window as all text a model can reference while it generates a response: system instructions, messages, documents, tool definitions, tool results, and output. It calls this a form of working memory and warns that more context does not automatically produce better recall. Anthropic: Context windows
The model answers whatever sits in that window. Nothing past the edge. Exact capacity depends on the model and the product. Tools and earlier output consume it too, and interfaces may compact old content without telling you.
Treat the window as a bounded workspace. It is useful for:
- reading a source packet;
- comparing documents;
- holding active reasoning state;
- using current tool results;
- producing one bounded output.
It does not promise that the next session loads the accepted decisions. Close a chat, change products or projects, or start a fresh API request, and the working context stays behind.
A large window also does not settle which source wins. A stale policy and a current policy both fit. The task still needs a precedence rule. Current files outrank recollection and convincing prose.
See what happens when the working set overflows
Capacity is measured in tokens, not words. Short common words are often one token. Longer words split into several. Code, technical terms, proper nouns, and non-English text need more tokens per word. A window holds fewer words than its token count, and fewer still for code.
Capacity fills faster than the interface suggests. One detailed exchange about a complex project can add thousands of tokens. A few uploaded documents can consume tens of thousands before the real work starts.
A short question such as "What is a context window in AI?" is about nine tokens, depending on the tokenizer. In January 2026, Claude Opus 4.5 had a 200,000-token window. A 50-page document can take about 35,000 of that before the first question. A medium-sized code repository can fill the whole window, and the model needs room to work as well as read. A context file of 10,000 tokens leaves about 190,000 for the task.
Window sizes have grown fast. A few years before 2026, 4,000 tokens was common. By January 2026, 200,000 was common, and some models and betas offered a million. Check the current figure for the model you use. Windows keep growing. Every one still has a limit, and your record will outgrow it.
The limit exists because length costs compute. In the standard attention mechanism, the work grows with the square of the input length. A 200,000-token window needs about four times the attention computation of a 100,000-token window, not twice. Longer windows respond more slowly and cost more to run. Window size is a trade between capacity, speed, and cost.
The working-memory comparison holds up to a point. A person holds a small number of items in mind at once; George Miller's 1956 paper put the figure at about seven. A model counts tokens instead of items, and everything counts: the prompt, earlier replies, corrections, follow-ups, and every shared file.
When a conversation passes the limit, the product does not always warn you. It may drop or compact the oldest content. Some systems cut from the middle: they keep the first prompt and the latest exchanges and drop what lies between. Either way, a detail from half an hour earlier can vanish. The model behaves as if you never said it, because that text is no longer in its window.
The earlier messages still show on screen. You can scroll up and read them. The model may no longer receive them. Visible chat history is for you. The context window is what the model processes.
A larger window does not remove three limits.
Position is the first. Liu and colleagues found that performance is often highest when relevant information sits at the start or end of the input. It degrades when the model must use information from the middle of a long context. Liu et al.: Lost in the Middle A small packet of relevant sources often beats a large window filled with everything.
Cost and speed are the second. Every token in the window is processed for every response. API users pay per input token, and larger inputs take longer.
Session scope is the third. Even a million-token window covers only the current conversation. A new chat starts a new working set.
Inside one session, four habits keep the working set useful:
- Put critical context where the product keeps it, such as project instructions or a loaded context file, not only in an early chat message.
- In a long thread, restate the key facts near the request, or write a checkpoint and continue in a new session from it.
- Keep one topic per session. Tangents consume capacity.
- Use headings and lists, so the model can find each fact.
Across sessions, the fix sits outside the window: records that load at the start of each session. Anthropic's Claude Code documentation states that each session begins with a fresh context window, and CLAUDE.md files carry instructions across sessions. Claude Code: How Claude remembers your project The file stays on your disk and can sit under Git for change history. The text a session reads still goes to Anthropic for processing, and retention and training terms depend on the plan.
This is how my own sessions start. One root file tells every model the rules of the operation, how to speak to me, and where to look for each kind of information. The model does not crawl the whole record on every turn. It pulls the slice the question needs. The window becomes a view into a larger record, not the whole record.
Define what persistent memory must preserve
Persistent memory carries selected state across a defined boundary: requests, chats, sessions, projects, devices, or accounts. A vendor saying "memory" is not enough. Ask which boundary, which fields, which storage, which retrieval rule, and which correction path.
Persistent state can include:
- user preferences;
- summaries of prior conversations;
- project facts;
- saved memories;
- retrieved files;
- application-managed records;
- agent checkpoints.
OpenAI's API provides Conversations objects to store and retrieve conversation state across Responses API calls. That is an application mechanism. The application still decides what belongs in the conversation and how long related state stays. OpenAI: Conversations API
Consumer product memory is another mechanism. OpenAI's ChatGPT Memory FAQ separates saved memories from referenced chat history. OpenAI: Memory FAQ Saved memories are short summaries. They can hold that you prefer short emails. They do not hold your full processes, client details, or decision rules.
Vendor memory is useful. It is a bucket. You can drop things in and fish things out. You cannot choose its shape, read all of it, or carry it out whole. The product picks what crosses into the next chat, and you cannot know ahead of time what it will recall. Memory you can inspect, correct, export, and move is owned memory.
A business needs the stronger definition. Current sources, accepted decisions, corrections, owners, approval evidence, and stopping rules survive in files or systems the business controls.
The business memory explainer defines that maintained operating record.
Separate history, retrieval, and authority
Chat history stores earlier conversation text. Search can find it. That does not make every recovered statement current.
Retrieval augmented generation selects material from a corpus and places it into the current context. It does not decide whether the item is an archive, a draft, a correction, or an accepted source. Retrieval picks the slice. Authority comes from the record's role.
Model training changes model parameters. A fact seen in training is not a memory entry you can correct. The training data is a snapshot of the past.
Prompt caching can cut repeated input cost or latency. Anthropic's context documentation states that cached prompt prefixes still occupy the context window. Caching does not turn the input into a maintained business record.
Use one term for each layer:
- context window: current working set;
- product memory: provider-managed cross-session state;
- chat history: stored conversations;
- retrieval: method for selecting source material;
- authoritative record: maintained source that governs the field;
- checkpoint: accepted task state used to restart work.
The RAG versus business memory guide explains why good retrieval still needs authority, correction, and expiry.
Inspect context-vs-memory-test.csv
Create a portable fixture with harmless facts:
case_id,fact,source,in_window_recall,new_session_recall,correction_path,export_path,owner
CVM-01,"Summary uses three bullets",preferences.md,pending,pending,edit preferences.md,exports/preferences.md,ROLE-USER
CVM-02,"Project owner is Casey",projects/test/context.md,pending,pending,edit context.md,exports/project-test/,ROLE-PROJECT
CVM-03,"Option Red was rejected",decisions/DEC-TEST-07.md,pending,pending,new decision plus supersession,exports/decisions/,ROLE-DECISIONAdd model, product, account, project, context size, memory settings, retrieval settings, and time. Test each fact in the current session and after the target boundary.
Not every fact should persist. The test states which layer owns each one. A preference may use product memory. A rejected commercial option comes from the decision file. An action approval is never inferred from either.
Run one same-session and one new-session test
Use this test list. Keep the control account separate from the seeded fixture, so earlier history cannot supply the answer.
- Run the same questions with no product memory and no retrieved files. Save the baseline result.
- Start a clean session with the fixture and its sources.
- Ask for each fact and require a source citation.
- Add a long but harmless document between the fact and the recall prompt.
- Repeat the prompt inside the same session.
- Record omissions, wrong sources, and unsupported claims.
- Close the session.
- Start a new session under the same account and project.
- Ask for each fact without supplying sources.
- Record what product memory or history supplies.
- Supply the owned source packet and repeat.
- Correct one fact in the owned source.
- Start another new session and verify the correction.
- Replace the model or vendor and repeat from the same packet.
- Confirm that no test result grants an external action.
Pass conditions differ by layer. Same-session context passes when it applies current sources. Product memory passes only for the permitted fields. Business continuity passes when a clean replacement session rebuilds accepted state from owned records.
Step 14 is the one I care about most. My context lives in files, so I can swap the model underneath and the work runs nearly the same.
The long-document tool guide helps evaluate working-set performance. It is not a proxy for persistence.
Buy for the boundary, not token count
Write the job before you compare products. Name the source size, session length, the boundary state must cross, correction speed, export format, identity isolation, and the cost of stale recall.
Ask vendors:
- Does memory cross chats, projects, devices, and team members?
- Can administrators scope or disable it?
- Can users view, edit, export, and delete entries?
- Does every entry keep provenance?
- How are conflicts and superseded facts handled?
- Can an owned source override recalled state?
- What happens when the subscription ends?
- Can another model rebuild the result?
A large window may be the right purchase for one-session document analysis. A smaller window with controlled retrieval and owned checkpoints may suit recurring work better. Many businesses need both.
Do not buy persistence without testing deletion and correction. A system that remembers but cannot forget or show its source is an operating risk.
Skip the persistent layer when the work is one-off
A persistent layer is overhead in some cases. Casual questions, such as recipe or travel ideas, need little business context. One-off questions lose nothing when the model forgets. A single simple job, such as email drafts, may fit in custom instructions or an existing Project.
If your processes are not written down yet, write them first. The first move is extraction, not building. A memory file depends on that work. Some people also prefer a blank slate for creative work, and that choice is valid.
Approval and stopping boundary for context window versus persistent AI memory
The evaluation may run synthetic same-session and new-session tests, inspect memory settings, record context capacity, and export test artifacts. It stops before it uploads protected data, enables organization-wide memory, changes retention, deletes business records, or acts on a recalled approval.
The data owner approves persistence. The project owner approves project sources. The action owner approves external effects. If the tested boundary, source authority, account identity, or correction path is unclear, mark the product result unresolved and stop.
Three public sources on context window versus persistent AI memory
For the next step, read the AI agent acceptance checklist for buyers; Full scope and terms covers the scoped build.
