— reading now
Flash

TopicTrending open-source AI on GitHub

Flash·Apps & Agents·2026-10-12 02:07

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

  1. Numbers: : 26,619 stars and 1,916 forks (checked October 11, 2026); repo created in February 2026.
  2. 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).
  3. Integration: : 11 MCP tools and 17 supported clients, including Claude Code, Codex, Cursor and Gemini CLI.
  4. 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.
Useful Tap if this story helped you

SourcesGitHub repo mksglu/context-mode (2026-10-11, repo). Compiled from public sources; not investment advice.

Comments

  1. Loading comments…
Ask the cat