Sign InOpen Brain
GitHubGitHub RepoNeeds Review

mksglu/context-mode

Context Mode keeps bulky tool output outside an agent’s prompt and restores relevant session state after compaction. Its MCP tools and hooks support 17 clients, though enforcement varies by platform.

GitHub
Open Source Open MarkdownOpen JSON
Source Summary

Context Mode reports shrinking **315 KB to 5.4 KB** by running tool work in a sandbox and returning only selected results. It records edits, Git operations, tasks, errors, and decisions in SQLite, then uses **FTS5 with BM25** to retrieve relevant state after compaction.

Practical Implication

For long coding-agent sessions, route large reads, searches, and fetches through its execution and indexing tools, then run its doctor checks. Hook-capable clients can enforce routing automatically; MCP-only installs expose **11 tools** but rely on the model to choose them.

Agent-Ready Context
Context Mode reports shrinking **315 KB to 5.4 KB** by running tool work in a sandbox and returning only selected results. It records edits, Git operations, tasks, errors, and decisions in SQLite, then uses **FTS5 with BM25** to retrieve relevant state after compaction.

For long coding-agent sessions, route large reads, searches, and fetches through its execution and indexing tools, then run its doctor checks. Hook-capable clients can enforce routing automatically; MCP-only installs expose **11 tools** but rely on the model to choose them.

The **98% reduction** is a project-reported example, not an independent benchmark. Installation and hook coverage differ across the 17 supported clients, and Cursor’s marketplace plugin was still awaiting review in the supplied material.
Connected Context · Feed7 Judgment

This combines context reduction with durable, searchable execution history: large tool outputs stay outside the prompt while selected facts and recorded decisions can be retrieved after compaction. It advances beyond one-way compression, but the reported reduction remains local evidence, retrieval quality is unproven, and MCP-only clients depend on the model consistently choosing the routing tools.

Blast RadiusBlast Radius reversibly archives predicted-unused history, while Context Mode also indexes durable execution state for later search, addressing the candidate’s unresolved question of how removed material might be recovered.JuliusBrussee/cavemanCaveman shows that compression overhead can outweigh savings on terse workloads, which makes Context Mode’s project-reported reduction a result to validate per workload rather than a general efficiency guarantee.tirth8205/code-review-graphBoth expose bounded context through MCP, but code-review-graph retrieves dependency-shaped code evidence whereas Context Mode retrieves recorded tool work, decisions, errors, and tasks through text search.Building Agents Is Trivial Now, Context Is the Next Frontier — Jeff Ng, UnblockedContext Mode can preserve and retrieve session decisions, but Unblocked shows that repository and session history may still omit later organizational decisions and incident context needed to avoid technically plausible mistakes.
Context Map
contextcoding#context-engineering#context-caching#mcp
Uncertainty
The **98% reduction** is a project-reported example, not an independent benchmark. Installation and hook coverage differ across the 17 supported clients, and Cursor’s marketplace plugin was still awaiting review in the supplied material.