Command reference ยท Claude Code
/context
Visualizes current context usage as a colored grid with optimization suggestions.
Visualizes current context usage as a colored grid with optimization suggestions. Shows hints about context-heavy tools, memory bloat, and capacity warnings. Argument 'all' expands the detailed breakdown.
โ WHEN TO USE IT?
Check how much context is still free before continuing a long session
/context all for the detailed breakdown
Find the cause of unusually high context usage
/context to identify context-heavy tools or bloated memory
โ WHEN NOT TO?
Actually wanting to free up context
/context only displays usage, it doesn't change the context itself
Better: use /compact to summarize the conversation and free up context
SOURCES
- Claude Code Doku (offiziell) โ code.claude.com