/context
A Claude Code slash command, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
What it is
Visualize current context usage as a colored grid. Shows optimization suggestions for context-heavy tools, memory bloat, and capacity warnings. When the conversation exceeds the context window, the output includes a [warning](/docs/en/errors#context-exceeds-the-token-limit) showing how far over the limit you are and which command frees space. In [fullscreen mode](/docs/en/fullscreen), /context collapses the per-item breakdown to keep the grid visible. Pass all to expand it
Anthropic's own wording. Read off Commands, captured 2026-08-28.
Presence across releases
The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Changelog entries naming it
-
v2.1.248/context can hide the memory-files section
/context can render without the memory-files section under an unnamed condition.
named in this entry
-
v2.1.248/context remote failures can hide the raw error
Remote /context failures can hide the underlying error and just say it couldn't fetch.
named in this entry
-
v2.1.232/context returns a structured breakdown of token usage
/context now attaches exact machine-readable token numbers alongside its rendered report.
named in this entry
-
v2.1.232/context returns machine-readable usage alongside the table
The /context report now includes structured totals plus per-tool, per-memory, per-agent and per-skill breakdowns.
named in this entry
-
v2.1.232/context returns structured usage, exposed to the SDK as
context_usageSDK consumers get /context numbers as
context_usageon the assistant message, including an over-limit block.named in this entry
-
v2.1.223Auto-compact enforces an assumed context window for unrecognized models
Unknown model names now get an assumed context budget so auto-compact works instead of stalling.
named in this entry
Documentation pages
- Commands reference table Claude Code CLI
- glossary mentions it Claude Developer Platform
- Or, for the model with the same capabilities and no access approval requirement: mentions it Claude Developer Platform
- optimizing-for-cost-and-intelligence mentions it Claude Developer Platform
- pricing mentions it Claude Developer Platform
- PDF Processing mentions it Claude Developer Platform
- advisor-tool mentions it Claude Developer Platform
- fine-grained-tool-streaming mentions it Claude Developer Platform
- manage-tool-context mentions it Claude Developer Platform
- memory-tool mentions it Claude Developer Platform
- Log at info level mentions it Claude Developer Platform
- beta-headers mentions it Claude Developer Platform
- claude-in-microsoft-foundry mentions it Claude Developer Platform
A reference table page is one whose own table defines this name, and it is where the description above came from. A page that mentions it carries the name somewhere in its text and may say nothing about it at all. Every page carrying it.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the slash command does. All slash commands.