Context Mode

Active
GitHub TypeScript NOASSERTION

Description

Context Mode is a context window optimization tool for AI coding agents that sandboxes tool output for 98% context reduction across 12 major platforms.

Key Features

  • Sandboxes tool output, reducing 315KB raw data to 5.4KB — a 98% context reduction
  • SQLite + FTS5 session continuity that recovers key context via BM25 search after conversation compaction
  • Think in Code paradigm: LLM writes analysis scripts instead of processing raw data, saving 100x context
  • Supports 16 major AI coding platforms including Claude Code, Cursor, Codex CLI, and more
  • Provides 11 MCP tools including ctx_execute, ctx_search, ctx_doctor for indexing, search, and diagnostics

Use Cases

💡 Preventing context window exhaustion during long AI coding agent sessions
💡 Achieving cross-session task continuity in tools like Claude Code
💡 Optimizing context consumption from raw data generated by MCP tool calls
💡 Reducing token consumption costs for AI coding assistants in enterprise development environments

Quick Start

Claude Code install: run /plugin marketplace add mksglu/context-mode, then /plugin install context-mode@context-mode, restart and verify with /context-mode:ctx-doctor; also available via npm and VS Code Marketplace. Use /context-mode:ctx-execute for sandboxed code execution, /context-mode:ctx-stats to view context savings.

Related Projects