In short.
Explore the context window is a Claude Code guide for developers learning how session context fills and shrinks, but its illustrative walkthrough cannot establish their own usage or compaction threshold. Context is the text available to the assistant, including instructions, files, responses and material hidden from the terminal. The guide explains how that text accumulates and what survives compaction, with specific file and skill limits. Its commands, interactive visualization and cost implications have not been tested.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete selected page at [https://code.claude.com/docs/en/context-window.md], including its documentation-index notice, written walkthrough, compaction table, file and skill limits, commands, model-window discussion and related-resource links. The documentation index and every linked page are excluded. The interactive visualization's behavior, command execution, actual token usage, cost savings and model-plan eligibility were not assessed. Nothing was executed.
The overview
Identity
Explore the context window is a feature guide in the Claude Code documentation at [https://code.claude.com/docs/en/context-window.md]. It describes an interactive session timeline and supplies a written explanation covering startup, file reads, rules, hooks, subagent research and compaction.
The resource is documentation for understanding Claude Code behavior. It does not supply an installable tool, agent definition or code library.
Assessment
The guide is useful for understanding why a coding session can consume context before the first user message and why some instructions or file contents may be missing after compaction. Its strongest feature is a detailed account of which material remains active, reloads from disk or returns only through a summary.
Use it as an explanation of documented behavior. Its representative timeline does not establish actual token consumption, summary quality or the context threshold for a particular configuration.
Users
Beginners using Claude Code can learn what the assistant keeps in its working context and why long conversations need summarization. Experienced developers maintaining CLAUDE.md files, scoped rules, skills, hooks or subagents get more specific guidance about loading and persistence.
The page is especially relevant to long sessions and research involving large files. Installation, account setup and a complete model-selection guide are outside its coverage.
Capabilities
The walkthrough explains startup context, incremental file reads, automatically loaded path rules, a PostToolUse hook after edits and research delegated to a subagent. It shows how the subagent's large reads remain in a separate context while a summary and small metadata trailer return to the parent session.
It also introduces manual and automatic compaction, partial summarization through /rewind, earlier compaction through /autocompact, clearing unrelated work with /clear and inspecting usage with /context. The interactive timeline is described by the page; its controls and rendering are unassessed.
Using it
Requirements
Applying the commands requires a Claude Code session. Examples involving rules, hooks, skills or subagents depend on those features being configured. The selected page does not establish installation requirements, supported operating systems or account eligibility.
The page explicitly requires Claude Code v2.1.304 or later for rebuilding and reinjecting skill descriptions after compaction. It discusses a 1 million token window for specified model variants, but directs readers elsewhere for plan availability and selection details.
Mechanism
Before the user types, the documented session loads CLAUDE.md instructions, auto memory, MCP tool names and skill descriptions. AGENTS.md can load in place of CLAUDE.md. Output styles and appended system instructions can add more. Subsequent reads and responses accumulate in the same context; matching path rules load alongside file access.
Compaction summarizes conversation history. System instructions and output styles still apply, while project-root instructions, unscoped rules, auto memory and any saved plan are reinjected from disk. A fresh Git status snapshot is read if the session began with one. Path-scoped rules and nested CLAUDE.md files reload on demand.
Claude Code rereads up to five previously read or edited files, prioritizing the most recently modified. Files exceeding 5,000 tokens return as path references without their contents. Invoked skill bodies have a 5,000-token individual cap and a 25,000-token combined cap; truncation retains the beginning, and older invoked skills are dropped first when necessary.
Earlier hook output is summarized with the conversation. SessionStart hooks matching the compact source run again and add their output. Background commands and subagents continue running, with reminders intended to prevent duplicate starts.
Setup
In an existing Claude Code session, the guide recommends /context to inspect current usage by category, optimization suggestions and loaded instruction or auto-memory files. It identifies /memory as the command for opening and editing those files.
For instructions that must persist after compaction, the guide recommends removing paths: frontmatter or placing them in the project-root CLAUDE.md. It also recommends placing essential skill instructions near the beginning of SKILL.md because truncation preserves the start. The page does not provide a full configuration tutorial.
Example
The page recommends running /compact with instructions, such as /compact focus on the auth bug fix, before starting a long new task. The intended effect is to keep what you choose in the summary instead of what the automatic pass guesses is important.
Its research example delegates large file reads to a subagent and returns a summary with a small metadata trailer. This illustrates reduced parent-session context exposure; it does not establish total token savings or complete preservation of research details. Neither example was executed.
Assessment & evidence
Limitations
The timeline uses representative numbers. It cannot determine actual session usage, exact automatic-compaction thresholds or how much useful information a summary will retain. Thresholds depend on the model and configuration, with gateway and custom-model details delegated to linked documentation.
Compaction does not restore every file in full. Large files can return only as references, skill bodies can be truncated or omitted, and scoped instructions reload on demand. Runtime behavior, visualization accessibility, command compatibility and output quality remain untested.
Reasoning
The guide's practical value comes from distinguishing conversation summaries from material restored through other mechanisms. That distinction helps explain how a session can continue after compaction while particular file contents or scoped rules are absent.
Its documented limits also explain why putting critical instructions late in a large skill or relying on an earlier file read can be fragile. The page supports these design considerations, but supplies no measured evidence that a particular instruction layout improves task completion.
Alternatives
For actual session measurements, the page points to /context. For reducing accumulated material, it presents different options: /compact for summarization, /rewind for summarizing a selected portion, /clear for switching to unrelated work and subagents for keeping large reads in separate context windows.
For deeper explanations, it links to instruction and memory documentation [https://code.claude.com/docs/en/memory.md], subagent documentation [https://code.claude.com/docs/en/sub-agents.md] and token-reduction guidance [https://code.claude.com/docs/en/costs.md#reduce-token-usage]. Those linked pages are outside the supplied evidence; no comparison with other coding assistants is established.
Evidence
The evidence is the complete captured documentation page at [https://code.claude.com/docs/en/context-window.md], retained as selected-page.txt with a recorded size of 8,801 bytes. Its source revision is sha256:d3856dadd0356608b6a2da839a9da4554587ce588b2b3dda43e77152f5784989.
The page supports the described commands, persistence rules and limits as documentation claims. No executed session, command output, benchmark or direct interaction with the visualization is available.
Access & freshness
Costs
The selected page gives no subscription prices, usage rates, access charges or measured savings. Costs remain unknown.
It explains that unrelated conversation history consumes tokens on subsequent messages and recommends focused sessions and delegated reads. Keeping file contents out of the parent context does not, by itself, establish lower total billed usage across the parent and subagent.
Rights
The supplied page contains no explicit license or redistribution terms for its text or visualization. Permission to redistribute either is therefore unknown. It supplies no separately licensed code package or dataset.
Freshness
The page was captured on 13 November 2026 at 00:32:04.531 UTC. Its publication and last-update dates are not provided; the capture date does not establish when each behavior was introduced.
Skill-description restoration has an explicit v2.1.304 minimum. Model-window availability, automatic-compaction thresholds and compatibility with a particular installed release require information beyond this page.
Actions
Use /context in your own session to identify what is consuming space before choosing a remedy. Consider focused compaction with /compact and instructions before starting a long new task, /clear when moving to unrelated work and subagent research when large reads would crowd the parent session.
Check where essential instructions live and how they reload after compaction. Account for the documented file and skill caps, and confirm model eligibility and configuration before relying on a larger context window. These are documented next steps, with no measured outcome supplied.
