Still Thinking
Home
One person reads at the only illuminated table of an archive room.

When I say an AI remembers

When a model follows an instruction I gave it twenty messages ago, I’m quick to say it remembers. If it’s simply finding that instruction in the text it gets to read again, why does it feel the same to me?

Two hours into a conversation with Claude about a proposal, the rules seemed clear. Address the client formally, use a table, and never invent a number. By message forty, Claude is on first-name terms with the client, the table has become a wall of text, and a conversion rate has appeared out of thin air.

What happened to those instructions? They were put away somewhere. Claude never saw them again.

A model has what it learned during training and whatever is put in front of it at each turn. This note is about both. The second is the part that can get expensive.

The modelWhere knowledge and conversational habits come from

A large language model, or LLM, predicts what comes next. Give it “Where is Mont…” and it might judge “Blanc” the likeliest continuation. Then it does the same for the next token. A two-page answer takes thousands of these decisions.

Learning to do that takes place in two stages.

During pre-training, engineers assemble a vast corpus of filtered public web pages, books and code. The model practises predicting the next token. Inside its neural network, a weight is a number that sets the strength of a connection. Prediction errors drive small adjustments across billions of weights, often hundreds of billions. Providers rarely disclose the exact count. Knowledge is distributed across those weights. This stage can take months of computation.

During post-training, examples of good answers and human feedback further adjust those weights. Tone, politeness, and the way a model follows or declines an instruction all take shape here. That helps explain why Claude, GPT and Gemini feel different to talk to. Their applications add another layer, which I’ll come back to in the second note.

What does predicting the next token look like? Follow a question through five steps below. The example uses a French sentence so you can see how its words break into tokens.

Simplified diagram: illustrative concepts and figures.

In 2025, Anthropic researchers examined what happened inside Claude when they asked for the capital of the state containing Dallas. The model arrived at the concept of Texas and answered Austin. When the researchers substituted California for Texas inside the network, it answered Sacramento.

The model constructs its answer, token by token, using its weights. That makes for remarkably fluent prose. It can also make an error sound convincing, especially when there’s no source in front of it to check.

The Mont Blanc problemA change in one place can show up elsewhere

Imagine continuing post-training on thousands of texts about Mont Blanc. You might hope to add a mountain speciality. In fact, you would be moving many weights together. How far might the mountain spill into other subjects? Try asking the two models a question.

Standard model

Post-trained on Mont Blanc

Illustrative answers, deliberately exaggerated. The effect is typically more subtle in practice.

In 2024, Anthropic amplified the concept of the Golden Gate Bridge inside Claude. The model brought almost everything back to the bridge and even described itself as the bridge. The researchers intervened directly in the network. It’s an extreme illustration of how far the effects of a change can reach.

That’s the risk of training on your own data. The changes often reach further than you intend.

Knowledge cutoffWhat happens after training ends?

Once training ends, the weights are frozen. The knowledge cutoff marks the end of the period covered by training. A later event has to reach the model some other way.

Think of ChatGPT in 2022. A standalone language model had the knowledge encoded in its weights and a characteristic way of answering. Ask it about last week.

What results did our client announce on Tuesday?

I have no information about events after my learning end date. I can't answer you.

At best it acknowledges the gap. At worst it invents a plausible answer. To give it a view of today’s world, we need something beyond weights. That’s the subject of the next note.

“Hello, I’m Claude”Andrej Karpathy, an OpenAI co-founder and former director of AI at Tesla, suggests imagining a model introducing itself. Its knowledge is drawn from a large slice of the web and frozen at its cutoff. Examples shaped its conversational habits. Everything after that has to be put in front of it.

The context windowWhat can the model see with each new token?

What a model has in front of it is called its context window. Think of it as working memory. Each token it generates can draw on the preceding context. When this conversation ends, the model doesn’t carry that window into the next one.

We measure the window in tokens, pieces of text. A short word may fit in one token. A longer one may take several. One or two tokens per word is a rough average.

