brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: /context shows what is eating your Claude Code context window

Claude
~/tips/tip-claude-context-grid

/context

Shows how full the Claude Code context window is and what is taking the space.

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

More Claude tips /recap /focus /skill-doctor /autocompact 500k claude purge ~/work/my-repo --dry-run All Claude tips (83) All topics

Link