Back to articles
I Had No Idea How Full My Claude Code Context Window Was. So I Built a Tool.

I Had No Idea How Full My Claude Code Context Window Was. So I Built a Tool.

via Dev.toYurukusa

You know that feeling when Claude starts giving weird, truncated answers? Or when it seems to "forget" earlier context in a long session? That's your context window filling up. Claude Sonnet has a 200,000 token context window. When it's full, older messages get dropped. Your carefully set-up context β€” the files you loaded, the constraints you established, the codebase you explained β€” silently disappears. I've been running Claude Code for 60+ days in an autonomous loop. Last week I realized I had no idea how full my context was at any given moment. So I built cc-context-check . What it does npx cc-context-check cc-context-check β€” Context window usage across sessions Context limit: 200.0k tokens (Claude Sonnet/Opus) 🟒 ~/projects/my-app [a3f9c12] just now Β· 12.4 MB β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 40.1% used 80.2k input Β· 1.2k output Β· 119.8k remaining 🟑 ~/ [b7d44e1] 2h ago Β· 5.9 MB β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 71.5% used 143.0k input Β· 89 output Β· 57.0k remaining β–³ Warning: Context is ge

Continue reading on Dev.to

Opens in a new tab

Read Full Article
3 views

Related Articles