TopicTrending open-source AI on GitHub
context-mode Hits GitHub Trending: Tool Output, Sandboxed First
context-mode reached GitHub's daily trending chart on October 11. It is an MCP server: the raw output of tool calls is executed and processed in a sandbox first, and only the conclusion enters the model's context window.

What happened
context-mode (mksglu/context-mode) appeared on GitHub's daily trending chart on October 11. Checked on the repo page before publication: 26,619 stars and 1,916 forks; the project was created in February 2026 and has shipped 195 releases.
The problem it targets is tool output filling the context window: one browser snapshot is about 56KB and 20 GitHub issues about 59KB, and raw data going straight into context can consume roughly 40% of the window in half an hour. context-mode has the agent write analysis as a script that runs in a sandbox and returns only what it prints; the project's example turns 315KB of raw data into a 5.4KB return, a self-reported 98% reduction.
Session continuity is the other part: file edits, git operations, tasks, errors and user decisions are recorded in SQLite with an FTS5 index. After a session is compacted, the model retrieves relevant events via BM25 search instead of reloading the full history into context. The project connects to 17 clients through MCP and hooks, including Claude Code, Codex, Cursor, Gemini CLI and VS Code Copilot.
Key facts
- Numbers: : 26,619 stars and 1,916 forks (checked October 11, 2026); repo created in February 2026.
- Mechanism: : tool output runs in a sandbox and only results return; the project reports a 98% cut in context usage (a 315KB to 5.4KB example).
- Integration: : 11 MCP tools and 17 supported clients, including Claude Code, Codex, Cursor and Gemini CLI.
- License: : Elastic License 2.0.
Why it matters
raw MCP tool output previously entered the context window in full by default. context-mode changes that step to sandbox execution with only results returned, already supports 17 agent clients, and reached GitHub's daily trending chart on October 11 with 26,619 stars.
Comments
Today
Oct 12 Monday- BriefGSK Expands Chai Deal After Wet-Lab Validation of AI Designs
9 stories · Oct 11
- Quiz
- Call
Latest news
All →- Oct 11GSK Expands Chai Deal After Wet-Lab Validation of AI Designs
- Oct 11PPT Master Hits GitHub Trending: Documents Become Native PowerPoint
- Oct 11Cloudflare Acquires Deno: Deploy Shuts Down in Six Months
- Oct 11Anthropic Updates Claude Usage Policy: Armed Drones Named and Banned, Effective Nov 12
- Oct 11Google's $15 Billion India AI Data Center Sparks Backlash; Company Responds to Water and Power Fears
- Oct 11Nadella Calls for an 'Emergency Brake' on AI Models: Assume Compromise, Let Humans Hit Stop
