Coding agents burn tokens like crazy — Claude Code reportedly eats 33k just on startup. context-mode, a TypeScript MCP server trending on GitHub today (+96 stars in a day, 20,900+ total, #1 on Hacker News with 570+ points), attacks exactly that.
What it actually does
It sits between your agent and its tools as middleware. Tool outputs get sandboxed so raw data never floods the context window — 315 KB becomes 5.4 KB, a 98% cut. Session memory (file edits, git ops, errors) lands in SQLite; after compaction it retrieves only relevant bits via BM25 search instead of dumping everything back. Works across 17 platforms: Claude Code, Cursor, Copilot CLI, Gemini CLI and more.
How to plug it in
npm install -g context-mode, register it as an MCP server. You get 11 tools — ctx_execute runs code in 12 languages with only stdout entering context, ctx_search queries indexed knowledge, plus hooks that enforce routing. Typical use case: long agent sessions that normally die from context exhaustion.
Why it matters
Context engineering is turning from prompt tricks into an infrastructure layer, and this is the first open-source piece of that stack past 20k stars. Elastic v2 license — free to use and fork.
You Might Also Like
- Claude Context Mode Might be the Best Thing Thats Happened to my Claude Code Sessions
- 27k Github Stars in Weeks Learn Claude Code by Shareai lab Breaks Down ai Coding Agents Into 12 Lessons
- 27 Agents 109 Skills 88k Github Stars is Everything Claude Code Genius or Over Engineering
- Deepseek tui Tops Github Trending a Claude Code Clone Wired to Deepseeks api
- Zcode Zhipu z ai glm 5 2 Coding Agent hit hns 1 Spot Chinas Open Answer to Claude Code

Leave a comment