If you’ve spent any real time with Claude Code, you know the pain. You’re deep into a coding session, everything’s flowing, and then — context degradation hits. The conversation starts forgetting things you told it ten minutes ago. Your 200K context window got eaten alive by Playwright snapshots, API responses, and log files you never actually needed sitting in memory.
That’s the exact problem [Claude Context Mode](https://github.com/mksglu/claude-context-mode) tackles, and honestly, the numbers are kind of absurd. We’re talking 315 KB of raw tool output compressed down to 5.4 KB. A 98% reduction. A single Playwright snapshot that would normally burn 56 KB of your context? It comes out the other end at 299 bytes.
The trick is pretty clever. Context Mode is an MCP server that runs code in isolated subprocesses — only stdout makes it back into your conversation. Everything else gets stored in a local SQLite database with FTS5 full-text search indexing, so the data isn’t gone, it’s just not clogging up your context window. When you need something specific, the fuzzy search with BM25 ranking pulls out exactly the relevant snippet. It supports ten language runtimes including Python, TypeScript, Go, and Rust, and your CLI credentials for tools like `gh` and `aws` pass through without ever touching the conversation.
The project was built by [Mert Koseoglu](https://mksg.lu/blog/context-mode), who runs an MCP directory and kept seeing the same pattern — every MCP tool just dumps raw data into context, and nobody was solving the output side of things. He built it for himself first and noticed he could work roughly 6x longer before hitting context degradation. Instead of sessions falling apart after 30 minutes, he was getting close to three hours of productive work.
It clearly struck a nerve. The [Hacker News thread](https://news.ycombinator.com/item?id=47193064) pulled in 330+ upvotes and 71 comments, with developers debating context management strategies and sharing their own compression approaches. On [GitHub](https://github.com/mksglu/claude-context-mode), the repo has already crossed 620+ stars since launching on February 23rd. For a tool that’s barely a week old, that’s serious traction.
Setup is straightforward — just `claude mcp add context-mode — npx -y context-mode` and you’re running. It’s MIT licensed, so there’s no catch. If you’re doing anything beyond trivial Claude Code sessions, this feels like one of those tools you install once and wonder how you worked without it.

Leave a comment