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.
Follow HIMIAO Horizon
No sign-up · Unsubscribe any timeNotifications
A ping on your phone or computer when the brief is out. No email needed.
Comments
Related
- Oct 13REA Review: Letting Agents Reverse-Engineer Anything, 100K Stars in a Week
- Oct 10Anthropic Open-Sources 11 Knowledge-Work Plugins Covering Sales, Legal and Finance
- Nov 25Google Makes Workspace MCP Servers and CLI Generally Available, Mandates MCP From February 2027
- Nov 25Anthropic Launches Skills over MCP So Servers Can Send Claude a Playbook
- Nov 23GitHub Weekly Vol.7: 7 Projects Worth a Look This Week
Today
Nov 28 Saturday- BriefNVIDIA Opens Image Model Weights: 30B Parameters, 3B Active per Token
10 stories · Nov 27
- GitHubGitHub Weekly Vol.7: 7 Projects Worth a Look This Week
Tested or read — weeklyAll →
- Quiz
- Call
Latest news
All →- Nov 27Sand.ai Launches MAGI-2: 30-Second 1080p Video With Synced Sound
- Nov 27Photonic Chips Run AI: Q.ANT Pilots in IONOS Data Centers
- Nov 27NVIDIA Opens Image Model Weights: 30B Parameters, 3B Active per Token
- Nov 27Meta Declines Joint FCA Test of Muse
- Nov 27Probe Says Novita, StreamLake Route Requests to ByteDance's Ark
- Nov 27Ant Releases Ling-3.2-air Weights: 124B Parameters Under MIT License
™