Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By infodigitalmissionaryv1.0.22Elastic-2.0In 1 marketplace
MCP server that saves 98% of your context window with session continuity. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and automatic state restore across compactions.
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
mcp, context-window, sandbox, code-execution, fts5, bm25, playwright, context7
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
The other half of the context problem.
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 your context is gone. And when the agent compacts the conversation to free space, it forgets which files it was editing, what tasks are in progress, and what you last asked for.
Context Mode is an MCP server that solves both halves of this problem:
--continue, previous session data is deleted immediately — a fresh session means a clean slate.https://github.com/user-attachments/assets/07013dbf-07c0-4ef1-974a-33ea1207637b
Step 1 — Install the plugin:
/plugin marketplace add mksglu/context-mode
/plugin install context-mode@context-mode
Step 2 — Restart Claude Code.
That's it. The plugin installs everything automatically:
ctx_batch_execute, ctx_execute, ctx_execute_file, ctx_index, ctx_search, ctx_fetch_and_index)CLAUDE.md routing instructions file auto-created in your project root| Command | What it does |
|---|---|
/context-mode:ctx-stats | Context savings — per-tool breakdown, tokens consumed, savings ratio. |
/context-mode:ctx-doctor | Diagnostics — runtimes, hooks, FTS5, plugin registration, versions. |
/context-mode:ctx-upgrade | Pull latest, rebuild, migrate cache, fix hooks. |
Note: Slash commands are a Claude Code plugin feature. On other platforms, all three utility commands (
ctx stats,ctx doctor,ctx upgrade) work as MCP tools — just type the command name and the model will invoke it. See Utility Commands.
Alternative — MCP-only install (no hooks or slash commands):
claude mcp add context-mode -- npx -y context-mode
This gives you the 6 sandbox tools but without automatic routing. The model can still use them — it just won't be nudged to prefer them over raw Bash/Read/WebFetch. Good for trying it out before committing to the full plugin.
Step 1 — Install globally:
npm install -g context-mode
Step 2 — Register the MCP server. Add to ~/.gemini/settings.json:
{
"mcpServers": {
"context-mode": {
"command": "context-mode"
}
}
}
Step 3 — Add hooks. Without hooks, the model can ignore routing instructions and dump raw output into your context window. Hooks intercept every tool call and enforce sandbox routing programmatically — blocking curl, wget, and other data-heavy commands before they execute. Add to the same ~/.gemini/settings.json:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub infodigitalmissionary/context-mode-fork --plugin context-modePlugins from other owners that cover similar ground