Vibe Coding Discover

MCP

context-mode

View on GitHub

Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.

★ 24K1,729 forksTypeScript—mksglu

MCP server plugin that keeps raw tool output out of the context window via sandboxed execution (~98% fewer tokens), persists session memory in SQLite/FTS5 across compaction, and enforces routing hooks on 17 AI coding clients.

Use Cases

Cut context window usage from tool outputs by ~98%Persist session memory across conversation compactionRun sandboxed code execution instead of dumping raw tool dataIndex and search code/logs via FTS5 + BM25 knowledge baseEnforce context routing across 17 AI coding clientsResume coding sessions after compaction with tracked edits/tasksFetch and index web pages without flooding contextTrack per-session and cross-session token savings via statusline

Built With

Language
TypeScript
Frameworks
MCP · Claude Code · Codex CLI · Gemini CLI · VS Code Copilot · OpenCode · OpenClaw · Cursor · Zed · JetBrains Copilot · Kiro · Antigravity · Bun · Node.js

Tags

mcp · mcp-server · context-window · context-optimization · session-memory · sandboxed-execution · fts5 · bm25 · sqlite · claude-code · codex-cli · cursor · hooks · coding-agents · code-execution · skills