102 pages for /context.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
overview
Claude Developer Platform · in the page
models/opus-5/overview
…[Context window](https://platform.claude.com/docs/en/build-with-claude/context-windows) | 1M tokens | | Max output…
Models overview
Claude Developer Platform · in the page
models/overview
…[Context window](https://platform.claude.com/docs/en/build-with-claude/context-windows) | 1M tokens…
overview
Claude Developer Platform · in the page
models/sonnet-4-5/overview
…[Context window](https://platform.claude.com/docs/en/build-with-claude/context-windows) | 200K tokens | | Max output…
overview
Claude Developer Platform · in the page
models/sonnet-4-6/overview
…[Context window](https://platform.claude.com/docs/en/build-with-claude/context-windows) | 1M tokens | | Max output…
overview
Claude Developer Platform · in the page
models/sonnet-5-5/overview
…[Context window](https://platform.claude.com/docs/en/build-with-claude/context-windows) | 1M tokens | | Max output…
overview
Claude Developer Platform · in the page
models/sonnet-5/overview
…[Context window](https://platform.claude.com/docs/en/build-with-claude/context-windows) | 1M tokens | | Max output…
overview
Claude Developer Platform · in the page
release-notes/overview
…context window](https://platform.claude.com/docs/en/build-with-claude/context-windows), 128k max output tokens, and [adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/thinking)…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…context window usage by category, skill, and tool. Includes the data `/context` shows in an interactive session. Returns [`ContextUsageResponse`](#contextusageresponse). To compute the breakdown, Clau…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…ry, skill, and tool. With the default `detail`, it includes the data `/context` shows in an interactive session, computed with token-counting API requests that don't appear in the message stream; see…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…context window](https://platform.claude.com/docs/en/build-with-claude/context-windows#context-window-sizes-by-model) by default on Amazon Bedrock, on both the Invoke API and the [Mantle endpoint](#us…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…sion fills up in practice, [watch an interactive walkthrough](/docs/en/context-window.md) of what loads at startup and what each file read costs. Track context usage continuously with a [custom status…
Claude Code changelog
Claude Code CLI · in the page
changelog
…d token counts behind a Claude apps gateway on Amazon Bedrock, which `/context` and large file reads use: the gateway now gets them from AWS's CountTokens API instead of a one-token model request. Gra…
Use Claude Code in the cloud
Claude Code CLI · in the page
claude-code-on-the-web
…optional focus instructions like `/compact keep the test output` | | `/context` | Yes | Shows what's currently in the context window | | `/clear` | Yes | Starts a fresh conversation with empty context…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…rather than a [shared one](#organization-shared-environments). Run `/context` in your next cloud session and confirm `/root/.claude/CLAUDE.md` appears under **Memory files**. ### Installed tools C…
Commands
Claude Code CLI · in the page
commands
…and how much reasoning it applies. When the conversation gets long, `/context` shows what's filling the window and `/compact` summarizes it to free space. Use `/btw` for a side question that shouldn'…
Explore the context window
Claude Code CLI · in the page
context-window
…entative numbers. To see your actual context usage at any point, run `/context` for a live breakdown by category with optimization suggestions, including which CLAUDE.md and auto memory files loaded.…
Manage costs effectively
Claude Code CLI · in the page
costs
…er instructions enter context until Claude uses a specific tool. Run `/context` to see what's consuming space. * **Prefer CLI tools when available**: Tools like `gh`, `aws`, `gcloud`, and `sentry-cli…
Debug your configuration
Claude Code CLI · in the page
debug-your-config
…md, settings, hooks, MCP servers, or skills aren't taking effect. Use /context, /doctor, /hooks, and /mcp to see what actually loaded. When Claude ignores an instruction or a feature you configured d…
Desktop application
Claude Code CLI · in the page
desktop
…Its popover shows your context window usage. In either layout, type `/context` in the prompt box to print a per-category breakdown of this session's context window in the chat. Both layouts have the…
Error reference
Claude Code CLI · in the page
errors
…shooting) | | `Context exceeds the ...-token limit by ... tokens` in `/context` output | [Request errors](#context-exceeds-the-token-limit) | | `Request too large` | [Request errors](#request-too-larg…
Extend Claude Code
Claude Code CLI · in the page
features-overview
…ppens separately, only summary returns | | **[Context window](/docs/en/context-window.md) impact** | Adds to your main window | Uses a separate window with its own input and output tokens | | **Best f…
Fullscreen rendering
Claude Code CLI · in the page
fullscreen
…| Scroll a few lines at a time | If you close a [compacted](/docs/en/context-window.md#what-survives-compaction) session and [resume](/docs/en/sessions.md#what-a-resumed-session-restores) it, scroll…
Glossary
Claude Code CLI · in the page
glossary
…on the API changes`. Learn more: [What survives compaction](/docs/en/context-window.md#what-survives-compaction) · [When context fills up](/docs/en/how-claude-code-works.md#when-context-fills-up) #…
Claude Code on Google Cloud's Agent Platform
Claude Code CLI · in the page
google-vertex-ai
…context window](https://platform.claude.com/docs/en/build-with-claude/context-windows#context-window-sizes-by-model) by default on Google Cloud's Agent Platform, with no `[1m]` suffix needed. To keep…
How Claude Code works
Claude Code CLI · in the page
how-claude-code-works
…onversation can get lost. Put persistent rules in CLAUDE.md, and run `/context` to see what's using space. For an interactive walkthrough of what loads and when, see [Explore the context window](/doc…
Set up Claude Code in a monorepo or large codebase
Claude Code CLI · in the page
large-codebases
…directory in a non-monorepo tree. To confirm which files loaded, run `/context` and check the list under **Memory files**. A few ways to keep the files current as the codebase and models change: * *…
Claude Code gateway compatibility guide
Claude Code CLI · in the page
llm-gateway-protocol
…text management](https://platform.claude.com/docs/en/build-with-claude/context-editing) | Context management beta header pairs with the `context_management` body field | `400` with `Extra inputs are n…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…hat stay deferred below the `ENABLE_TOOL_SEARCH=auto` threshold If [`/context`](/docs/en/commands#all-commands) labels tools `(deferred)` or `(loaded on-demand)` though their definitions total under…
How Claude remembers your project
Claude Code CLI · in the page
memory
…ds rather than personal preferences. To confirm the file loaded, run `/context` in a session and check the list under **Memory files**. > [!TIP] > > Run `/init` to generate a starting CLAUDE.md autom…
Claude Code on Microsoft Foundry
Claude Code CLI · in the page
microsoft-foundry
…context window](https://platform.claude.com/docs/en/build-with-claude/context-windows#context-window-sizes-by-model) by default, with no `[1m]` suffix needed. Claude Code reads the model from the dep…
Model configuration
Claude Code CLI · in the page
model-config
…context window](https://platform.claude.com/docs/en/build-with-claude/context-windows#context-window-sizes-by-model) for long sessions. No effect when `sonnet` already resolves to Sonnet 5.5 or Sonne…
Measure plugin cost and usage
Claude Code CLI · in the page
plugins/measure
…install.md#manage-installed-plugins) and the [context window](/docs/en/context-window.md) page Start with [Measure what a plugin costs](#measure-what-a-plugin-costs). ## Measure what a plugin costs…
Plugins overview
Claude Code CLI · in the page
plugins/overview
…toward your usage and leave less room in the [context window](/docs/en/context-window.md) even in sessions where nothing from the plugin runs. The full text of a skill or agent loads only when it's us…
How Claude Code uses prompt caching
Claude Code CLI · in the page
prompt-caching
…prefix intact. ### Compacting the conversation [Compaction](/docs/en/context-window.md#what-survives-compaction) replaces your message history with a summary. By design, this invalidates the convers…
Continue local sessions from any device with Remote Control
Claude Code CLI · in the page
remote-control
…and `/clear`**: while Claude Code [compacts the conversation](/docs/en/context-window.md#what-survives-compaction), connected devices show the progress and then where the conversation was compacted. W…
Manage sessions
Claude Code CLI · in the page
sessions
…ages, tool calls, and results. If the session was [compacted](/docs/en/context-window.md#what-survives-compaction), the conversation opens at a `Conversation compacted` row. Claude continues with the…
Claude Code settings
Claude Code CLI · in the page
settings
…ntext window gets before Claude Code [compacts automatically](/docs/en/context-window#when-your-context-fills-up), in tokens from `100000` to `1000000`. When unset, Claude Code uses a window tuned for…
All settings
Claude Code CLI · in the page
settings-reference
…tEnabled`](#autocompactenabled) | Turn [automatic compaction](/docs/en/context-window.md) off or on | Memory and context | Any file | | [`autoCompactWindow`](#autocompactwindow) | Set how full the con…
Extend Claude with skills
Claude Code CLI · in the page
skills
…nced skill had only its short name. In the `/` menu, `/skills`, and `/context`, a synced skill appears under its short name, or under its full name while another command uses the short name. Run `/sk…
Customize your status line
Claude Code CLI · in the page
statusline
…The status line reports the counts from the last API response, while `/context` adds an estimate for messages added since that response, so `/context` can read higher until the next response. Use `use…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…ntext savings in practice, the [context window visualization](/docs/en/context-window.md) walks through a session where a subagent handles research in its own separate window. > [!NOTE] > > Subagents…
Tools reference
Claude Code CLI · in the page
tools-reference
…sized against the room left in the session's [context window](/docs/en/context-window.md) instead of the default limits. Images, PDFs, and notebooks keep their limits. What Claude receives when a rea…
Troubleshooting
Claude Code CLI · in the page
troubleshooting
…is no longer needed If the error comes back after a `/clear`, run [`/context`](/docs/en/debug-your-config) and compare the `Messages` row with the rows above it: * **`Messages` is the largest row**…
Week 17 · April 20–24, 2026
Claude Code CLI · in the page
whats-new/2026-w17
…ompute against the model's native 1M context window, fixing inflated `/context` percentages and premature autocompaction`/resume` on large sessions is up to 67% faster and now offers to summarize stal…
What is the Model Context Protocol (MCP)?
Model Context Protocol · in the page
docs/2024-11-05/getting-started/intro
…o.com/docs/copilot/chat/mcp-servers), [Cursor](https://cursor.com/docs/context/mcp), [MCPJam](https://docs.mcpjam.com/getting-started), and many others all support MCP — making it easy to build once a…
What is the Model Context Protocol (MCP)?
Model Context Protocol · in the page
docs/2025-03-26/getting-started/intro
…o.com/docs/copilot/chat/mcp-servers), [Cursor](https://cursor.com/docs/context/mcp), [MCPJam](https://docs.mcpjam.com/getting-started), and many others all support MCP — making it easy to build once a…
What is the Model Context Protocol (MCP)?
Model Context Protocol · in the page
docs/2025-06-18/getting-started/intro
…o.com/docs/copilot/chat/mcp-servers), [Cursor](https://cursor.com/docs/context/mcp), [MCPJam](https://docs.mcpjam.com/getting-started), and many others all support MCP — making it easy to build once a…
What is the Model Context Protocol (MCP)?
Model Context Protocol · in the page
docs/2025-11-25/getting-started/intro
…o.com/docs/copilot/chat/mcp-servers), [Cursor](https://cursor.com/docs/context/mcp), [MCPJam](https://docs.mcpjam.com/getting-started), and many others all support MCP — making it easy to build once a…
What is the Model Context Protocol (MCP)?
Model Context Protocol · in the page
docs/2026-07-28/getting-started/intro
…o.com/docs/copilot/chat/mcp-servers), [Cursor](https://cursor.com/docs/context/mcp), [MCPJam](https://docs.mcpjam.com/getting-started), and many others all support MCP — making it easy to build once a…
What is the Model Context Protocol (MCP)?
Model Context Protocol · in the page
docs/draft/getting-started/intro
…o.com/docs/copilot/chat/mcp-servers), [Cursor](https://cursor.com/docs/context/mcp), [MCPJam](https://docs.mcpjam.com/getting-started), and many others all support MCP — making it easy to build once a…