Claude Code plugin

context-mode

Plugin that sandboxes tool output and indexes it so it stays out of the context window.

33,364 stars 2,298 forksPlugins & marketplaces Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add mksglu/context-mode
From source
git clone https://github.com/mksglu/context-mode.git

From the README

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…
Read the full README on GitHub

How plugins work

  • A plugin bundles slash commands, subagents, skills, hooks, MCP servers and status lines so they install together.
  • Add the marketplace inside Claude Code with /plugin marketplace add mksglu/context-mode, then run /plugin to pick what to install.
  • You can turn a plugin off again from /plugin without deleting anything.
Claude Code docs

Details

Language
TypeScript
Last updated
3 November 2026
Topics
antigravityclaudeclaude-codeclaude-code-hooksclaude-code-pluginsclaude-code-skillcodexcodex-clicontext-modecopilotcursor-pluginkiro

FAQ

What is context-mode?

Plugin that sandboxes tool output and indexes it so it stays out of the context window. It is a plugin for Claude Code, from mksglu/context-mode on GitHub.

How do I install context-mode?

Run /plugin marketplace add mksglu/context-mode inside Claude Code, then follow the setup in the README.

Is context-mode popular?

mksglu/context-mode has 33,364 GitHub stars and 2,298 forks, and is included in 1 curated Claude Code list. It was last updated on 3 November 2026.

More plugins & marketplaces

Browse the most popular Claude Code mods, all plugins & marketplaces, or the skills and MCP server directories.