Skip to content

All pages

Context Mode

An MCP plugin that keeps raw tool output out of an AI coding agent's context window.

AI9d ago
Category
AI
Website
github.com
Language
English
Listed
9d ago
Forks
1,685

mksglu/context-mode ↗, TypeScript, Last commit 1d ago

Every MCP tool call can pour raw output into a coding agent's context: the project measures a Playwright snapshot at 56 KB and twenty GitHub issues at 59 KB. Context Mode routes that work through sandboxed tools so only the relevant result reaches the model, which by the project's own figures shrinks 315 KB down to 5.4 KB. It also records file edits, git operations, tasks, errors and decisions in SQLite, indexes them with FTS5, and pulls back only what matters through BM25 search after the conversation is compacted. A third habit it enforces is having the agent write a small script that prints the answer instead of reading dozens of files into context.

The plugin works with 17 clients including Claude Code, Cursor, Codex CLI, Gemini CLI, VS Code Copilot, OpenCode, Kiro and Zed. Clients with hook support get routing enforced automatically, while the rest need a routing file copied in once.

Like this product?