Skip to content
PluginStats

context-mode weekly downloads statistics

By mksglu · npm · MCP servers

MCP plugin that saves 98% of your context window. Works with Claude Code, Gemini CLI, VS Code Copilot, OpenCode, and Codex CLI. Sandboxed code execution, FTS5 knowledge base, and intent-driven search.

View on npm Fresh · Oct 17, 2026

context-mode has 11,554 recorded weekly downloads on npm, a decrease of 40.4% over the past 30 days.

It ranks #874 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -19.6%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
11,554
Official API · Oct 17, 2026
7-day growth
-52.8%
-12.9K weekly downloads
30-day growth
-40.4%
-7.8K weekly downloads
90-day growth
-19.6%
-2.8K weekly downloads
Rank
#874
Among tracked npm listings

About context-mode

Context Mode

The other half of the context problem.

Used across teams at

The 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. On top of that, the agent wastes output tokens on filler, pleasantries, and verbose explanations — burning context from both sides.

How Context Mode Solves It

Context Mode is an MCP server that solves all four sides of this problem:

1. Context Saving — Sandbox tools keep raw data out of the context window. 315 KB becomes 5.4 KB. 98% reduction. 2. Session Continuity — Every file edit, git operation, task, error, and user decision is tracked in SQLite. When the conversation compacts, context-mode doesn't dump this data back into context — it indexes events into FTS5 and retrieves only what's relevant via BM25 search. The model picks up exactly where you left off. If you don't --continue, previous session data is deleted immediately — a fresh session means a clean slate. 3. Think in Code — The LLM should program the analysis, not compute it. Instead of reading 50 files into context to count functions, the agent writes a script that does the counting and console.log()s only the result. One script replaces ten tool calls and saves 100x context. This is a mandatory paradigm across all 17 supported clients, plus the OpenClaw gateway integration: stop treating the LLM as a data processor, treat it as a code generator.

4. No prose-style enforcement — context-mode keeps raw data out of context but never dictates how the model writes its final answer. Brevity, completeness, formatting — your model's call (or yours via your own CLAUDE.md / AGENTS.md). Aggressive brevity prompts have been shown to degrade coding/reasoning benchmarks (Moonshot AI on kimi-k2.5) — the routing block stays focused on *where data goes*, not on *how the model talks*.

Install

Platforms are grouped by install complexity. Hook-capable platforms get automatic routing enforcement. Non-hook platforms need a one-time routing file copy.

Claude Code — plugin marketplace, fully automatic

Prerequisites: Claude Code v1.0.33+ (claude --version). If /plugin is not recognized, update first: brew upgrade claude-code or npm update -g @anthropic-ai/claude-code.

Install:

Restart Claude Code (or run /reload-plugins).

Verify:

All checks should show [x]. The doctor validates runtimes, hooks, FTS5, and plugin registration.

Routing: Automatic. The SessionStart hook injects routing instructions at runtime — no file is written to your project. The plugin registers all hooks (PreToolUse, PostToolUse, UserPromptSubmit, PreCompact, SessionStart, Stop) and 11 MCP tools — six sandbox tools (ctx_batch_execute, ctx_execute, ctx_execute_file, ctx_index, ctx_search, ctx_fetch_and_index) plus five meta-tools (ctx_stats, ctx_doctor, ctx_upgrade, ctx_purge, ctx_insight).

| Slash 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-index | Index a local file or directory into the persistent FTS5 knowledge base. | | /context-mode:ctx-search | Search previously indexed content. | | /context-mode:ctx-upgrade | Pull latest, rebuild, migrate cache, fix hooks. | | /context-mode:ctx-purge | Permanently delete all indexed content from the knowledge base. | | /context-mode:ctx-insight | Opens the hosted Insight dashboard (context-mode.com/insight) in your browser — org analytics for AI-assisted engineering teams. |