“One million tokens”Haiku, Sonnet, Opus and Fable all have a million-token window in this comparison. Tokenisation changes between generations. Anthropic estimates about 555,000 words per million tokens for these models, compared with 750,000 before. The same token count can hold about a quarter less text.

MemoryThe app keeps notes. The model reads them.

“But Claude remembers me!” Recent apps keep notes on things like your work, projects and preferences. They can derive those notes from earlier conversations, and you can ask them to remember or forget something.

Those notes live in the application. At the start of a conversation, the app can supply a core profile and retrieve other details as they become relevant. Mention running and it might open your running note while leaving your client notes on the shelf.

Remembering, in this sense, means reading a note again. The note takes up space just like anything else. Scroll through the example to watch the window fill.

0 / 6

An empty window.

Follow the first 100,000 tokens of the window, roughly the length of a novel. It starts empty.

1 / 6

The app adds its instructions.

The Claude app inserts its instructions first. These often run to more than 10,000 tokens. Here they occupy 18,000.

2 / 6

The app adds its notes about you.

A core profile and a relevant memory note add roughly 2,000 tokens. You have yet to type a word.

3 / 6

Your question. The smallest slice.

Your question adds 500 tokens. The material supplied before it takes up forty times as much space.

4 / 6

Ten exchanges later.

Ten exchanges add about 15,000 tokens. Earlier questions and answers stay in the window until the app removes or summarises them.

5 / 6

You attach a 50-page PDF.

A 50-page PDF adds 40,000 tokens. It outweighs everything else combined, and is read again on subsequent turns.

6 / 6

The app compacts the conversation.

The app compresses the conversation and the document into 4,000 tokens. Its own instructions stay intact. Your first instruction may now be a single line in the summary, if it survived at all.

A crowded windowWhat gets lost when the app makes room?

What you just saw is compaction. As the window grows crowded, the model can lose track of instructions and details. There are several ways to make room.

Summarise. The model condenses the history and continues from that summary. This is a common approach.

Truncate. Keep the latest exchanges and discard the start. The earliest instructions are the first to go.

Clean up. Remove bulky material that has served its purpose, such as a document added twenty turns ago.

All three involve a choice about what matters. That choice helps explain why the assistant switched to an informal tone with the client in message forty.

When a conversation goes off course, it can help to start a fresh one. Put durable rules in the project instructions. Applications generally preserve those instructions during compaction.

The billMost of what you pay for was already in the window

Token billing comes in two parts.

Input covers everything the model reads before answering, including the conversation context. Output covers what it writes. At the prices used here, Opus 5.5 costs $4 per million input tokens and $20 per million output tokens. Sonnet 5.5 costs half as much.

Why is writing five times as expensive as reading? Input can be processed together. Each output token depends on the one before it and requires another generation step.

On the first turn of this example, the model reads 20,500 tokens for about eight cents and writes 1,000 for two cents. It reads roughly twenty times as much as it writes. Even at five times the rate, output accounts for only a quarter of the input cost.

At each turn, the window counts as input again. The instructions and memory are billed with every question. Try the simulator with caching switched off first.

The simulator

Ten turns of conversation, one at a time.

Model
A 50-page PDF on turn 3
Prompt caching
$1.29for ten turns
62 %spent on instructions and memory
74 %spent on rereading

A typical scenario, not a measured average: 20,000 tokens of instructions and memory at the beginning, then 500 tokens per question and 1,000 per answer. The colours are the same as in the window.

In this scenario, nearly two-thirds of the bill pays for context the app supplied before you said anything. Your questions barely register. A subscription can hide this, but when an agent handles 10,000 product descriptions, the difference can determine whether the project is affordable. One PDF can double the bill.

Prompt caching gives us some relief. Without it, the same 18,000 instruction tokens are read at full price on every turn. With caching, the provider can reuse its work on the start of the window. In this example, cached input for Opus 5.5 costs $0.20 per million tokens instead of $4. The prefix has to match, and the cache expires after a period of inactivity.

