LLMs, Tokens, and Context Windows

Give the AI the right information, manage its limited working memory, and leave good notes when a long conversation needs to continue.

Content date: October 15, 2026.

Plain English

An AI model writes its answers based on what you have given it in the conversation, called its context. Context is measured in tokens, which are small pieces of text: a short word is often one token, and a long word may be several. The context window is how much the model can hold at once. It varies by model and product, and as of October 2026 current Claude models range from 200,000 to 1 million tokens. Your instructions, the chat so far, any documents you add, and results from tools all share that space. Anthropic's documentation notes that accuracy can drop as the window fills, so what you put in matters as much as how much fits.

Use this when

Use this when the AI forgets your rules, keeps trying the same failed fix, or when you need to pick up work in a new or shortened conversation.

If you are just starting

Give the AI your current goal, the files that matter, the exact error message, the steps to reproduce the problem, and what you have already tried. Keep your lasting project rules short, and save decisions and evidence in your project files, not only in the chat. If you have corrected the AI twice on the same problem and it is still wrong, start a fresh conversation with a better first message. A bigger context window does not guarantee the AI will remember or correctly use every detail.

When your project grows

Bring in only the relevant material, and go back to the original source when a decision depends on it. When a long conversation is summarized ("compacted"), details can get lost, so keep exact names, rules, and evidence pointers somewhere outside the summary. When you resume, look at the current files and running programs rather than trusting an old note about their state. Compare approaches by results, speed, and cost, not by raw capacity.

Worked example

A handoff note says an import failed because of the network. The saved error message actually says a file is missing, so the next session checks the file path instead of reinstalling anything. Another note says the preview server (the program that shows your site while you work) was running. The new session checks before starting a second one, because an old note does not prove it is still running.

Practice

Resume from a reliable handoff

  1. Choose a small unfinished task, or use the handoff scenario in the Product foundation workbook. Record the goal, constraints, current files, and what you have observed.
  2. Write a short handoff that separates facts, failed guesses, unknowns, and the next action.
  3. Cut irrelevant history and private values, but keep exact error messages and file names.
  4. Give only the handoff to a fresh AI chat or a friend, and ask what they would do next and check first.
  5. Compare their answer with your evidence, fix what was missing, and note what the handoff failed to preserve.

Deliverable: A short handoff and a note on what the reader got right, what they had to re-check, and what questions remain.

Common mistakes to watch for

  • Pasting your whole project and burying the few facts that matter.
  • A summary turning an untested theory ("probably the network") into a "confirmed" cause.
  • Assuming an old file or running program is still in the state a note says.
  • Copying passwords, keys, or private records into prompts or handoff notes.
  • A fresh conversation repeating a fix you already ruled out.

Prompting

A weak prompt

Read this enormous chat and keep trying fixes until something works.

A better prompt

Here is my current goal, constraints, relevant files, the steps to reproduce the problem, and what I have observed: [paste]. Separate what is confirmed from what is only a guess. Look at the current state of the project before relying on any old note. Suggest the next diagnostic step and tell me what each possible result would show. Before we switch conversations or compact this one, write a short handoff with exact evidence (error messages, file names), changed files, open questions, and the next safe action. Leave out any passwords or keys.

It keeps the facts you need to continue and makes stale notes and unproven theories easy to spot.

Check before you move on

  • Your handoff states the goal and constraints.
  • Exact error messages and file names are included, not paraphrased.
  • Guesses are labeled and failed fixes are listed.
  • Lasting decisions are saved in a project file, not only the chat.
  • Whoever resumes checks the current files and programs first.
  • No passwords, keys, or private records are in the handoff.

You are done when

  • A fresh reader can say what to do next without reading the whole conversation.
  • The handoff does not treat a summary or an old note as proof of what is true now.

Questions to think about

Your AI tool now offers a window twice as large. Will it remember every requirement you gave it?

Not necessarily. A larger window holds more, but the AI can still miss details. Keep key constraints short and visible, and check the result.

A summary of an earlier session says the preview server is running. What should you do before starting another one?

Check whether it is actually running now. The note only says what was true when it was written.

You're stopping for the night mid-debugging. What belongs in your handoff instead of a long list of guesses?

The goal, steps to reproduce, exact error messages, what you tried and what happened, changed files, open questions, and the next step.

Official references