# /context Command

> It shows what is filling the context window.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** /context, Context usage grid

## Think of it like

It is like a jar with marks on it. You can see how full it is, and with what.

## Definition

/context shows how full the context window is, as a grid of colored squares. Each color is one part: the system prompt, tools, memory files, skills and the messages so far. It also gives tips, such as a tool or a memory file that takes a lot of room. When the chat is over the limit, it says by how much and which command frees space.

## Example

Lucy's sessions fill up fast. /context shows that one MCP server's tools take a big block of squares, so she turns that server off when she does not need it.

## Example code

```console
/context
```

See what takes up room in the context.

## Why it matters

You cannot free up room until you know what is using it.

## Common mistake

Thinking only the messages fill the window. Tools, skills and memory files take room before you type a word.

## Three principles

- **A colored grid.** One color per part.
- **Shows the free room.** And what is used.
- **Gives tips.** On what to cut.

## Related terms

- [Context Window](https://learn.benibix.com/term/ai/context-window)
- [Auto-Compact](https://learn.benibix.com/term/ai/auto-compact)
- [/autocompact Command](https://learn.benibix.com/term/ai/autocompact-command)
- [/clear Command](https://learn.benibix.com/term/ai/clear-command)

## Taught in

- [Context, Recap and Copy](https://learn.benibix.com/learn/ai-claude-code-commands/context-recap-and-copy): Claude Code Commands, 5/17

![A grid of squares filled in colors: system prompt, tools, memory files, messages, then empty squares. A line near the end marks where auto-compact starts.](https://learn.benibix.com/diagrams/cmd-context.svg)

---

Source: https://learn.benibix.com/term/ai/context-command
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