Turn caching on in the simulator. The bill drops by more than two-thirds. The app handles the cache. When costing a client project, I’d check how it handles it early on.

“Lower prices”A lower token price can coincide with a higher bill if the app adds instructions, memory or documents. I’d price the complete task.

Model sizesWhat does a larger model buy you?

Providers offer models in different sizes. The three Anthropic models compared here belong to the same family and follow the same broad training stages. A larger model generally costs more and takes longer to answer.

SmallHaiku 5.5

$0.10 / $0.50

Built for volume: classify, extract, summarise or support a larger agent.

MediumSonnet 5.5

$2 / $10

Anthropic recommends this balance of speed and capability for most production uses.

LargeOpus 5.5

$4 / $20

For longer, more complex tasks, from multi-step coding projects to deliverables that need to stay consistent over time.

Prices per million input and output tokens. Opus costs 40 times as much per token as Haiku at the rates shown. All three have a one-million-token context window and support up to 128,000 output tokens. Haiku charges five times the usual rate for the entire call once the prompt exceeds 100,000 tokens.

Anthropic also offers Fable 5.2, released on 9 November 2026. At $8 per million input tokens and $40 per million output tokens, it is intended for demanding reasoning and long-running agent tasks. It is outside this benchmark.

Which one would I choose? We ran each model three times on nine consulting tasks and scored the results automatically or with a judging panel. You can replay four comparisons and see all nine results below.

Recorded runs, played at higher speed.

How many times are you going to do this?

The module replays the tests actually recorded in our benchmark, which details the nine cases, the prompts and all the answers. He doesn't call any models. Estimated costs at Anthropic rates.

HaikuSonnetOpus

One box per test: Full if successful, half so partial, empty if missed. For both cases rated by a jury, "successful" means at least 18 out of 20.

What the benchmark suggests

In these trials, the larger model pulled ahead when the work stretched across multiple steps.

On classification, calculations, planning and document review, all three performed similarly when a task fit in a single answer. All three spotted the real issue in an ambiguous brief. The gap opened when they had to carry a decision through several steps and deliver a coherent whole. Opus was less likely to contradict itself along the way.

For one deliverable, the larger model costs only a few cents. For a short task repeated thousands of times, the smaller model can do the same job for a fraction of the cost.

Here’s a possibility for a future test. Specifying the format, the rules and an example of a good answer might close some of that gap. It costs nothing to try before moving up a model tier.

Anthropic’s selection guide makes a similar suggestion. Start small, test on your use case and move up if the results warrant it.

“The new small model matches the old large one”A task that needed the large model six months ago might now work on a smaller one at a twentieth or a fortieth of the token price. I’d test my own tasks before switching.

What I take awayA model rereads what it knows about you

The model arrives with fixed weights. Its knowledge reflects its cutoff, and its conversational habits reflect post-training. Your instructions, documents, saved notes and exchanges all have to come back into view.

That gives us a choice. Next time a client asks to train a model on their data, I’d start by asking what they’d like it to have in front of it.

Decoding a model ad in four questions
  1. When is its cutoff? More recent information will have to come from somewhere else.
  2. How big is the window, and how is text tokenised? A million tokens can represent different amounts of text across model generations.
  3. What does one complete task cost? A growing window can cancel out a lower token price.
  4. Which size, tested on what? A public ranking says little about performance on your particular tasks.

The second note covers the following topics: tools, agents and the software around a model, and why so few projects need to train one.

Limits, November 2026

Instruction and memory sizes are estimates. They vary substantially between apps. Prices are Anthropic’s as of 22 November 2026.

The simulator leaves out cache-write premiums and reasoning tokens billed as output. An actual bill can be a little higher.

The memory example describes Claude. ChatGPT and Gemini have their own mechanisms, which change quickly.

One fair objection is that apps may soon hide all of this. Until then, understanding what goes into the window helps a consultant scope a project and make sense of its costs.

Still ThinkingAll articles