/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.
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 showing how far over the limit you are and which command frees space. In fullscreen mode, /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-09-28.
In the changelogs
23Releases whose published page names /context.
-
v2.1.305
/usage can suggest ways to save and queue a fix for you
/usage can now point out what is costing you most and suggest fixes such as
/compactor lower effort, which you can queue as a follow-upfound in this entry's text
-
v2.1.299
Usage breakdown gives advice on four more cost drivers
The usage breakdown now flags max effort, workflows, always-on context over 40k tokens and tool results over 10k tokens, with advice
found in this entry's text
-
v2.1.287
/contextin hosted sessions leaves out the message breakdownIn hosted sessions,
/contextno longer includes the breakdown of context use by messagefound in this entry's text, named in this entry
-
v2.1.285
Auto-compact line in
/contextrewrittenThe auto-compact window line in
/contextis built a different way, so its wording may differ slightlyfound in this entry's text, named in this entry
-
v2.1.283
/contextlists MCP server instructions as their own categoryThe
/contextbreakdown now shows how much of the context MCP server instructions take up, next to MCP toolsfound in this entry's text, named in this entry
-
v2.1.281
/context total now counts categories plus the API-measured message remainder
The /context total is now the sum of its non-deferred categories plus the API-measured message remainder, not the raw API input count
found in this entry's text, named in this entry
-
v2.1.271
/context data now exposes deferred/loaded flags and richer breakdown
/context data sent to plugins now includes deferred and loaded status flags plus a richer breakdown
found in this entry's text
-
v2.1.269
Synced skills no longer counted for bare/unqualified name matching in /context
Skills synced from claude.ai no longer claim short unqualified names in /context
found in this entry's text, named in this entry
-
v2.1.260
New 'get_context_usage' summary detail mode
Context-usage requests can now return a lighter summary payload for a memory viewer.
found in this entry's text
-
v2.1.260
/context fullscreen detection changed
/context now checks fullscreen state directly instead of via a heuristic.
found in this entry's text, named in this entry
-
v2.1.252
Context/cost breakdown now counts tool descriptions from a recorded prompt snapshot
Context/cost breakdowns like /context now reuse the exact tool description text actually sent, for accuracy.
named in this entry, found in this entry's text
-
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, found in this entry's text
-
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, found in this entry's text
-
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, found in this entry's text
-
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, found in this entry's text
-
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, found in this entry's text
-
v2.1.232
Structured
context_usagealongside the /context tableThe streaming schema carries an optional
context_usagefield so tools skip parsing the markdown table.found in this entry's text
-
v2.1.223
Auto-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, found in this entry's text
-
v2.1.117
Remote Context Usage Display
found in this entry's text
-
v2.0.71
Improved Token Counting for Custom System Prompts
found in this entry's text
-
v2.0.65
MCP Tool Deferred Loading
found in this entry's text
-
v2.0.0
Auto-compact Token Budget Display
found in this entry's text
-
v1.0.86
Context Usage Visualization
found in this entry's text
First cited
2The earliest release whose published evidence quoted /context was v2.1.232, 13 Aug 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.
Presence across releases
0The 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.
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.