Context Mode
mksglu/context-modeReviewed by AI
Checked by RepoPicks Radar on
What is Context Mode?
Context Mode is a plugin for ten AI coding assistants (Claude Code, Codex, Gemini CLI, Copilot CLI, OpenCode and others). When the assistant reads a big file, runs a command or fetches a page, the plugin runs that work on your machine, stores the whole output in a local SQLite database, and hands the assistant only the part it asks for, so less of your context window is used. It also brings a session back after the chat is compacted. You install Node 24 or newer and run one command per assistant; everything stays on your computer.
How easy is it to install Context Mode?
C · install 1 or 2 tools · Windows
- Windows C
- macOS C
- Linux C
On macOS and Linux you install Node 24.15.0 or newer and run one or two commands, for example "npm i -g context-mode" then "context-mode setup", or your assistant's own plugin command; then you restart the assistant and run /ctx-doctor. Windows is the same plus Git for Windows, because the README says "the shell tools run in Git Bash". You also need one of the ten supported AI coding assistants already working.
Context Mode on GitHub
- Stars
- 33,808on Nov 10, 2026
- Downloads
- 242136 this week
- Growth
- +339stars in 6 days
Stars over time
Facts
- Runs on
- Windows, macOS, Linux
- You need to install
- Node.js
- To build from source
- Node.js
- Disk space
- 100 MB–500 MB · estimate
- Accounts or keys
- None
- Cost
- Free · The plugin is described as "free forever" under a source-available license. The same team sells a separate hosted product, Context Mode Gateway, "with its own account and subscription".
- License
- NOASSERTION (Other)
- Last change on GitHub
- Nov 10, 2026
Context Mode risk signals (5)
- Attentionsandbox does not isolate your computer
Security section: "Code from ctx_execute runs on your host as your user, with your files, your network and your environment except the preload variables, so keep your agent's own permission prompts on. Here \"sandbox\" means the output stays in the sandbox and out of the context." The word sandbox in the description does not mean the code is isolated from your files.
AI review
- Attentionsource available license not open source
LICENSE is the Elastic License 2.0: "You may not provide the software to third parties as a hosted or managed service" and "You may not move, change, disable, or circumvent the license key functionality in the software". GitHub reports the license as NOASSERTION, so this is not a standard open-source licence.
AI review
- Infoplugin intercepts and blocks assistant tool calls
How it works, step 3 and 4: the PreToolUse hook "checks the call" against WebFetch, curl, wget, big Reads and shell dumps, and "the hook stops the call and its reply names the exact ctx_* call to use". It writes hooks, an MCP server and skills into each assistant's config folder.
AI review
- Infopaid hosted service routes your requests
Gateway section: "With the Gateway on, your requests pass through its server; the plugin keeps its own data on your machine." The free plugin is local, but the optional paid Gateway is not.
AI review
- Infosavings numbers are self measured
All the "99.4%" style figures come from the project's own bench ("median of 5 runs", "rows with 10 KB or more of raw output", bench/results/2026-11-01-darwin-arm64.json). The repository documents how to rerun it, but no independent measurement is included.
AI review
Evidence is shown in its original language.
What Radar could not check about Context Mode
- How much context you actually save on your own work, as opposed to the project's bench rows
- Whether the hooks ever block a tool call your assistant needed and change how it behaves
- How large the local databases under ~/.context-mode grow over months
- Whether it works with the exact version of your assistant, since the agents change often (236 releases so far)
- What the Gateway subscription costs and what it keeps, if you add it