Skip to content
zero2vibecodelearn vibe coding
Level 0 · Session control 5 min Reviewed by the author · Oct 15, 2026 Verified against Claude Code v2.1.292 · Oct 15, 2026Official docs: Context windowSomething out of date? Tell us

The context window: what is in it and how to see it

Everything in the conversation takes up room in the session's context window. The /context command shows how full it is and with what — and it is where managing a long session starts.

Level 0 · 0 / 4 lessons0%
In this lesson

No hands-on task in this lesson — just read it through and answer the questions.

You already know how to hold a long conversation with Claude Code. Now it is time to manage one: know how much room is left, and clean up at the right moment. It all starts with one idea — the .

What the context window is

Everything that happens in a session, Claude “holds in its head” at once: your requests, its own answers, the contents of every file it read, and the project memory it loaded — , for example. Together, that is the context window.

The window is large, but not infinite. More importantly, everything in it competes for the model’s attention. If in one session you first fixed tests, then discussed a design, then hunted a memory leak, Claude arrives at the fourth task carrying the weight of three earlier ones. Details from those start getting in the way.

/context: the session dashboard

Inside a session, type:

/context

Claude Code draws a coloured grid: how much of the window is used, and by what. Your messages and the memory files picked up at startup appear as separate categories. If the project has no CLAUDE.md, that category may not appear at all.

Ask one question about the code and type /context again — the “messages” share grows noticeably. Files Claude reads inflate it the most: ask it to explain a big module and it will read the whole thing.

When to look

A good habit is to check /context in three situations:

  • before a big task, to see whether there is room for all of the work;
  • when the answers get worse — Claude mixes up details, repeats itself, or forgets something agreed at the start of the conversation;
  • after Claude has read a lot of files, for example when it first gets to know a project.

What to do when the window is full is the next lesson: there you will learn to compact the conversation and to start fresh without losing what matters.

Quick check

Claude has started mixing up details you discussed an hour ago. Where do you start?

Careful

Check your understanding

Answered 0/3
Mode:

What is in a Claude Code session's context window?

What does the /context command show?

Why does an overloaded context hurt, even before the window runs out?

Finish the task in the terminal and answer the questions to complete the lesson.

📝 My notes

Saved automatically in this browser · shows up on the Notes page.

Lesson Q&A

What is in a Claude Code session's context window?

The whole conversation — your requests, Claude's answers and everything it read — plus loaded memory such as CLAUDE.md — The context is everything the model sees in this session: requests, answers, the contents of files it read, and memory files. That is why a long, wandering conversation leaves less room for the task in front of you.

What does the /context command show?

How full the context window is and what fills it, as a coloured grid by category — /context draws a fill grid broken down by category — your messages, memory files and so on. It is the dashboard of a long session.

Why does an overloaded context hurt, even before the window runs out?

Old, irrelevant details take up room and pull attention away from what matters now — The window is large but not infinite, and everything in it competes for the model's attention. A long conversation about five different tasks is worse than a short one about one.

Claude has started mixing up details you discussed an hour ago. Where do you start?

Worse answers in a long session are a common sign of an overloaded context. First see what is in the window, then decide: compact or start over.

Terms in this lesson

Move between lessons with ← → · search with ⌘K

Written and reviewed by Mikhail Kuzmitskii