Context Mode
Keeps large tool output out of a coding agent's context window
What it does
Context Mode runs heavy tool calls, such as big file reads, web fetches and command output, in a local sandbox and stores the full result in a SQLite index on your machine. The agent then searches that index and receives only the part it asks for, which cuts how much of the context window each call uses.
It installs as a plugin for Claude Code, Codex and several other coding agents. The maker describes the licence as source-available and free to use, including at work; it is not a standard open-source licence.
Tools
Listed by starting the server ourselves on Nov 26, 2026. The grouping uses the server's own annotations.
Read-only · 3
ctx_searchctx_resumectx_stats
Writes or acts · 6
ctx_executectx_batchctx_indexctx_doctorctx_upgradectx_purge
Install
Claude Code
Not yet tested by usAdd the project's plugin marketplace, then install the plugin:
claude plugin marketplace add mksglu/context-mode
claude plugin install context-mode@context-mode
Codex
Not yet tested by usAdd the project's plugin marketplace:
codex plugin marketplace add mksglu/context-mode
Then follow the Codex section of the project's README to enable the plugin.
Launch command (any stdio client)
Tested Nov 26, 2026 on Linux arm64 container, stdio test clientWe started the server with this command in a clean Linux container and confirmed it completes the MCP handshake and answers tools/list:
npx -y context-mode@latest server
Use the same command and arguments in any client that launches local servers. We have not yet tested it inside a specific client.
Before you adopt it
6 of 6 key facts checked- Tools and what they can changeExactly what an agent can read, write or delete
- 9 tools: 3 read-only, 6 that write or act, 0 marked destructive by the server.Checked Nov 25, 2026 · source
- Required credentials and scopesLeast-privilege setup with no first-run failure
- Started and listed its tools with no credentials.Checked Nov 25, 2026 · source
- Tool-definition token costContext used on every request
- About 1,872 tokens for the tool definitions (size of the tools/list reply divided by four; an estimate, not a tokeniser count).Checked Nov 25, 2026 · source
- Package and versionThe exact package or image you will run, and who publishes it
- context-mode 2.2.4 on npmChecked Nov 25, 2026 · source
- Where your data goesLocal only, or through the vendor's cloud; any telemetry
- Runs as local processes next to your agent; the maker states zero telemetry and that it works offline after install. The README lists each network call it makes.Checked Nov 25, 2026 · source
- Last releaseThe spec and upstream APIs change fast
- v2.2.4 · Nov 25, 2026Checked Nov 25, 2026 · source
- Runtime requirementsNode, Python, Docker, operating system
- Node.js >=24.15.0 (package.json)Checked Nov 25, 2026 · source
