Claude getting forgetful is often just a full window. Guessing what filled it is slower than looking.
Type /context. Claude Code draws the current context usage as a colored grid, with optimization suggestions for context-heavy tools, memory bloat and capacity warnings.
/context
I would run it before a big task, not after things go wrong. If a tool or a huge memory file takes more room than the code does, you want to know before you start.
It pairs with two other commands. /compact summarizes the conversation to free space, and /clear starts fresh. For money, /usage shows session cost and plan limits, and /cost is just an alias for it.
Every tool definition, memory file and earlier answer takes part of the window, and a crowded one is a usual reason for vague answers. The grid shows whether to compact, clear, or trim a memory file.
The caveat: when the conversation is past the context window, the output carries a warning with how far over you are and which command frees space. Take that hint seriously, because it names the fix.
Further reading: Commands – Claude Code docs, Interactive mode – Claude Code docs, On this site: ask Claude Code a /btw question and keep your context clean, On this site: /statusline builds you a status bar with context usage in it