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 · Trending today
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 session state: bulky tool work stays in a sandbox while edits, errors, and decisions remain retrievable after compaction. Relative to the candidates, it joins compression and retrieval in one coding-agent layer, but its reported reduction is workload-specific and MCP-only clients still depend on voluntary tool routing.

Blast RadiusBlast Radius reversibly removes predicted-unused history, whereas Context Mode externalizes bulky work and indexes selected state; together they frame reduction and later recovery as separate policies that need long-horizon testing.JuliusBrussee/cavemanBoth target token reduction, but Caveman warns that recurring compression instructions can outweigh savings; that makes Context Mode’s headline reduction subject to session-level cost and exactness measurements.tirth8205/code-review-graphcode-review-graph offers dependency-shaped repository retrieval, while Context Mode preserves broader operational history such as edits and decisions; the graph could narrow what code is fetched from the durable session record.Building Agents Is Trivial Now, Context Is the Next Frontier — Jeff Ng, UnblockedUnblocked shows that repository evidence alone can miss decisions and incidents; Context Mode’s indexed decision and error history partly addresses that gap, though it does not itself reconcile conflicts or organizational sources.
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.