Note: Slash commands are a Claude Code plugin feature. On other platforms, type ctx stats, ctx doctor, ctx index, ctx search, ctx upgrade, or ctx insight in the chat — the model calls the MCP tool automatically. See Utility Commands.

Status line (optional): Claude Code's plugin manifest cannot declare a status line, so this is a one-time manual edit to ~/.claude/settings.json:

After saving, restart Claude Code. The bar shows $ saved this session · $ saved across sessions · % efficient so you can see savings accumulate in real time. The wiring is path-free — context-mode statusline resolves through the bundled CLI regardless of where the plugin cache lives.

Alternative — MCP-only install (no hooks or slash commands)

This gives you all 11 MCP tools 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.

Gemini CLI — one config file, hooks included

Prerequisites: Node.js >= 22.5 (or Bun), Gemini CLI installed.

Install:

1. Install context-mode globally:

2. Add the following to ~/.gemini/settings.json. This single file registers the MCP server and all four hooks:

3. Restart Gemini CLI.

Verify:

You should see context-mode: ... - Connected.

Routing: Automatic via SessionStart hook. Optionally copy routing instructions for full model awareness:

Why the BeforeTool matcher? It targets only tools that produce large output (run_shell_command, read_file, read_many_files, grep_search, search_file_content, web_fetch, activate_skill) plus context-mode's own tools (mcp__plugin_context-mode). This avoids unnecessary hook overhead on lightweight tools while intercepting every tool that could flood your context window.

Full config reference: configs/gemini-cli/settings.json

VS Code Copilot — hooks with SessionStart

Prerequisites: Node.js >= 22.5 (or Bun), VS Code with Copilot Chat v0.32+.

Install:

1. Install context-mode globally:

2. Create .vscode/mcp.json in your project root:

3. Create .github/hooks/context-mode.json:

4. Restart VS Code.…

Description from the npm listing.

  • mcp
  • model-context-protocol
  • claude
  • claude-code
  • gemini-cli
  • vscode-copilot
  • opencode
  • openclaw
  • codex-cli
  • context-window
  • sandbox
  • code-execution
  • fts5
  • bm25
  • pi-package

Where context-mode sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 44, #14 (overall #874)
All npm: every listing in weekly downloads order
PNG SVG
MCP servers253 listings · 13 pages · page 7, #14 (overall #134)
MCP servers: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

context-mode weekly downloads on npm, last 90 days: 11,554 weekly downloads as of Oct 17, 2026, -19.6% over 90 days.context-modeWeekly downloads on npm · Last 90 days11,554downloads / week-19.6% over 90 days05K10K15K20K25K30KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
context-mode weekly downloads on npm, last 90 days: 11,554 weekly downloads as of Oct 17, 2026, -19.6% over 90 days.
PNG SVG

7/30/90-day growth

context-mode weekly downloads growth on npm: -52.8% over 7 days, -40.4% over 30 days, -19.6% over 90 days.context-modeWeekly downloads growth on npm11,554downloads / week now7-day growth-12,922 weekly downloads-52.8%30-day growth-7,841 weekly downloads-40.4%90-day growth-2,821 weekly downloads-19.6%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
context-mode weekly downloads growth on npm: -52.8% over 7 days, -40.4% over 30 days, -19.6% over 90 days.
PNG SVG

Ranking history

context-mode npm ranking history: currently #874 (by weekly downloads).context-modenpm ranking · by weekly downloads · Last 90 days#874current rank#872#873#874#875#876Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
context-mode npm ranking history: currently #874 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (121)
Recent weekly downloads observations for context-mode
Date (UTC)Weekly downloadsChange vs. previous
11,554-3K
14,546-376
14,922-4.9K
19,822-4.7K
24,5270
24,527-124
24,651+175
24,476-1.1K
25,551+1.1K
24,440+414
24,026+11
24,015-5.1K
29,129-842
29,971—

Similar npm MCP servers plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/context-mode. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.