CertSafari
    Anthropic Claude Certified Associate – Foundations (CCAO-F)· Lessons

    Domain 3 · Lesson 14/30

    Context limits in Claude: when to restart, summarise, or persist

    Understand and manage context limitations and memory considerations (when to restart, summarize, or persist)

    16 min read
    3% of exam
    10 sources
    Published 19 Oct 2026
    Docs as of 14 Oct 2026

    What you will be able to do

    • Explain what fills Claude's context window during a conversation, what never reaches it, and how to trim it
    • Shrink a long conversation or an oversized document by summarizing it, in the chat, in Claude Code or through the API
    • Tell a usage limit from a length limit and pick the right response to each
    • Recognise what automatic summarisation of a long chat keeps and what it can lose
    • Decide whether to continue, start fresh, or persist knowledge in a Project or memory so a new chat is not a cold start

    Key concept

    Context window as working memory — The context window is everything Claude can pay attention to while it writes a response: the conversation so far, attached files, instructions and the reply itself. Claude can use only what is inside it, so what you put in, and what you keep out, decides the quality of the answer.

    1.What fills the context window, and what stays outside it

    The context window is Claude's working memory for one conversation. It is not the huge body of text the model was trained on. It is the specific material in front of Claude right now. Each message you send, each reply Claude writes, each attached file and each set of instructions sits in that window and stays there. Every turn re-reads all of it.

    Almost everything you add takes up space. In the API, the system prompt, every message, tool results, images, documents and tool definitions all count. So does the output Claude writes, including its extended thinking. In the Claude apps the same idea applies to the less visible extras: project instructions, connected tools and web search all take a share before you have typed your real question. Tools and connectors are token-intensive, so a chat with five connectors switched on has less room for your material than the same chat with none.

    A bigger window does not mean better answers. As the token count grows, Claude's accuracy and recall get worse. This is called context rot. A window stuffed with old drafts, abandoned approaches and documents you no longer need is not neutral. It pulls Claude's attention away from the parts that matter.

    The other half of the picture is what never gets in. A conversation you had yesterday, a correction you gave in another chat, a document you meant to attach: none of it reaches Claude unless something puts it in the window. The model doesn't learn from your corrections. It responds only to what is in context now. Open a brand-new chat with nothing persisted and it starts from zero.

    Trimming the window is mostly about switching off what the current task doesn't need:

    • Turn off extended thinking when the task doesn't need deeper reasoning, and pick a lower effort level for routine work.
    • Disconnect apps and tell Claude not to search the web when you don't need current information.
    • Keep project instructions short, and leave task-specific instructions for the chat itself.
    • Remove project files you no longer use.
    • Start a fresh conversation when you switch to unrelated work, because old conversation crowds out what the next task needs.

    Summarizing makes room without switching anything off. A long stretch of conversation is replaced by a shorter account of it, and the work carries on from that account. Each surface has its own version. On paid Claude plans with code execution enabled, a chat nearing its limit summarizes its own earlier messages. In Claude Code, /compact replaces the conversation with a structured summary. Through the API, server-side compaction summarizes earlier parts of the conversation on the server, so the conversation can continue past the context window limit.

    Material can also be summarized before it ever enters the window. A very large first message is the case automatic management doesn't rescue: a year of meeting transcripts pasted into a new chat can be refused with a length-limit error before Claude reads a word. Summarize or extract the key sections first, or ask Claude in a separate step to pick out the most relevant portions, then send only those. When every part genuinely matters, split the content into smaller chunks and process each one on its own instead.

    Checkpoint 1 of 7· Check yourself

    A user has spent hours in one chat working on a report. The chat now holds many old drafts, outlines they dropped, several reference PDFs they no longer use, and five connectors that are switched on. The chat hasn't reached its limit, but Claude's answers are getting vaguer and missing details. What is the best explanation and response?

    Sources12345

    2.Usage limits and length limits are separate budgets

    Claude has two kinds of limit, and they run out for different reasons. A usage limit caps how much you can use Claude across all your conversations over a period of time. A length limit caps how long one conversation can grow. They are separate budgets. Mixing them up leads to the wrong fix.

    Usage limits work over time. Paid plans have a session limit that resets every five hours and weekly limits that reset once a week. Usage on claude.ai, Claude Code and Claude Desktop all draws on the same allowance. How fast you use it depends on message and attachment length, conversation length, the features and tools you use, the model and the effort level. When you hit one, you can wait for the reset or upgrade your plan. If usage credits are turned on, work carries on at pay-as-you-go rates.

    Length limits come from the context window. The window size depends on the model, and you can't make it bigger for your plan. If a single message is too large for the chat, you see: "Your message will exceed the length limit for this chat." The fixes are to start a new conversation or use a feature like Projects, which loads only the relevant parts of the knowledge into the window.

    The two limits compared
    AspectUsage limitLength limit
    What it capsHow much you use Claude across all conversationsHow long a single conversation can become
    What it is tied toYour plan: a five-hour session limit plus weekly limitsThe model's context window
    What uses it upMessage and file length, conversation length, tools, model choice, effort levelEverything held in that one chat's context
    What helpsWait for the reset, upgrade, enable usage credits, use Projects (cached content counts less)Start a new conversation, use Projects, trim tools and instructions

    The two budgets do affect each other. A very long chat uses more of your usage allowance with every message. So someone who runs out of usage before lunch every day should first look at whether they keep re-sending one huge conversation. Starting new conversations when a long chat is draining your usage is the recommended fix. Uploading reference documents to a Project helps too, because content in a Project is cached and counts less against your limits when you reuse it.

    Checkpoint 2 of 7· Check yourself

    Partway through a long chat on a paid plan, a team lead pastes in a large document and sees: "Your message will exceed the length limit for this chat." They plan to upgrade to a higher tier so the message fits. What is actually going on, and what should they do?

    Sources256

    3.What happens when a long chat summarises itself

    On paid plans with code execution enabled, Claude manages long conversations by itself. As a chat nears the context window limit, Claude summarises the earlier messages and keeps going. You may see it "organizing its thoughts" while this runs. Most conversations can therefore go on indefinitely. The full chat history stays in place and Claude can still refer back to it. The model stays the same, and nothing is deleted from the record. Code execution has to be on for this to work. Without it, a long chat can hit the length limit.

    Summarising frees up room, but it also loses detail. When older turns are condensed, Claude works from the summary rather than the original wording. The same thing happens to any summary or handoff (Detail loss in summaries and handoffs). Take a teacher who pastes a whole term of student feedback into one chat and keeps asking for themes as the chat grows. The biggest risk isn't an error message. It's that comments from early in the chat get condensed away, so the theme counts quietly leave some of them out. The answers still sound complete. Nothing warns you when detail drops out.

    So before you carry work forward past a summary, restate the essentials: the figures, constraints and decisions the next answer depends on. Put them in the new message instead of trusting the condensed version. When you control the summary yourself, tell it what to keep. In Claude Code, /compact focus on the auth bug fix makes the summary keep what you chose rather than what the automatic pass guesses is important.

    Checkpoint 3 of 7· Check yourself

    A developer's Claude Code session is close to its context limit. The session holds a hard-won fix for an auth bug: specific constraints, a rejected approach, and the final decision. The next long task builds directly on that fix. Which approach best keeps those details from being lost?

    Checkpoint 4 of 7· Exam question

    A teacher pastes a whole term of student feedback into a single chat and keeps asking Claude to summarise themes as the conversation grows very long. What is the greatest risk to the quality of her summaries?

    Sources2734

    4.Choosing to restart, summarise, or persist

    Each option fits a different situation. Let the chat summarise itself when the work is one continuous thread and you're still building on recent turns. Start a new conversation when you switch to unrelated work, or when a long chat is draining your usage allowance. Persist anything that has to outlast the current chat: standing guidelines, agreed decisions, reference documents. A restart is only cheap if you persisted first. If you just open a new chat whenever the old one gets unwieldy, you throw away everything that was never saved.

    Here is a case. An operations manager has kept one chat running for three weeks to plan a vendor migration, and Claude's latest answers contradict constraints the team agreed in week one. Sending the same question again with stronger wording doesn't bring back detail that has already been condensed. Asking Claude to repeat the whole conversation adds even more text to a window that is already struggling. Switching to a model with a smaller window gives Claude less room, not better focus. The first step is to pick out the decisions and constraints that must survive and record them as lasting reference material. That record can then start a fresh chat, or sit in a Project where every chat sees it.

    Projects are the main way to persist knowledge in the Claude apps (Claude Projects and project knowledge). Whatever you upload to a Project's knowledge is used in every chat inside that Project, so each new conversation starts with that context already loaded. A marketer who re-pastes the same brand guidelines into a new campaign chat every week should set this up once, in order:

    1. Create a Project.
    2. Upload the brand guidelines and tone-of-voice document as project knowledge.
    3. Add project instructions describing how Claude should behave and respond.
    4. Run each week's campaign chat inside the Project.

    Keep what you persist lean. Project instructions are added to every chat, so several pages of them leave less room for the material you paste in. Keep them to general context, key guidelines and Claude's role, put task-specific detail in the chat itself, and remove files you no longer use.

    Memory is the other way to persist. On paid plans, Claude can remember context from your chats and carry it into new conversations. You can also ask it to search your past chats for something you discussed before. Memory suits facts about you and how you work that come up across many chats. Project knowledge suits a defined body of documents and instructions for one area of work. A good sign that something should be persisted is finding yourself typing the same correction or clarification you typed last time.

    Checkpoint 5 of 7· Check yourself

    Every Monday, a support lead opens a new chat. They spend the first few messages retyping the same correction about refund-policy wording and team tone, because Claude got it wrong the week before. They think a fresh chat each week keeps things clean and that Claude will pick up the policy over time. What should they do?

    Checkpoint 6 of 7· Exam question

    An operations manager has kept one chat running for three weeks to plan a vendor migration. Claude's latest answers now contradict constraints the team agreed in the first week. What should she do first?

    Checkpoint 7 of 7· Exam question

    A marketer runs a new campaign chat each week and re-pastes the same brand guidelines and tone-of-voice document into every one. She wants to stop repeating herself. Which sequence of steps is correct?

    Sources829103

    Sources

    (10)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “This is different from the large corpus of data the language model was trained on”
      ↩︎ What fills the context window, and what stays outside it
      “Everything in the request counts toward the context window”
      ↩︎ What fills the context window, and what stays outside it
      “As token count grows, accuracy and recall degrade, a phenomenon known as context rot.”
      ↩︎ What fills the context window, and what stays outside it
      “Compaction automatically summarizes earlier parts of the conversation on the server, so the conversation can continue past the context window limit.”
      ↩︎ What fills the context window, and what stays outside it
      “more context isn't automatically better. As token count grows, accuracy and recall degrade, a phenomenon known as context rot.”
      ↩︎ Exam trap 1
      “more context isn't automatically better. As token count grows, accuracy and recall degrade, a phenomenon known as context rot.”
      ↩︎ Checkpoint
      “The context window (up to 1M tokens, depending on the model) holds the conversation history plus the new output Claude generates.”
      ↩︎ Checkpoint
    2. 2.
      “Tools and connectors are token-intensive”
      ↩︎ What fills the context window, and what stays outside it
      “Turn off this feature when you don't need Claude's enhanced reasoning for a particular task.”
      ↩︎ What fills the context window, and what stays outside it
      “When your conversation approaches the context window limit, Claude summarizes earlier messages to continue the conversation seamlessly.”
      ↩︎ What fills the context window, and what stays outside it
      “Rare edge cases (such as very large first messages) may still encounter context limits.”
      ↩︎ What fills the context window, and what stays outside it
      “usage limits control how much you can use Claude across all your conversations, while length limits control how long any single conversation can become”
      ↩︎ Usage limits and length limits are separate budgets
      “a session limit that resets every five hours, and weekly limits that reset once every week”
      ↩︎ Usage limits and length limits are separate budgets
      “If you hit a length limit, you can start a new conversation or use features like projects”
      ↩︎ Usage limits and length limits are separate budgets
      “Try starting a new conversation if you're approaching your usage limit in a longer chat.”
      ↩︎ Usage limits and length limits are separate budgets
      “When your conversation approaches the context window limit, Claude summarizes earlier messages to continue the conversation seamlessly.”
      ↩︎ What happens when a long chat summarises itself
      “Code execution must be enabled for automatic context management.”
      ↩︎ What happens when a long chat summarises itself
      “Longer conversations that trigger automatic context management consume more of your usage limit.”
      ↩︎ What happens when a long chat summarises itself
      “Keep your project instructions concise and focused on essential information.”
      ↩︎ Choosing to restart, summarise, or persist
      “Reserve task-specific instructions for the chat itself.”
      ↩︎ Choosing to restart, summarise, or persist
      “Think of the context window as Claude's working memory that determines how much content it can process and remember at once.”
      ↩︎ Key concept
      “you can't increase the fixed context window size for your plan”
      ↩︎ Exam trap 2
      “Your full chat history is preserved so Claude can reference it even after summarization.”
      ↩︎ Exam trap 3
      “Your full chat history is preserved so Claude can reference it even after summarization.”
      ↩︎ Prediction
    3. 3.
      “The model doesn't learn from your corrections. It only responds to what's currently in context.”
      ↩︎ What fills the context window, and what stays outside it
      “Silent truncation is the failure mode, and you won't always be warned.”
      ↩︎ What happens when a long chat summarises itself
      “Then open a brand-new conversation and ask a question that assumes it remembers what you taught it. Watch it start from zero.”
      ↩︎ Choosing to restart, summarise, or persist
      “Then open a brand-new conversation and ask a question that assumes it remembers what you taught it. Watch it start from zero.”
      ↩︎ Exam trap 4
      “The model doesn't learn from your corrections. It only responds to what's currently in context.”
      ↩︎ Checkpoint
    4. 4.
      “Old conversation crowds out the files you need next and costs tokens on every message.”
      ↩︎ What fills the context window, and what stays outside it
      “you run /compact, which replaces the conversation with a structured summary”
      ↩︎ What fills the context window, and what stays outside it
      “The summary keeps what you choose instead of what the automatic pass guesses is important.”
      ↩︎ What happens when a long chat summarises itself
    5. 5.
      “Summarize or extract key sections before sending to Claude”
      ↩︎ What fills the context window, and what stays outside it
      “Use Claude to first identify the most relevant portions of your content”
      ↩︎ What fills the context window, and what stays outside it
      “Break your content into smaller chunks and process them separately”
      ↩︎ What fills the context window, and what stays outside it
      “Your message will exceed the length limit for this chat.”
      ↩︎ Usage limits and length limits are separate budgets
    6. 6.
      “Content in projects is cached and counts less against your limits when reused.”
      ↩︎ Usage limits and length limits are separate budgets
    7. 8.
      “Anything you upload to this space will be used across all of your chats within that project.”
      ↩︎ Choosing to restart, summarise, or persist
      “Once your project is set up, you can initiate chats with Claude within the project.”
      ↩︎ Choosing to restart, summarise, or persist
      “Add instructions for how you'd like Claude to behave and respond”
      ↩︎ Choosing to restart, summarise, or persist
    8. 9.
      “Claude can also remember context from your chats and carry it into new conversations and Cowork tasks.”
      ↩︎ Choosing to restart, summarise, or persist
    9. 10.
      “You type the same correction or clarification into chat that you typed last session”
      ↩︎ Choosing to restart, summarise, or persist

    Spotted a mistake, or was something unclear? Tell us.