Context-mode is an MCP server that reduces AI coding agent context consumption by sandboxing tool outputs and persisting session data in SQLite. It is intended for developers who need to maintain session continuity after context compaction.
Project overview
Context-mode is an MCP server that reduces AI coding agent context consumption by sandboxing tool outputs and persisting session data in SQLite. It is intended for developers who need to maintain session continuity after context compaction.
Project type
MCP · AI Agent · AI Coding
Use cases
Coding & Development
Deployment
Refer to project documentation
License
License pending
Best for
Developers and AI engineers who operate locally and need to manage context windows during AI-coding tasks.
Key capabilities
Sandbox tools keep raw data out of the context window by only returning stdout from executions, reducing data footprint significantly.
Uses Levenshtein distance to correct typos in search queries before re-searching.
Reduces tool results and eventually blocks repetitive calls to redirect to batch execution, preventing context flooding.
Limitations and risks
Cannot be offered as a hosted or managed service under Elastic License 2.0.
Getting started
Installation difficulty is rated as easy. The first success path is to install via NPM or marketplace.
Evidence and sources
GitHub project description: Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.
README: Every MCP tool call dumps raw data into your context window. A Playwright snapshot costs 56 KB. Twenty GitHub issues cost 59 KB. One access log — 45 KB. After 30 minutes, 40% of y…
README: Context Mode is an MCP server that solves all four sides of this problem:
README: Platforms are grouped by install complexity. Hook-capable platforms get automatic routing enforcement. Non-hook platforms need a one-time routing file copy.
README: context-mode insight # opens the hosted Insight dashboard in browser